33 from ROOT
import Belle2
39 from basf2
import conditions
as b2conditions
40 from reconstruction
import prepare_user_cdst_analysis
54 INPUT_LIST += glob.glob(
"oneTestFile/*.root")
57 OUTPUT =
"eclBhabhaTimeCalibrationValidationCollector.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:
88 components = [
'CDC',
'ECL']
91 main = b2.create_path()
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]:
108 main.add_module(
'Gearbox')
114 tracking.add_tracking_reconstruction(main, components=components)
117 reconstruction.add_ecl_track_matcher_module(main, components)
119 prepare_user_cdst_analysis(main)
122 ECLtimeCalibValidationCollectorInfo = main.add_module(
'eclBhabhaTimeCalibrationValidationCollector', timeAbsMax=TIME_ABS_MAX,
125 ECLtimeCalibValidationCollectorInfo.set_log_level(b2.LogLevel.INFO)
126 ECLtimeCalibValidationCollectorInfo.set_debug_level(36)
130 main.add_module(
'Progress')
132 b2.set_log_level(b2.LogLevel.INFO)
133 b2.set_debug_level(100)
140 b2conditions.override_globaltags()
142 b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
143 b2conditions.prepend_testing_payloads(
"localdb/database.txt")
144 b2.B2INFO(
"Using Global Tag {}")
145 b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
146 b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
147 b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
148 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)