ATLAS Offline Software
Pythia8_RapidityOrderMPI.py
Go to the documentation of this file.
1 
3 
4 addRapidityOrderMPI = True
5 rapidityOrderMPICommand = []
6 
7 for cmd in genSeq.Pythia8.Commands:
8 
9  if "SpaceShower:rapidityOrderMPI = " in cmd:
10  addRapidityOrderMPI = False
11 
12  if "SpaceShower:rapidityOrder" in cmd and "SpaceShower:rapidityOrderMPI" not in cmd and addRapidityOrderMPI:
13 
14  val = cmd.split("=")[-1]
15 
16 # rel = os.popen("echo $AtlasVersion").read()
17 # if rel[:2].isdigit() and int(rel[:2])<=20 :
18  cmak_sys = os.getenv('CMAKE_PREFIX_PATH')
19 
20  rapidityOrderMPICommand = ["SpaceShower:rapidityOrderMPI = " + val]
21 
22 if addRapidityOrderMPI and len(rapidityOrderMPICommand) != 0:
23  genSeq.Pythia8.Commands += rapidityOrderMPICommand