Skip to content

Commit

Permalink
add check consistency madgraph version in gp and in the gp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
efeyazgan committed May 15, 2024
1 parent 6001335 commit 9db6604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,10 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
mgversion = mgversion[2].split(".")
mgversion_tmp = mgversion_tmp.split("\n")
print("The gridpack is made with mg5_aMC version:"+str(mgversion_tmp[0]))
if str(mgversion_tmp[0]).strip("version =") not in gridpack_cvmfs_path:
warnings.append("Gridpack may not be in a correct madgraph version-folder in cvmfs:"+gridpack_cvmfs_path+" while madgraph "+str(mgversion_tmp[0]))
else:
print("Gridpack in correct madgraph version-folder in cvmfs:"+gridpack_cvmfs_path)
mg5_aMC_version = float(mgversion[0])*100/float(pow(10,len(str(int(mgversion[0])))-1)) + float(mgversion[1])*10/float(pow(10,len(str(int(mgversion[1])))-1)) + float(mgversion[2])/float(pow(10,len(str(int(mgversion[2])))-1))
if "UL" in pi and mg5_aMC_version < 261:
if "PPD" in pi:
Expand Down

0 comments on commit 9db6604

Please sign in to comment.