21 main = b2.create_path()
24 eventinfosetter = b2.register_module(
'EventInfoSetter')
25 eventinfosetter.param({
'evtNumList': [100]})
26 main.add_module(eventinfosetter)
29 gearbox = b2.register_module(
'Gearbox')
30 main.add_module(gearbox)
33 geometry = b2.register_module(
'Geometry')
34 main.add_module(geometry)
37 evtgeninput = b2.register_module(
'EvtGenInput')
38 main.add_module(evtgeninput)
42 if 'BELLE2_BACKGROUND_MIXING_DIR' in os.environ:
43 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'] +
'/*.root')
45 bkgmixer = b2.register_module(
'BeamBkgMixer')
46 bkgmixer.param(
'backgroundFiles', bg)
47 main.add_module(bkgmixer)
48 b2.B2RESULT(
'Simulaton w/ beam background, samples taken from folder ' +
49 os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'])
51 b2.B2RESULT(
'Simulaton w/o beam background')
54 simulation = b2.register_module(
'FullSim')
55 main.add_module(simulation)
58 main.add_module(
'TOPDigitizer', allChannels=
True)
61 trigdigi = b2.register_module(
'TOPTriggerDigitizer')
62 trigdigi.param(
'threshold', 28)
63 main.add_module(trigdigi)
66 output = b2.register_module(
'RootOutput')
67 output.param(
'branchNames', [
'TOPDigits',
'TOPTriggerDigits',
'TOPTriggerMCInfo'])
68 main.add_module(output)
71 progress = b2.register_module(
'Progress')
72 main.add_module(progress)