31 from ROOT
import Belle2
37 from basf2
import conditions
as b2conditions
38 from reconstruction
import prepare_user_cdst_analysis
52 INPUT_LIST += glob.glob(
"oneTestFile/*.root")
55 OUTPUT =
"eclHadronTimeCalibrationValidationCollector.root"
61 input_arg = env.getInputFilesOverride()
62 if len(input_arg) > 0:
63 INPUT_LIST = [str(x)
for x
in input_arg]
65 INPUT_LIST.sort(key=
lambda item: (len(item), item))
68 output_arg = env.getOutputFileOverride()
69 if len(output_arg) > 0:
86 components = [
'CDC',
'ECL']
89 main = b2.create_path()
94 if INPUT_LIST[0].endswith(
'sroot'):
95 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
98 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
100 main.add_module(
"HistoManager", histoFileName=OUTPUT)
102 if 'Raw' in INPUT_LIST[0]:
106 main.add_module(
'Gearbox')
112 tracking.add_tracking_reconstruction(main, components=components)
115 reconstruction.add_ecl_track_matcher_module(main, components)
117 prepare_user_cdst_analysis(main)
120 ECLtimeCalibValidationCollectorInfo = main.add_module(
'eclHadronTimeCalibrationValidationCollector', timeAbsMax=TIME_ABS_MAX,
123 ECLtimeCalibValidationCollectorInfo.set_log_level(b2.LogLevel.INFO)
124 ECLtimeCalibValidationCollectorInfo.set_debug_level(36)
128 main.add_module(
'Progress')
130 b2.set_log_level(b2.LogLevel.INFO)
131 b2.set_debug_level(100)
138 b2conditions.override_globaltags()
140 b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
141 b2conditions.prepend_testing_payloads(
"localdb/database.txt")
142 b2.B2INFO(
"Using Global Tag {}")
143 b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
144 b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
145 b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
146 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)