15from beamparameters
import add_beamparameters
18basf2.set_log_level(basf2.LogLevel.INFO)
20main = basf2.create_path()
22eventinfosetter = basf2.register_module(
'EventInfoSetter')
23eventinfosetter.param(
'evtNumList', [1000])
24eventinfosetter.param(
'runList', [1])
25eventinfosetter.param(
'expList', [0])
28phokhara = basf2.register_module(
'PhokharaInput')
31phokhara.set_log_level(basf2.LogLevel.INFO)
39phokhara.param(
'FinalState', 0)
44phokhara.param(
'Epsilon', 0.0001)
47phokhara.param(
'SearchMax', 50000)
50phokhara.param(
'nMaxTrials', 25000)
57phokhara.param(
'LO', 1)
61phokhara.param(
'NLO', 1)
65phokhara.param(
'QED', 0)
69phokhara.param(
'NLOIFI', 0)
71phokhara.param(
'Alpha', 0)
75phokhara.param(
'PionFF', 0)
79phokhara.param(
'KaonFF', 0)
83phokhara.param(
'PionStructure', 0)
87phokhara.param(
'NarrowRes', 0)
91phokhara.param(
'ProtonFF', 1)
95phokhara.param(
'ScatteringAngleRangePhoton', [0., 180.])
99phokhara.param(
'ScatteringAngleRangeFinalStates', [0., 180.])
102phokhara.param(
'MinInvMassHadronsGamma', 0.)
106phokhara.param(
'MinInvMassHadrons', 0.0)
110phokhara.param(
'MaxInvMassHadrons', 200.0)
114phokhara.param(
'MinEnergyGamma', 0.25)
117gearbox = basf2.register_module(
'Gearbox')
120progress = basf2.register_module(
'Progress')
123output = basf2.register_module(
'RootOutput')
124output.param(
'outputFileName', sys.argv[1])
127main = basf2.create_path()
128main.add_module(eventinfosetter)
129add_beamparameters(main,
"Y4S")
130main.add_module(progress)
131main.add_module(gearbox)
132main.add_module(phokhara)
133main.add_module(output)
139print(basf2.statistics)