Skip to content

Commit

Permalink
Merge pull request #3856 from cms-sw/minnlo_nfinal
Browse files Browse the repository at this point in the history
minnlo nfinal
  • Loading branch information
efeyazgan authored Feb 26, 2025
2 parents 68dc949 + 7d26e5a commit 6000549
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
for i in split_dp:
if ("slc" and "CMSSW") in i: split_dp_gpf = i
if ((split_dp_gpf.startswith("Z") or split_dp_gpf.startswith("gg_H")) and nFinal != 1) or ((split_dp_gpf.startswith("HJJ") or split_dp_gpf.startswith("ttH") or split_dp_gpf.startswith("HZJ") or split_dp_gpf.startswith("HWJ")) and nFinal!= 3) or (split_dp_gpf.startswith("ggHZ") and nFinal!=2):
warnings.append("nFinal="+str(nFinal) + " may not be equal to the number of final state particles before decays)")
warnings.append("nFinal="+str(nFinal) + " may not be equal to the number of final state particles before decays)")
pw_processes = 'dy','ggh','glugluh','tth','hzj','hwj','ggzh'
if not any(i in dn.lower() for i in pw_processes):
warnings.append("Please check manually if nFinal="+str(nFinal) + " for this process is OK, i.e. equal to the number of final state particles before decays) ")
Expand Down Expand Up @@ -1432,6 +1432,8 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
if "minnlo" in line and "modlog_p" not in line:
minnlo = int(re.split(r'\s+', line)[1])
print("MINNLO = "+str(minnlo))
if minnlo and nFinal!=-1:
warnings.append("nFinal="+str(nFinal) + " but the recommended value for nFinal for MiNNLO samples is -1")
if os.path.isfile(my_path+'/'+pi+'/'+'external_tarball/pwg-stst.dat'):
pwg_stat_file = os.path.join(my_path, pi, "external_tarball/pwg-stat.dat")
else:
Expand Down

0 comments on commit 6000549

Please sign in to comment.