5 from simulation
import add_simulation
6 from pxd
import add_pxd_reconstruction
7 from svd
import add_svd_reconstruction
23 if 'BELLE2_BACKGROUND_DIR' not in os.environ:
24 B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
28 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
30 B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
34 main = basf2.create_path()
37 eventinfosetter = basf2.register_module(
'EventInfoSetter')
38 eventinfosetter.param({
'evtNumList': [1000],
'runList': [0],
'expList': [0]})
39 main.add_module(eventinfosetter)
42 add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
45 main.add_module(
"ARICHFillHits")
46 main.add_module(
'TOPChannelMasker')
47 add_pxd_reconstruction(main)
48 add_svd_reconstruction(main)
49 main.add_module(
'SVDZeroSuppressionEmulator', SNthreshold=5, ShaperDigitsIN=
'SVDShaperDigitsZS5')
53 main.add_module(
'BeamBkgHitRateMonitor',
55 svdShaperDigitsName=
'SVDShaperDigitsZS5',
56 outputFileName=
'beamBkgHitRates_MC.root')
59 main.add_module(
'Progress')
65 print(basf2.statistics)