32from ROOT
import Belle2
38from basf2
import conditions
as b2conditions
39from reconstruction
import prepare_user_cdst_analysis
53INPUT_LIST += glob.glob(
"oneTestFile/*.root")
56OUTPUT =
"eclBhabhaTimeCalibrationValidationCollector.root"
62input_arg = env.getInputFilesOverride()
64 INPUT_LIST = [str(x)
for x
in input_arg]
66INPUT_LIST.sort(key=
lambda item: (len(item), item))
69output_arg = env.getOutputFileOverride()
70if len(output_arg) > 0:
87components = [
'CDC',
'ECL']
90main = b2.create_path()
95if INPUT_LIST[0].endswith(
'sroot'):
96 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
99 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
101main.add_module(
"HistoManager", histoFileName=OUTPUT)
103if 'Raw' in INPUT_LIST[0]:
107main.add_module(
'Gearbox')
113 tracking.add_tracking_reconstruction(main, components=components)
116 reconstruction.add_ecl_track_matcher_module(main, components)
118prepare_user_cdst_analysis(main)
121ECLtimeCalibValidationCollectorInfo = main.add_module(
'eclBhabhaTimeCalibrationValidationCollector', timeAbsMax=TIME_ABS_MAX,
124ECLtimeCalibValidationCollectorInfo.set_log_level(b2.LogLevel.INFO)
125ECLtimeCalibValidationCollectorInfo.set_debug_level(36)
129main.add_module(
'Progress')
131b2.set_log_level(b2.LogLevel.INFO)
132b2.set_debug_level(100)
139b2conditions.override_globaltags()
141b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
142b2conditions.prepend_testing_payloads(
"localdb/database.txt")
143b2.B2INFO(
"Using Global Tag {}")
144b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
145b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
146b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
147b2conditions.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)