71 def get_eg_matchedtob_id(self):
72 output = []
73 if self.classtype == "e":
74 for i_e in range(len(self.truth_e_ET)):
75 tob_id_tem = []
76 for i_tob in range(self.eg_nTOBs):
77
78 if self.eg_ET[i_tob] < 15.:
79 continue
80 if delta_R(self.truth_e_eta[i_e], self.truth_e_phi[i_e], self.eg_eta[i_tob], self.eg_phi[i_tob]) > 0.12:
81 continue
82 tob_id_tem.append(i_tob)
83 output.append(tob_id_tem)
84 if self.classtype == "tau":
85 for i_e in range(len(self.truth_tauvisible_ET)):
86 tob_id_tem = []
87 for i_tob in range(self.eg_nTOBs):
88
89
90
91 if delta_R(self.truth_tauvisible_eta[i_e], self.truth_tauvisible_phi[i_e], self.eg_eta[i_tob], self.eg_phi[i_tob]) > 0.12:
92 continue
93 tob_id_tem.append(i_tob)
94 output.append(tob_id_tem)
95 return output
96