28 basf2.set_log_level(basf2.LogLevel.INFO)
30 main = basf2.create_path()
32 main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
38 decay_file = basf2.find_file(
'generators/examples/PhokharaEvtgenDoubleCharmonium.dec')
40 main, [
'J/psi',
'eta_c'], decay_file, beam_energy_spread=
True)
43 output = basf2.register_module(
'RootOutput')
44 output.param(
'outputFileName',
'phokhara_evtgen_double_charmonium.root')
45 main.add_module(output)
48 main.add_module(
'PrintMCParticles', logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
51 main.add_module(
'Progress')
57 print(basf2.statistics)
def add_beamparameters(path, name, E_cms=None, **argk)
def add_phokhara_evtgen_combination(path, final_state_particles, user_decay_file, beam_energy_spread=True, isr_events=False, min_inv_mass_vpho=0.0, max_inv_mass_vpho=0.0, eventType='')