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 MCrun = int(sys.argv[1])
37 fileout =
'hitTimeSelection_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_svdHitTimeSelection_test',
'klm_alignment_testing',
'online']
57 b2conditions.globaltags = [
'svd_svdHitTimeSelection_test']
71 eventinfosetter = b2.register_module(
'EventInfoSetter')
72 eventinfosetter.param(
'expList', [0])
73 eventinfosetter.param(
'runList', [MCrun])
75 evtgeninput = b2.register_module(
'EvtGenInput')
76 evtgeninput.logging.log_level = b2.LogLevel.INFO
79 main = b2.create_path()
84 main.add_module(
"RootInput", inputFileNames=files)
86 main.add_module(eventinfosetter)
87 main.add_module(evtgeninput)
90 main.add_module(
'Gearbox')
91 main.add_module(
'Geometry')
95 add_unpackers(main, components=[
'SVD'])
98 main.add_module(
'FullSim')
99 add_simulation(main, bkgfiles=
None, usePXDDataReduction=
False, forceSetPXDDataReduction=
True)
103 fileout =
'SVDHitTimeSelection_MCnoBKG_run'+str(MCrun)+
'.root'
105 add_svd_reconstruction(main)
107 main.add_module(
'RootOutput', outputFileName=fileout, branchNames=[
'SVDSpacePoints'])
109 main.add_module(
'Progress')