33 from ROOT
import Belle2
40 from basf2
import conditions
as b2conditions
41 from reconstruction
import prepare_cdst_analysis
55 INPUT_LIST += glob.glob(
"oneTestFile/*.root")
58 OUTPUT =
"eclBhabhaTCollector.root"
64 input_arg = env.getInputFilesOverride()
65 if len(input_arg) > 0:
66 INPUT_LIST = [str(x)
for x
in input_arg]
68 INPUT_LIST.sort(key=
lambda item: (len(item), item))
71 output_arg = env.getOutputFileOverride()
72 if len(output_arg) > 0:
93 CDC_T0_BIAS_CORRECTION_OFFSET = 0
97 components = [
'CDC',
'ECL']
100 main = b2.create_path()
102 add_unpackers =
False
105 if INPUT_LIST[0].endswith(
'sroot'):
106 main.add_module(
'SeqRootInput', inputFileNames=INPUT_LIST)
109 main.add_module(
'RootInput', inputFileNames=INPUT_LIST)
111 main.add_module(
"HistoManager", histoFileName=OUTPUT)
113 if 'Raw' in INPUT_LIST[0]:
117 main.add_module(
'Gearbox')
126 reconstruction.add_ecl_track_matcher_module(main, components)
128 prepare_cdst_analysis(main)
131 ECLBhabhaTCollectorInfo = main.add_module(
'ECLBhabhaTCollector', timeAbsMax=TIME_ABS_MAX,
132 minCrystal=MIN_CRYSTAL, maxCrystal=MAX_CRYSTAL,
134 hadronEventT0_TO_bhabhaEventT0_correction=CDC_T0_BIAS_CORRECTION_OFFSET)
136 ECLBhabhaTCollectorInfo.set_log_level(b2.LogLevel.INFO)
137 ECLBhabhaTCollectorInfo.set_debug_level(36)
141 main.add_module(
'Progress')
144 b2.set_log_level(b2.LogLevel.INFO)
145 b2.set_debug_level(100)
152 b2conditions.override_globaltags()
156 b2.B2INFO(
"Adding Local Database {} to head of chain of local databases.")
157 b2conditions.prepend_testing_payloads(
"localdb/database.txt")
158 b2.B2INFO(
"Using Global Tag {}")
159 b2conditions.prepend_globaltag(
"dp_recon_release6_patch")
160 b2conditions.prepend_globaltag(
"Reco_master_patch_rel5")
161 b2conditions.prepend_globaltag(
"AIRFLOW_online_snapshot_20210719-124441")
162 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)
def add_tracking_reconstruction(path, components=None, pruneTracks=False, skipGeometryAdding=False, mcTrackFinding=False, trackFitHypotheses=None, reco_tracks="RecoTracks", prune_temporary_tracks=True, fit_tracks=True, use_second_cdc_hits=False, skipHitPreparerAdding=False, use_svd_to_cdc_ckf=True, use_ecl_to_cdc_ckf=False, add_cdcTrack_QI=True, add_vxdTrack_QI=False, add_recoTrack_QI=False)