15 basf2.set_log_level(basf2.LogLevel.INFO)
17 main = basf2.create_path()
19 main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
22 phokhara = basf2.register_module(
'PhokharaInput')
25 phokhara.set_log_level(basf2.LogLevel.INFO)
33 phokhara.param(
'FinalState', 0)
38 phokhara.param(
'Epsilon', 0.0001)
41 phokhara.param(
'SearchMax', 5000)
44 phokhara.param(
'nMaxTrials', 25000)
48 phokhara.param(
'LO', 0)
52 phokhara.param(
'NLO', 1)
56 phokhara.param(
'QED', 0)
60 phokhara.param(
'IFSNLO', 0)
63 phokhara.param(
'Alpha', 0)
67 phokhara.param(
'PionFF', 0)
71 phokhara.param(
'KaonFF', 0)
75 phokhara.param(
'PionStructure', 0)
79 phokhara.param(
'NarrowRes', 0)
83 phokhara.param(
'ProtonFF', 1)
87 phokhara.param(
'ScatteringAngleRangePhoton', [0., 180.])
91 phokhara.param(
'ScatteringAngleRangeFinalStates', [0., 180.])
95 phokhara.param(
'MinInvMassHadronsGamma', 0.)
99 phokhara.param(
'MinInvMassHadrons', 0.5)
103 phokhara.param(
'MaxInvMassHadrons', 105.0)
107 phokhara.param(
'MinEnergyGamma', 0.25)
110 output = basf2.register_module(
'RootOutput')
111 output.param(
'outputFileName',
'./phokhara_out.root')
114 main.add_module(
"Progress")
115 main.add_module(phokhara)
116 main.add_module(output)
117 main.add_module(
"PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=
False)
123 print(basf2.statistics)