Commit a65bb3eb authored by Spyros Argyropoulos's avatar Spyros Argyropoulos
Browse files

Merge branch 'master' of ssh://gitlab.cern.ch:7999/atlas-physics/pmg/mcjoboptions into artifacts

parents 78e941f8 00d8265d
Pipeline #1246576 failed with stages
in 59 seconds
......@@ -341,13 +341,6 @@ def main():
if float(val[0]) < 0:
logerr( '- '+name+' = ',"".join(val)+" <-- ERROR: Cross-section is negative")
continue
elif name=="GenFiltEff":
if float(val[0]) < 1E-5:
logerr( '- '+name+' = ',"".join(val)+" <-- ERROR: Filter efficiency too low")
continue
elif float(val[0]) < 5E-2:
logwarn( '- '+name+' = ',"".join(val)+" <-- WARNING: Low filter efficiency")
continue
elif name=="keywords":
kfile = open("common/evgenkeywords.txt")
klines = kfile.readlines()
......@@ -474,12 +467,14 @@ def main():
loggood( '- '+dictkey+" "+name+' = ',"".join(val))
continue
#Check filter efficiencies aren not too low
#Check filter efficiencies are not too low
if dictkey=="EvgenFilterSeq":
if name=="Weighted Filter Efficiency":
filt_eff=float(val[0].split()[0])
if float(val[0].split()[0])<0.01:
if float(val[0].split()[0])<1e-6:
logerr( '- '+dictkey+" "+name+' = ',"".join(val))
elif float(val[0].split()[0])<1e-4:
logwarn( '- '+dictkey+" "+name+' = ',"".join(val))
else:
loggood( '- '+dictkey+" "+name+' = ',"".join(val))
continue
......
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