ATLAS Offline Software
Loading...
Searching...
No Matches
Epos4_Base_Fragment_pp.py
Go to the documentation of this file.
1include("EvgenProdTools/StdEvgenSetup.py")
2include("Epos4_i/configFile.py")
3
4theApp.EvtMax = 100
5
6from Epos4_i.Epos4_iConf import Epos4
7Ep4 = Epos4()
8Ep4.ArgsRandomSeed = runArgs.randomSeed
9
10energy = float(runArgs.ecmEnergy) # center-of-mass energy
11number_of_events = int(runArgs.maxEvents) # number of events
12list_noDecayParticles = "110" # the most basic noDecayList
13
14content = build_config_content(energy, number_of_events, hydro=True, centralityClass=0, list_of_particle_ids=list_noDecayParticles) #creating an optns file for epos4 configuration
15
16with open("Epos4.optns", "w") as f:
17 f.write(content)
18
19Ep4.InputCard = "Epos4.optns"
20genSeq += Ep4
21
This code is used to get an Epos4 Monte Carlo event.
Definition Epos4.h:19