5 <output>PhokharaEvtgenData.root</output>
6 <contact>Kirill Chilikin (K.A.Chilikin@inp.nsk.su)</contact>
7 <description>Generation of 25000 e+ e- -> J/psi eta_c events.</description>
13from ROOT import Belle2
16basf2.set_log_level(basf2.LogLevel.INFO)
19basf2.set_random_seed(12345)
21## \cond Doxygen_suppress
23# Create the main path.
24main = basf2.create_path()
27main.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=25000)
29# Add combination of PHOKHARA and EvtGen.
30user_decay_file_name = 'generators/examples/PhokharaEvtgenDoubleCharmonium.dec'
31user_decay_file = Belle2.FileSystem.findFile(user_decay_file_name)
32generators.add_phokhara_evtgen_combination(
33 main, ['J/psi',
'eta_c'], user_decay_file, beam_energy_spread=
False)
36output = basf2.register_module(
'RootOutput')
37output.param(
'outputFileName',
'PhokharaEvtgenData.root')
38main.add_module(output)
43main.add_module(
'Progress')
49print(basf2.statistics)