22 basf2.set_log_level(basf2.LogLevel.INFO)
24 main = basf2.create_path()
26 main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=10000)
29 bbbrem = basf2.register_module(
'BBBremInput')
35 bbbrem.param(
'Unweighted',
True)
38 bbbrem.param(
'MaxWeight', 5.0e6)
41 bbbrem.param(
'DensityCorrectionMode', 1)
44 bbbrem.param(
'DensityCorrectionParameter', 1.68e-17)
50 progress = basf2.register_module(
'Progress')
53 output = basf2.register_module(
'RootOutput')
54 output.param(
'outputFileName',
'./bbbremgen.root')
58 main.add_module(progress)
59 main.add_module(bbbrem)
61 main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
63 main.add_module(output)
69 print(basf2.statistics)