12from beamparameters
import add_beamparameters
15basf2.set_log_level(basf2.LogLevel.INFO)
18main = basf2.create_path()
21main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
24beamparameters = add_beamparameters(main,
"Y1S")
31evtgen = basf2.register_module(
'EvtGenInput')
33evtgen.param(
'ParentParticle',
"Upsilon")
34evtgen.set_log_level(basf2.LogLevel.INFO)
37main.add_module(
"Progress")
38main.add_module(
"Gearbox")
39main.add_module(evtgen)
40main.add_module(
"RootOutput", outputFileName=
"evtgen_upsilon1s.root")
41main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
47print(basf2.statistics)