12from simulation
import add_simulation
13from pxd
import add_pxd_reconstruction
14from svd
import add_svd_reconstruction
30if 'BELLE2_BACKGROUND_DIR' not in os.environ:
31 basf2.B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
35bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
37 basf2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
41main = basf2.create_path()
44eventinfosetter = basf2.register_module(
'EventInfoSetter')
45eventinfosetter.param({
'evtNumList': [1000],
'runList': [0],
'expList': [0]})
46main.add_module(eventinfosetter)
49add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
52main.add_module(
"ARICHFillHits")
53main.add_module(
'TOPChannelMasker')
54add_pxd_reconstruction(main)
55add_svd_reconstruction(main)
56main.add_module(
'SVDZeroSuppressionEmulator', SNthreshold=5, ShaperDigitsIN=
'SVDShaperDigitsZS5')
60main.add_module(
'BeamBkgHitRateMonitor',
62 svdShaperDigitsName=
'SVDShaperDigitsZS5',
63 outputFileName=
'beamBkgHitRates_MC.root')
66main.add_module(
'Progress')
72print(basf2.statistics)