Definition at line 62 of file eFEXNTuple.py.
◆ __init__()
def eFEXNTuple.eFEXAnalyzer.__init__ |
( |
|
self, |
|
|
|
inputs |
|
) |
| |
Definition at line 63 of file eFEXNTuple.py.
65 for key, value
in inputs.items():
66 setattr(self, key, value)
◆ get_eg_matchedtob_id()
def eFEXNTuple.eFEXAnalyzer.get_eg_matchedtob_id |
( |
|
self | ) |
|
Definition at line 71 of file eFEXNTuple.py.
71 def get_eg_matchedtob_id(self):
73 if self.classtype ==
"e":
74 for i_e
in range(len(self.truth_e_ET)):
76 for i_tob
in range(self.eg_nTOBs):
78 if self.eg_ET[i_tob] < 15.:
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:
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)):
87 for i_tob
in range(self.eg_nTOBs):
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:
93 tob_id_tem.append(i_tob)
94 output.append(tob_id_tem)
◆ is_in_crack()
def eFEXNTuple.eFEXAnalyzer.is_in_crack |
( |
|
self, |
|
|
|
i_e |
|
) |
| |
Definition at line 106 of file eFEXNTuple.py.
106 def is_in_crack(self, i_e):
107 if self.classtype ==
"e":
108 return (abs(self.truth_e_eta[i_e]) > 1.375
and abs(self.truth_e_eta[i_e]) < 1.52)
109 if self.classtype ==
"tau":
110 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 97 of file eFEXNTuple.py.
97 def leading_l_id(self):
98 if self.classtype ==
"e":
99 return np.argmax(self.truth_e_ET)
100 if self.classtype ==
"tau":
101 if len(self.truth_tauvisible_ET) == 0:
103 return np.argmax(self.truth_tauvisible_ET)
◆ set_class_type()
def eFEXNTuple.eFEXAnalyzer.set_class_type |
( |
|
self, |
|
|
|
inputs |
|
) |
| |
Definition at line 68 of file eFEXNTuple.py.
68 def set_class_type(self, inputs):
69 self.classtype = inputs
◆ classtype
eFEXNTuple.eFEXAnalyzer.classtype |
The documentation for this class was generated from the following file: