25import simulation
as simu
33# PREPARE YOUR INPUT FILES - ERROR printed at the end does not
47filelist=glob.glob(location)
49for inputfile
in filelist:
50 main = b2.create_path()
52 svdou.prepare_svd_overlay(main, [inputfile],
"overlay")
57main = b2.create_path()
61# set the exp/run event informations
62eventinfosetter = b2.register_module('EventInfoSetter')
63eventinfosetter.param('expList', [0])
64eventinfosetter.param('runList', [1])
65eventinfosetter.param('evtNumList', [10])
66main.add_module(eventinfosetter)
68# register HistoModules for DQM plots
69main.add_module("HistoManager", histoFileName="SVDDQMOutput_"+str(tag)+".root")
72main.add_module('EvtGenInput')
74# add default simulation
75bkgDir = '/group/belle2/BGFile/OfficialBKG/early_phase3/prerelease-04-00-00a/overlay/phase31/BGx1/set0/*.root'
78 b2.B2ERROR('No files found in ', bkgDir)
80simu.add_simulation(main, bkgfiles=bg, usePXDDataReduction=
False, forceSetPXDDataReduction=
True)
82if str(tag) ==
"xTalk" or str(tag) ==
"cosmics" or str(tag) ==
"randomTrigger" or str(tag) ==
"randomTriggerZS5":
83 svdou.overlay_svd_data(main, str(tag))
88 'SVDZeroSuppressionEmulator',
90 ShaperDigits=
'SVDShaperDigits',
91 ShaperDigitsIN=
'SVDShaperDigitsZS5',
93main.add_module(
'SVDDQMExpressReco', offlineZSShaperDigits=
'SVDShaperDigitsZS5')
95main.add_module(
'Progress')