24 from basf2
import conditions
as b2conditions
25 from rawdata
import add_unpackers
26 from simulation
import add_simulation
27 from svd
import add_svd_reconstruction
29 alg = int(sys.argv[1])
37 fileout =
'3sampleClusterizer_exp10run'+str(run)+
'.root'
40 files = [
'/group/belle2/dataprod/Data/Raw/e0010/r0'+str(run)+
'/sub00/physics.0010.0'+str(run)+
'.HLT*.root']
50 bkg = glob.glob(
'/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root')
54 b2conditions.override_globaltags()
55 b2conditions.globaltags = [
'svd_timeCalibration_test',
'klm_alignment_testing',
'online']
57 b2conditions.globaltags = [
'svd_timeCalibration_test']
62 eventinfosetter = b2.register_module(
'EventInfoSetter')
63 eventinfosetter.param(
'expList', [0])
64 eventinfosetter.param(
'runList', [0])
66 evtgeninput = b2.register_module(
'EvtGenInput')
67 evtgeninput.logging.log_level = b2.LogLevel.INFO
70 main = b2.create_path()
75 main.add_module(
"RootInput", inputFileNames=files)
77 main.add_module(eventinfosetter)
78 main.add_module(evtgeninput)
81 main.add_module(
'Gearbox')
82 main.add_module(
'Geometry')
86 add_unpackers(main, components=[
'SVD'])
89 main.add_module(
'FullSim')
90 add_simulation(main, bkgfiles=
None, usePXDDataReduction=
False, forceSetPXDDataReduction=
True)
94 fileout =
'SVD3SampleClusterizer_MCnoBKG_timeAlg'+str(alg)+
'.root'
96 add_svd_reconstruction(main)
98 for m
in main.modules():
99 if "SVDSimpleClusterizer" == m.name():
100 m.param(
"timeAlgorithm", alg)
102 main.add_module(
'RootOutput', outputFileName=fileout, branchNames=[
'SVDClusters'])
104 main.add_module(
'Progress')