32from ROOT
import Belle2
38from basf2
import conditions
as b2conditions
39from reconstruction
import prepare_cdst_analysis
53INPUT_LIST += glob.glob(
"oneTestFile/*.root")
56OUTPUT =
"eclBhabhaTCollector.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:
91CDC_T0_BIAS_CORRECTION_OFFSET = 0
95components = [
'CDC',
'ECL']
98main = b2.create_path()
103if INPUT_LIST[0].endswith(
'sroot'):
104 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
107 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
109main.add_module(
"HistoManager", histoFileName=OUTPUT)
111if 'Raw' in INPUT_LIST[0]:
115main.add_module(
'Gearbox')
121 tracking.add_tracking_reconstruction(main, components=components)
124 reconstruction.add_ecl_track_matcher_module(main, components)
126prepare_cdst_analysis(main)
129ECLBhabhaTCollectorInfo = main.add_module(
'ECLBhabhaTCollector', timeAbsMax=TIME_ABS_MAX,
130 minCrystal=MIN_CRYSTAL, maxCrystal=MAX_CRYSTAL,
132 hadronEventT0_TO_bhabhaEventT0_correction=CDC_T0_BIAS_CORRECTION_OFFSET)
134ECLBhabhaTCollectorInfo.set_log_level(b2.LogLevel.INFO)
135ECLBhabhaTCollectorInfo.set_debug_level(36)
139main.add_module(
'Progress')
142b2.set_log_level(b2.LogLevel.INFO)
143b2.set_debug_level(100)
150b2conditions.override_globaltags()
154b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
155b2conditions.prepend_testing_payloads(
"localdb/database.txt")
156b2.B2INFO(
"Using Global Tag {}")
157b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
158b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
159b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
160b2conditions.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)