23from basf2
import conditions
as b2conditions
24from rawdata
import add_unpackers
25from simulation
import add_simulation
26from svd
import add_svd_reconstruction
36fileout =
'3sampleClusterizer_exp10run'+str(run)+
'.root'
39files = [
'/group/belle2/dataprod/Data/Raw/e0010/r0'+str(run)+
'/sub00/physics.0010.0'+str(run)+
'.HLT*.root']
49bkg = glob.glob(
'/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root')
53 b2conditions.override_globaltags()
54 b2conditions.globaltags = [
'svd_timeCalibration_test',
'klm_alignment_testing',
'online']
56 b2conditions.globaltags = [
'svd_timeCalibration_test']
61eventinfosetter = b2.register_module(
'EventInfoSetter')
62eventinfosetter.param(
'expList', [0])
63eventinfosetter.param(
'runList', [0])
65evtgeninput = b2.register_module(
'EvtGenInput')
66evtgeninput.logging.log_level = b2.LogLevel.INFO
69main = b2.create_path()
74 main.add_module(
"RootInput", inputFileNames=files)
76 main.add_module(eventinfosetter)
77 main.add_module(evtgeninput)
80main.add_module(
'Gearbox')
81main.add_module(
'Geometry')
85 add_unpackers(main, components=[
'SVD'])
88 main.add_module(
'FullSim')
89 add_simulation(main, bkgfiles=
None, usePXDDataReduction=
False, forceSetPXDDataReduction=
True)
93 fileout =
'SVD3SampleClusterizer_MCnoBKG_timeAlg'+str(alg)+
'.root'
95add_svd_reconstruction(main)
97for m
in main.modules():
98 if "SVDSimpleClusterizer" == m.name():
99 m.param(
"timeAlgorithm", alg)
101main.add_module(
'RootOutput', outputFileName=fileout, branchNames=[
'SVDClusters'])
103main.add_module(
'Progress')