33 from ROOT
import Belle2
39 from basf2
import conditions
as b2conditions
40 from reconstruction
import prepare_cdst_analysis
54 INPUT_LIST += glob.glob(
"oneTestFile/*.root")
57 OUTPUT =
"eclBhabhaTCollector.root"
63 input_arg = env.getInputFilesOverride()
64 if len(input_arg) > 0:
65 INPUT_LIST = [str(x)
for x
in input_arg]
67 INPUT_LIST.sort(key=
lambda item: (len(item), item))
70 output_arg = env.getOutputFileOverride()
71 if len(output_arg) > 0:
92 CDC_T0_BIAS_CORRECTION_OFFSET = 0
96 components = [
'CDC',
'ECL']
99 main = b2.create_path()
101 add_unpackers =
False
104 if INPUT_LIST[0].endswith(
'sroot'):
105 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
108 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
110 main.add_module(
"HistoManager", histoFileName=OUTPUT)
112 if 'Raw' in INPUT_LIST[0]:
116 main.add_module(
'Gearbox')
122 tracking.add_tracking_reconstruction(main, components=components)
125 reconstruction.add_ecl_track_matcher_module(main, components)
127 prepare_cdst_analysis(main)
130 ECLBhabhaTCollectorInfo = main.add_module(
'ECLBhabhaTCollector', timeAbsMax=TIME_ABS_MAX,
131 minCrystal=MIN_CRYSTAL, maxCrystal=MAX_CRYSTAL,
133 hadronEventT0_TO_bhabhaEventT0_correction=CDC_T0_BIAS_CORRECTION_OFFSET)
135 ECLBhabhaTCollectorInfo.set_log_level(b2.LogLevel.INFO)
136 ECLBhabhaTCollectorInfo.set_debug_level(36)
140 main.add_module(
'Progress')
143 b2.set_log_level(b2.LogLevel.INFO)
144 b2.set_debug_level(100)
151 b2conditions.override_globaltags()
155 b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
156 b2conditions.prepend_testing_payloads(
"localdb/database.txt")
157 b2.B2INFO(
"Using Global Tag {}")
158 b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
159 b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
160 b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
161 b2conditions.prepend_globaltag(
"data_reprocessing_prompt")
static Environment & Instance()
Static method to get a reference to the Environment instance.
def add_unpackers(path, components=None, writeKLMDigitRaws=False, addTOPRelations=False)
def add_ecl_modules(path, components=None)
def add_ext_module(path, components=None)