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