30from ROOT
import Belle2
36from basf2
import conditions
as b2conditions
37from reconstruction
import prepare_user_cdst_analysis
51INPUT_LIST += glob.glob(
"oneTestFile/*.root")
54OUTPUT =
"eclHadronTimeCalibrationValidationCollector.root"
60input_arg = env.getInputFilesOverride()
62 INPUT_LIST = [str(x)
for x
in input_arg]
64INPUT_LIST.sort(key=
lambda item: (len(item), item))
67output_arg = env.getOutputFileOverride()
68if len(output_arg) > 0:
85components = [
'CDC',
'ECL']
88main = b2.create_path()
93if INPUT_LIST[0].endswith(
'sroot'):
94 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
97 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
99main.add_module(
"HistoManager", histoFileName=OUTPUT)
101if 'Raw' in INPUT_LIST[0]:
105main.add_module(
'Gearbox')
111 tracking.add_tracking_reconstruction(main, components=components)
114 reconstruction.add_ecl_track_matcher_module(main, components)
116prepare_user_cdst_analysis(main)
119ECLtimeCalibValidationCollectorInfo = main.add_module(
'eclHadronTimeCalibrationValidationCollector', timeAbsMax=TIME_ABS_MAX,
122ECLtimeCalibValidationCollectorInfo.set_log_level(b2.LogLevel.INFO)
123ECLtimeCalibValidationCollectorInfo.set_debug_level(36)
127main.add_module(
'Progress')
129b2.set_log_level(b2.LogLevel.INFO)
130b2.set_debug_level(100)
137b2conditions.override_globaltags()
139b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
140b2conditions.prepend_testing_payloads(
"localdb/database.txt")
141b2.B2INFO(
"Using Global Tag {}")
142b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
143b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
144b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
145b2conditions.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)