Skip to content

Commit

Permalink
Merge pull request #3653 from cms-sw/cross_sec_gen
Browse files Browse the repository at this point in the history
rm getting cross_section from generator field in mcm
  • Loading branch information
efeyazgan authored Mar 4, 2024
2 parents 2f1af73 + c5cd6e0 commit 5600173
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
filter_eff = r['generator_parameters'][-1]['filter_efficiency']
match_eff = r['generator_parameters'][-1]['match_efficiency']
total_eff = filter_eff*match_eff
cross_section = r['generator_parameters'][-1]['cross_section']
ext = r['extension']
print("Extension or not: "+str(ext))
print(pi+" Status= "+r['status'])
Expand Down Expand Up @@ -662,11 +661,6 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
filter_eff_fragment = re.findall('\((.*?)\)',filter_eff_fragment)[0]
print("Filter efficiency in the fragment ="+ str(filter_eff_fragment))
print("Cross section in the fragment =" + str(cross_section_fragment) +" pb")
print("Cross section from generator parameters field = "+str(cross_section)+" pb")
if not str(cross_section_fragment).isdigit():
warnings.append("Skipping the cross section consistency check in generator parameters field and the fragment. This is most probably because the cross section is defined through a variable")
if str(cross_section_fragment).isdigit() is True and cross_section_fragment and cross_section and int(ext) == 0 and float(cross_section_fragment) != float(cross_section):
errors.append("Cross section in the generator parameters field and the one in the fragment do not match!")
print("")
print("Filter efficiency in fragment =" + str(filter_eff_fragment))
print("Filter efficiency from generator parameters field = "+str(filter_eff))
Expand Down

0 comments on commit 5600173

Please sign in to comment.