31 sys.exit(
"trgcdct3dDQM.py> # of arg is strange. Exit.")
73if __name__ ==
'__main__':
74 from ROOT
import Belle2
77 basf2.use_central_database(
"development")
79 basf2.use_local_database(ROOT.Belle2.FileSystem.findFile(
"data/trg/cdc/db_CDCFudgeFactorsForSigma.txt"),
"localdb")
81 empty_path = basf2.create_path()
86 main = basf2.create_path()
88 main.add_module(
'RootInput', inputFileName=inname)
93 main.add_module(
'TRGCDCT3DUnpacker', T3DMOD=mod)
95 main.add_module(
'Gearbox')
99 main.add_module(
'TRGCDCT3DConverter',
100 hitCollectionName=
'FirmCDCTriggerSegmentHits' + str(mod),
101 addTSToDatastore=
True,
102 EventTimeName=
'FirmBinnedEventT0' + str(mod),
103 addEventTimeToDatastore=
True,
104 inputCollectionName=
'FirmTRGCDC2DFinderTracks' + str(mod),
105 add2DFinderToDatastore=
True,
106 outputCollectionName=
'FirmTRGCDC3DFitterTracks' + str(mod),
107 add3DToDatastore=
True,
109 firmwareResultCollectionName=
'TRGCDCT3DUnpackerStore' + str(mod),
113 main.add_module(
'TRGCDCT3DDQM', postScriptName=histname, T3DMOD=mod)
115 main.add_module(
'HistoManager', histoFileName=histname)
119 print(basf2.statistics)