22from basf2
import conditions
as b2conditions
23from rawdata
import add_unpackers
24from simulation
import add_simulation
30files = [
'/group/belle2/dataprod/Data/Raw/e0010/r0'+str(run)+
'/sub00/physics.0010.0'+str(run)+
'.HLT*.root']
37bkg = glob.glob(
'/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root')
40 b2conditions.override_globaltags()
41 b2conditions.globaltags = [
'klm_alignment_testing',
'online']
43eventinfosetter = b2.register_module(
'EventInfoSetter')
44eventinfosetter.param(
'expList', [1003])
45eventinfosetter.param(
'runList', [1])
47evtgeninput = b2.register_module(
'EvtGenInput')
48evtgeninput.logging.log_level = b2.LogLevel.INFO
52main = b2.create_path()
58 main.add_module(
"RootInput", inputFileNames=files)
60 main.add_module(eventinfosetter)
61 main.add_module(evtgeninput)
64main.add_module(
'Gearbox')
65main.add_module(
'Geometry')
69 add_unpackers(main, components=[
'SVD'])
72 main.add_module(
'FullSim')
73 add_simulation(main, bkgfiles=bkg)
77 'SVDZeroSuppressionEmulator',
79 ShaperDigits=
'SVDShaperDigits',
80 ShaperDigitsIN=
'SVDShaperDigitsZS5',
84 'SVDOccupancyAnalysis',
85 outputFileName=
'SVDOccupancyAnalysis_exp10run'+str(run)+
'.root',
86 ShaperDigitsName=
'SVDShaperDigitsZS5',
87 skipHLTRejectedEvents=
True)
90main.add_module(
'Progress')