1include(
"EvgenProdTools/StdEvgenSetup.py")
2include(
"configFile.py")
7from pathlib
import Path
8os.environ[
"EPO"] = os.environ[
"EPO"] +
"/"
9BASE = os.environ[
"EPO"]
10os.environ[
"SRC"] = f
"{BASE}/src"
11os.environ[
"SRCEXT"] = f
"{BASE}/srcext"
12os.environ[
"CONF"] = f
"{BASE}/config"
13os.environ[
"DAT"] = f
"{BASE}/"
14os.environ[
"OPT"] = str(Path.cwd()) +
"/"
15os.environ[
"HTO"] = str(Path.cwd()) +
"/"
16os.environ[
"CHK"] = str(Path.cwd()) +
"/"
17OPT = os.environ[
"OPT"]
18os.environ[
"OPX"] = str(Path.cwd()) +
"/" if OPT ==
"./" else OPT
20from Epos4_i.Epos4_iConf
import Epos4
22Ep4.BeamMomentum = -runArgs.ecmEnergy/2.0
23Ep4.TargetMomentum = runArgs.ecmEnergy/2.0
25energy = float(runArgs.ecmEnergy)
26number_of_events = int(runArgs.maxEvents)
28content = build_config_content(energy, number_of_events)
29with open(
"foo.optns",
"w")
as f:
32Ep4.InputCard =
"foo.optns"
This code is used to get an Epos4 Monte Carlo event.