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