ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
eFEXNTuple.eFEXAnalyzer Class Reference
Collaboration diagram for eFEXNTuple.eFEXAnalyzer:

Public Member Functions

def __init__ (self, inputs)
 
def set_class_type (self, inputs)
 
def get_eg_matchedtob_id (self)
 
def leading_l_id (self)
 
def is_in_crack (self, i_e)
 

Public Attributes

 classtype
 

Detailed Description

Definition at line 62 of file eFEXNTuple.py.

Constructor & Destructor Documentation

◆ __init__()

def eFEXNTuple.eFEXAnalyzer.__init__ (   self,
  inputs 
)

Definition at line 63 of file eFEXNTuple.py.

63  def __init__(self, inputs):
64  self.classtype = "e"
65  for key, value in inputs.items():
66  setattr(self, key, value)
67 

Member Function Documentation

◆ 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):
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  # TODO et selection
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  # TODO et selection
89  # if self.truth_tauvisible_ET[i_tob] < 12.:
90  # continue
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 

◆ 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:
102  return None
103  return np.argmax(self.truth_tauvisible_ET)
104 
105 

◆ 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
70 

Member Data Documentation

◆ classtype

eFEXNTuple.eFEXAnalyzer.classtype

Definition at line 64 of file eFEXNTuple.py.


The documentation for this class was generated from the following file:
eFEXNTuple.delta_R
def delta_R(eta1, phi1, eta2, phi2)
Definition: eFEXNTuple.py:20
python.processes.powheg.ZZj_MiNNLO.ZZj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZj_MiNNLO.py:18
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194