31 from ROOT
import Belle2
49 INPUT_LIST += glob.glob(
"oneTestFile/*.root")
52 OUTPUT =
"eclBhabhaTCollector.root"
58 input_arg = env.getInputFilesOverride()
59 if len(input_arg) > 0:
60 INPUT_LIST = [str(x)
for x
in input_arg]
62 INPUT_LIST.sort(key=
lambda item: (len(item), item))
65 output_arg = env.getOutputFileOverride()
66 if len(output_arg) > 0:
88 components = [
'CDC',
'ECL']
96 if INPUT_LIST[0].endswith(
'sroot'):
97 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
100 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
102 main.add_module(
"HistoManager", histoFileName=OUTPUT)
104 if 'Raw' in INPUT_LIST[0]:
107 main.add_module(
'Gearbox')
116 reconstruction.add_ecl_track_matcher_module(main, components)
120 ECLBhabhaTCollectorInfo = main.add_module(
'ECLBhabhaTCollector', timeAbsMax=TIME_ABS_MAX,
121 minCrystal=MIN_CRYSTAL, maxCrystal=MAX_CRYSTAL,
124 ECLBhabhaTCollectorInfo.set_log_level(LogLevel.INFO)
125 ECLBhabhaTCollectorInfo.set_debug_level(36)
129 main.add_module(
'Progress')
132 set_log_level(LogLevel.INFO)
143 use_central_database(
"data_reprocessing_proc10")
144 use_central_database(
"data_reprocessing_prompt_rel4_patchb")
147 use_local_database(
"localdb/database.txt")