23from basf2
import conditions
as b2conditions
24from rawdata
import add_unpackers
25from simulation
import add_simulation
26from svd
import add_svd_reconstruction
28MCrun = int(sys.argv[1])
36fileout =
'hitTimeSelection_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_svdHitTimeSelection_test',
'klm_alignment_testing',
'online']
56 b2conditions.globaltags = [
'svd_svdHitTimeSelection_test']
70eventinfosetter = b2.register_module(
'EventInfoSetter')
71eventinfosetter.param(
'expList', [0])
72eventinfosetter.param(
'runList', [MCrun])
74evtgeninput = b2.register_module(
'EvtGenInput')
75evtgeninput.logging.log_level = b2.LogLevel.INFO
78main = b2.create_path()
83 main.add_module(
"RootInput", inputFileNames=files)
85 main.add_module(eventinfosetter)
86 main.add_module(evtgeninput)
89main.add_module(
'Gearbox')
90main.add_module(
'Geometry')
94 add_unpackers(main, components=[
'SVD'])
97 main.add_module(
'FullSim')
98 add_simulation(main, bkgfiles=
None, usePXDDataReduction=
False, forceSetPXDDataReduction=
True)
102 fileout =
'SVDHitTimeSelection_MCnoBKG_run'+str(MCrun)+
'.root'
104add_svd_reconstruction(main)
106main.add_module(
'RootOutput', outputFileName=fileout, branchNames=[
'SVDSpacePoints'])
108main.add_module(
'Progress')