4 addRapidityOrderMPI =
True
5 rapidityOrderMPICommand = []
7 for cmd
in genSeq.Pythia8.Commands:
9 if "SpaceShower:rapidityOrderMPI = " in cmd:
10 addRapidityOrderMPI =
False
12 if "SpaceShower:rapidityOrder" in cmd
and "SpaceShower:rapidityOrderMPI" not in cmd
and addRapidityOrderMPI:
14 val = cmd.split(
"=")[-1]
18 cmak_sys = os.getenv(
'CMAKE_PREFIX_PATH')
20 rapidityOrderMPICommand = [
"SpaceShower:rapidityOrderMPI = " + val]
22 if addRapidityOrderMPI
and len(rapidityOrderMPICommand) != 0:
23 genSeq.Pythia8.Commands += rapidityOrderMPICommand