13 from beamparameters
import add_beamparameters
16 basf2.set_log_level(basf2.LogLevel.INFO)
19 main = basf2.create_path()
22 main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
25 beamparameters = add_beamparameters(main,
"Y1S")
32 evtgen = basf2.register_module(
'EvtGenInput')
34 evtgen.param(
'ParentParticle',
"Upsilon")
35 evtgen.set_log_level(basf2.LogLevel.INFO)
38 main.add_module(
"Progress")
39 main.add_module(
"Gearbox")
40 main.add_module(evtgen)
41 main.add_module(
"RootOutput", outputFileName=
"evtgen_upsilon1s.root")
42 main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
48 print(basf2.statistics)