Commit 7cd03422 authored by Spyros Argyropoulos's avatar Spyros Argyropoulos Committed by Christian Gutschow
Browse files

Add checks for modifications of particle properties by Pythia

parent a673c7be
Pipeline #2524621 passed with stages
in 1 minute and 30 seconds
...@@ -34,7 +34,8 @@ generatorDict={ ...@@ -34,7 +34,8 @@ generatorDict={
'Setting nevents':[], 'Setting nevents':[],
'No pdf base fragment':[], 'No pdf base fragment':[],
'Generating events from gridpack':[], 'Generating events from gridpack':[],
'Integration grid files found locally. Event generation shall continue':[] 'Integration grid files found locally. Event generation shall continue':[],
'You asked Pythia8 to modify properties for particle':[]
} }
testHepMCDict={ testHepMCDict={
...@@ -272,6 +273,8 @@ def pythia8Checks(logFile,generatorName): ...@@ -272,6 +273,8 @@ def pythia8Checks(logFile,generatorName):
if "Powheg" in generatorName and not usesCorrectPowheg: if "Powheg" in generatorName and not usesCorrectPowheg:
logerr("ERROR:",generatorName+" used with incorrect include file. Please use Pythia8_Powheg_Main31.py") logerr("ERROR:",generatorName+" used with incorrect include file. Please use Pythia8_Powheg_Main31.py")
errors = True errors = True
if len(generatorDict['You asked Pythia8 to modify properties for particle']) != 0:
logwarn("WARNING: modification of particle properties requested: ", ''.join(generatorDict['You asked Pythia8 to modify properties for particle']))
if not errors: if not errors:
loggood("INFO: Pythia 8 checks:","Passed") loggood("INFO: Pythia 8 checks:","Passed")
...@@ -373,6 +376,7 @@ def main(): ...@@ -373,6 +376,7 @@ def main():
checkLine(line,'Py:MadGraphUtils',generatorDict,'=') checkLine(line,'Py:MadGraphUtils',generatorDict,'=')
checkLine(line,'Py:MadGraphSysUtils',generatorDict,'WARNING !!!') checkLine(line,'Py:MadGraphSysUtils',generatorDict,'WARNING !!!')
checkLine(line,'Py:PowhegControl',generatorDict,'INFO') checkLine(line,'Py:PowhegControl',generatorDict,'INFO')
checkLine(line,'Py:newP8util',generatorDict,'WARNING')
# This is a slight abuse (extract inputGeneratorFile printed from H7 interface and put it into transform dictionary) # This is a slight abuse (extract inputGeneratorFile printed from H7 interface and put it into transform dictionary)
checkLine(line,'Py:Herwig7_i/Herwig7_LHEF.py',generateTfDict,'inputGeneratorFile') checkLine(line,'Py:Herwig7_i/Herwig7_LHEF.py',generateTfDict,'inputGeneratorFile')
# Again an abuse to extract number of events for MadGraph which are printed like "05:14:02 Nb of events : 20000" # Again an abuse to extract number of events for MadGraph which are printed like "05:14:02 Nb of events : 20000"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment