15 basf2.set_log_level(basf2.LogLevel.INFO)
17 main = basf2.create_path()
20 myinput = basf2.register_module(
'RootInput')
21 myinput.param(
'inputFileName',
'./input.root')
24 myoutput = basf2.register_module(
'HepevtOutput')
25 myoutput.param(
'OutputFilename',
'./output.hepevt')
28 myprogress = basf2.register_module(
'Progress')
30 main.add_module(myprogress)
31 main.add_module(myinput)
32 main.add_module(myoutput)
33 main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
39 print(basf2.statistics)