Ejemplo n.º 1
0
    mdstStreamConf,
    pidMicroDSTname:
    stripCalibMicroDSTStreamConf(pack=enablePacking, selectiveRawEvent=True)
}

dstWriter = SelDSTWriter("MyDSTWriter",
                         StreamConf=SelDSTWriterConf,
                         MicroDSTElements=SelDSTWriterElements,
                         OutputFileSuffix='000000',
                         SelectionSequences=sc.activeStreams())

#
# Get lines that needs MDST.DST and their required raw banks
#
mdstDstLines = [
    line.name() for line in sc.activeLines(mdstStreams)
    if (line.MDSTFlag and line.prescale() > 0)
]
mdstDstRawEvts = {}
for stream in sc.activeStreams():
    if stream.name() in mdstStreams:
        mdstDstRawEvts.update(stream.getRequiredRawEvents())
# Locations to veto from MDST.DST
tesVETO = [
    "/Event/Velo/RawEvent", "/Event/Tracker/RawEvent", "/Event/Rich/RawEvent",
    "/Event/Calo/RawEvent", "/Event/Muon/RawEvent", "/Event/Other/RawEvent"
]
tesVETO += ["/Event/" + name + "/#99" for name in dstStreams]
# Locations to add to MDST.DST
tesOPT = ['/Event/' + stripTESPrefix + '#99'
          ] + ['/Event/' + name + "#99" for name in mdstStreams]