23 from basf2
import conditions
as b2conditions
24 from rawdata
import add_unpackers
25 from simulation
import add_simulation
30 fileout =
'SVDMaxStripTTree_exp10run'+str(run)+
'.root'
33 files = [
'/group/belle2/dataprod/Data/Raw/e0010/r0'+str(run)+
'/sub00/physics.0010.0'+str(run)+
'.HLT*.root']
43 bkg = glob.glob(
'/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root')
47 b2conditions.override_globaltags()
48 b2conditions.globaltags = [
'klm_alignment_testing',
'online']
50 eventinfosetter = b2.register_module(
'EventInfoSetter')
51 eventinfosetter.param(
'expList', [1003])
52 eventinfosetter.param(
'runList', [1])
54 evtgeninput = b2.register_module(
'EvtGenInput')
55 evtgeninput.logging.log_level = b2.LogLevel.INFO
59 main = b2.create_path()
65 main.add_module(
"RootInput", inputFileNames=files)
67 main.add_module(eventinfosetter)
68 main.add_module(evtgeninput)
71 main.add_module(
'Gearbox')
72 main.add_module(
'Geometry')
76 add_unpackers(main, components=[
'SVD'])
79 main.add_module(
'FullSim')
80 add_simulation(main, bkgfiles=bkg)
83 fileout =
'SVDMaxStripTTree_MC.root'
87 outputFileName=fileout,
88 ShaperDigits=
'SVDShaperDigits',
89 skipHLTRejectedEvents=
True)
92 main.add_module(
'Progress')