23 from basf2
import conditions
as b2conditions
24 from rawdata
import add_unpackers
25 from simulation
import add_simulation
31 files = [
'/group/belle2/dataprod/Data/Raw/e0010/r0'+str(run)+
'/sub00/physics.0010.0'+str(run)+
'.HLT*.root']
38 bkg = glob.glob(
'/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root')
41 b2conditions.override_globaltags()
42 b2conditions.globaltags = [
'klm_alignment_testing',
'online']
44 eventinfosetter = b2.register_module(
'EventInfoSetter')
45 eventinfosetter.param(
'expList', [1003])
46 eventinfosetter.param(
'runList', [1])
48 evtgeninput = b2.register_module(
'EvtGenInput')
49 evtgeninput.logging.log_level = b2.LogLevel.INFO
53 main = b2.create_path()
59 main.add_module(
"RootInput", inputFileNames=files)
61 main.add_module(eventinfosetter)
62 main.add_module(evtgeninput)
65 main.add_module(
'Gearbox')
66 main.add_module(
'Geometry')
70 add_unpackers(main, components=[
'SVD'])
73 main.add_module(
'FullSim')
74 add_simulation(main, bkgfiles=bkg)
78 'SVDZeroSuppressionEmulator',
80 ShaperDigits=
'SVDShaperDigits',
81 ShaperDigitsIN=
'SVDShaperDigitsZS5',
85 'SVDOccupancyAnalysis',
86 outputFileName=
'SVDOccupancyAnalysis_exp10run'+str(run)+
'.root',
87 ShaperDigitsName=
'SVDShaperDigitsZS5',
88 skipHLTRejectedEvents=
True)
91 main.add_module(
'Progress')