13 from beamparameters
import add_beamparameters
15 basf2.set_log_level(basf2.LogLevel.INFO)
18 main = basf2.create_path()
21 main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
24 beamparameters = add_beamparameters(main,
"Y4S")
27 kkgeninput = basf2.register_module(
'KKGenInput')
28 kkgeninput.param(
'tauinputFile', basf2.find_file(
'data/generators/kkmc/mu.input.dat'))
29 kkgeninput.param(
'KKdefaultFile', basf2.find_file(
'data/generators/kkmc/KK2f_defaults.dat'))
30 kkgeninput.param(
'taudecaytableFile',
'')
31 kkgeninput.param(
'kkmcoutputfilename',
'kkmc_mumu.txt')
34 main.add_module(
"Progress")
35 main.add_module(kkgeninput)
36 main.add_module(
"RootOutput", outputFileName=
"kkmc_mumu.root")
37 main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.INFO, onlyPrimaries=
False)
43 print(basf2.statistics)