Definition at line 63 of file eFEXNTuple.py.
◆ __init__()
def eFEXNTuple.eFEXAnalyzer.__init__ |
( |
|
self, |
|
|
|
inputs |
|
) |
| |
Definition at line 64 of file eFEXNTuple.py.
66 for key, value
in inputs.items():
67 setattr(self, key, value)
◆ get_eg_matchedtob_id()
def eFEXNTuple.eFEXAnalyzer.get_eg_matchedtob_id |
( |
|
self | ) |
|
Definition at line 72 of file eFEXNTuple.py.
72 def get_eg_matchedtob_id(self):
74 if self.classtype ==
"e":
75 for i_e
in range(len(self.truth_e_ET)):
77 for i_tob
in range(self.eg_nTOBs):
79 if self.eg_ET[i_tob] < 15.:
81 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:
83 tob_id_tem.append(i_tob)
84 output.append(tob_id_tem)
85 if self.classtype ==
"tau":
86 for i_e
in range(len(self.truth_tauvisible_ET)):
88 for i_tob
in range(self.eg_nTOBs):
92 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:
94 tob_id_tem.append(i_tob)
95 output.append(tob_id_tem)
◆ is_in_crack()
def eFEXNTuple.eFEXAnalyzer.is_in_crack |
( |
|
self, |
|
|
|
i_e |
|
) |
| |
Definition at line 107 of file eFEXNTuple.py.
107 def is_in_crack(self, i_e):
108 if self.classtype ==
"e":
109 return (abs(self.truth_e_eta[i_e]) > 1.375
and abs(self.truth_e_eta[i_e]) < 1.52)
110 if self.classtype ==
"tau":
111 return (abs(self.truth_tauvisible_eta[i_e]) > 1.375
and abs(self.truth_tauvisible_eta[i_e]) < 1.52)
◆ leading_l_id()
def eFEXNTuple.eFEXAnalyzer.leading_l_id |
( |
|
self | ) |
|
Definition at line 98 of file eFEXNTuple.py.
98 def leading_l_id(self):
99 if self.classtype ==
"e":
100 return np.argmax(self.truth_e_ET)
101 if self.classtype ==
"tau":
102 if len(self.truth_tauvisible_ET) == 0:
104 return np.argmax(self.truth_tauvisible_ET)
◆ set_class_type()
def eFEXNTuple.eFEXAnalyzer.set_class_type |
( |
|
self, |
|
|
|
inputs |
|
) |
| |
Definition at line 69 of file eFEXNTuple.py.
69 def set_class_type(self, inputs):
70 self.classtype = inputs
◆ classtype
eFEXNTuple.eFEXAnalyzer.classtype |
The documentation for this class was generated from the following file: