55 myntuple = eFEXNTupleLoader(path)
58 for each
in myntuple.entries():
59 each.set_class_type(
"e")
60 if each.is_in_crack(each.leading_l_id()):
62 if abs(each.truth_e_eta[each.leading_l_id()]) > 2.3:
64 all_e_ET.append(each.truth_e_ET[each.leading_l_id()])
65 matched_tobs = each.get_eg_matchedtob_id()[each.leading_l_id()]
67 for i
in matched_tobs:
68 if not each.eg_haveseed[i]:
70 if each.eg_ET[i] <= 22:
76 selected_e_ET.append(each.truth_e_ET[each.leading_l_id()])
78 hist_height, bin_centre, hist_error =
turn_on_curve(all_e_ET, selected_e_ET,
range(0,100,5))
79 histplot([bin_centre], [hist_height], [hist_error], errorbar_limit=1, filename=
"egammatrunon")