15 basf2.set_log_level(basf2.LogLevel.INFO)
18 basf2.set_random_seed(888)
20 main = basf2.create_path()
22 main.add_module(
'EventInfoSetter',
29 cry = main.add_module(
'CRYInput')
36 cry.param(
'acceptance', [125, 125])
38 cry.param(
'maxTrials', 100000)
40 cry.param(
'kineticEnergyThreshold', 0.01)
42 main.add_module(
'Progress')
43 main.add_module(
'RootOutput', outputFileName=
'./cry-outfile-test.root')
45 main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
51 print(basf2.statistics)