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={
'Setting nevents':[],
'No pdf base fragment':[],
'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':[]
......@@ -272,6 +273,8 @@ def pythia8Checks(logFile,generatorName):
if "Powheg" in generatorName and not usesCorrectPowheg:
logerr("ERROR:",generatorName+" used with incorrect include file. Please use")
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:
loggood("INFO: Pythia 8 checks:","Passed")
......@@ -373,6 +376,7 @@ def main():
checkLine(line,'Py:MadGraphSysUtils',generatorDict,'WARNING !!!')
# This is a slight abuse (extract inputGeneratorFile printed from H7 interface and put it into transform dictionary)
# 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