12from beamparameters
import add_beamparameters
14basf2.set_log_level(basf2.LogLevel.INFO)
17main = basf2.create_path()
20main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
23beamparameters = add_beamparameters(main,
"Y4S")
26kkgeninput = basf2.register_module(
'KKGenInput')
27kkgeninput.param(
'tauinputFile', basf2.find_file(
'data/generators/kkmc/mu.input.dat'))
28kkgeninput.param(
'KKdefaultFile', basf2.find_file(
'data/generators/kkmc/KK2f_defaults.dat'))
29kkgeninput.param(
'taudecaytableFile',
'')
30kkgeninput.param(
'kkmcoutputfilename',
'kkmc_mumu.txt')
33main.add_module(
"Progress")
34main.add_module(kkgeninput)
35main.add_module(
"RootOutput", outputFileName=
"kkmc_mumu.root")
36main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.INFO, onlyPrimaries=
False)
42print(basf2.statistics)