Commit 1c8a6938 authored by Johannes Elmsheuser's avatar Johannes Elmsheuser Committed by Atlas Nightlybuild
Browse files

Merge branch 'cpollard-MG-mass-fix' into 'master'

Fix possible bug in modify_param_card

See merge request !46078

(cherry picked from commit 3489b821)

e1324fe4 Update Generators/MadGraphControl/python/MadGraphUtils.py
62b86ad9 Fix leftovers bug
parent 10feff96
Pipeline #2961225 passed with stage
in 0 seconds
......@@ -2073,7 +2073,11 @@ def modify_param_card(param_card_input=None,param_card_backup=None,process_dir=M
pos = 0 if line.strip().startswith('DECAY') else 1
if blockName=='MASS' and 'MASS' in params:
# Any residual masses to set?
leftOvers = [ x for x in params['MASS'] if x not in doneParams['MASS'] ]
if "MASS" in doneParams:
leftOvers = [ x for x in params['MASS'] if x not in doneParams['MASS'] ]
else:
leftOvers = [ x for x in params['MASS'] ]
for pdg_id in leftOvers:
mglog.warning('Adding mass line for '+str(pdg_id)+' = '+str(params['MASS'][pdg_id])+' which was not in original param card')
newcard.write(' '+str(pdg_id)+' '+str(params['MASS'][pdg_id])+'\n')
......
File mode changed from 100644 to 100755
Markdown is supported
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