13from rawdata
import add_unpackers
14from ROOT
import Belle2
26 print(
"usage: basf2", argvs[0],
"globalTag -i <inputFileName> -o <outputFileName>")
34 ''' select events according to given trigger types '''
37 ''' event processing '''
41 if not trg_summary.isValid():
42 basf2.B2ERROR(
'No TRGSummary available - event ignored')
45 for trgType
in trigTypes:
46 if trg_summary.getTimType() == trgType:
52basf2.conditions.prepend_globaltag(globalTag)
55main = basf2.create_path()
56emptypath = basf2.create_path()
59main.add_module(
'RootInput')
62main.add_module(
'Gearbox')
65main.add_module(
'Geometry')
68main.add_module(
'TRGGDLUnpacker')
69main.add_module(
'TRGGDLSummary')
72main.add_module(
'Progress')
76main.add_module(selector)
77selector.if_false(emptypath)
81 components=[
'PXD',
'SVD',
'CDC',
'ECL',
'TOP',
'ARICH',
'KLM'])
84main.add_module(
'KLMDigitTimeShifter')
87main.add_module(
'TRGECLUnpacker')
88main.add_module(
'TRGECLBGTCHit')
91compress = basf2.register_module(
'ECLCompressBGOverlay')
92main.add_module(compress, CompressionAlgorithm=3)
93compress.if_false(emptypath)
96output = basf2.register_module(
'RootOutput')
97output.param(
'branchNames', [
'EventLevelTriggerTimeInfo',
'PXDDigits',
'SVDShaperDigits',
'CDCHits',
'TOPDigits',
98 'ARICHDigits',
'ECLWaveforms',
'KLMDigits',
'TRGECLBGTCHits',
'TRGSummary'])
99main.add_module(output)
105print(basf2.statistics)
a (simplified) python wrapper for StoreObjPtr.