20main = b2.create_path()
23eventinfosetter = b2.register_module(
'EventInfoSetter')
24eventinfosetter.param({
'evtNumList': [100]})
25main.add_module(eventinfosetter)
28gearbox = b2.register_module(
'Gearbox')
29main.add_module(gearbox)
32geometry = b2.register_module(
'Geometry')
33main.add_module(geometry)
36evtgeninput = b2.register_module(
'EvtGenInput')
37main.add_module(evtgeninput)
41if 'BELLE2_BACKGROUND_MIXING_DIR' in os.environ:
42 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'] +
'/*.root')
44 bkgmixer = b2.register_module(
'BeamBkgMixer')
45 bkgmixer.param(
'backgroundFiles', bg)
46 main.add_module(bkgmixer)
47 b2.B2RESULT(
'Simulaton w/ beam background, samples taken from folder ' +
48 os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'])
50 b2.B2RESULT(
'Simulaton w/o beam background')
53simulation = b2.register_module(
'FullSim')
54main.add_module(simulation)
57main.add_module(
'TOPDigitizer', allChannels=
True)
60trigdigi = b2.register_module(
'TOPTriggerDigitizer')
61trigdigi.param(
'threshold', 28)
62main.add_module(trigdigi)
65output = b2.register_module(
'RootOutput')
66output.param(
'branchNames', [
'TOPDigits',
'TOPTriggerDigits',
'TOPTriggerMCInfo'])
67main.add_module(output)
70progress = b2.register_module(
'Progress')
71main.add_module(progress)