ATLAS Offline Software
Loading...
Searching...
No Matches
Epos4_Base_Fragment_PbPb.py
Go to the documentation of this file.
1include("EvgenProdTools/StdEvgenSetup.py")
2include("Epos4_i/configFile.py")
3
4theApp.EvtMax = 5
5
6from Epos4_i.Epos4_iConf import Epos4
7Ep4 = Epos4()
8Ep4.BeamMomentum = -runArgs.ecmEnergy/2.0 #For now, for symmetric collisions
9Ep4.TargetMomentum = runArgs.ecmEnergy/2.0 #For now, for symmetric collisions
10Ep4.ArgsRandomSeed = runArgs.randomSeed
11
12energy = float(runArgs.ecmEnergy) # center-of-mass energy
13number_of_events = int(runArgs.maxEvents) # number of events
14laproj = 82 # projectile atomic number
15maproj = 208 # projectile mass number
16latarg = 82 # target atomic number
17matarg = 208 # target mass number
18
19content = build_config_content(energy, number_of_events, laproj, maproj, latarg, matarg, hydro=True) # creating an optns file for epos4 configuration
20with open("Epos4.optns", "w") as f:
21 f.write(content)
22
23Ep4.InputCard = "Epos4.optns"
24genSeq += Ep4
25
This code is used to get an Epos4 Monte Carlo event.
Definition Epos4.h:19