Skip to content
Snippets Groups Projects
Commit cadb47f1 authored by Matthew Gignac's avatar Matthew Gignac
Browse files

patch for multiple grid packs

parent 7889c5c0
No related branches found
No related tags found
No related merge requests found
......@@ -150,8 +150,9 @@ class EvgenExecutor(athenaExecutor):
elif len(configFiles) >1:
msg.info("more then one gridpack ! ")
if "--ecmEnergy" in str(sys.argv[1:]):
ener=str(sys.argv[1:]).split("ecmEnergy",1)[1]
energy=str(ener)[:4].strip(" =0\']")
split_args=str(sys.argv[1:]).split("ecmEnergy=",1)[1]
ener_GeV=split_args.split(",")[0].strip("\'")
energy=str(float(ener_GeV)/1000.0).replace('.','p').strip(" =0\p']")
print("Should be used gridpack for energy = "+energy)
else:
energy="13"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment