CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Photon.Photon Class Reference
Inheritance diagram for Photon.Photon:

Public Member Functions

def chargedHadronIso
 
def full5x5_r9
 
def full5x5_sigmaIetaIeta
 
def hOVERe
 
def neutralHadronIso
 
def photonIDCSA14
 
def photonIso
 
def r9
 
def sigmaIetaIeta
 

Detailed Description

return object from the photon 

Definition at line 5 of file Photon.py.

Member Function Documentation

def Photon.Photon.chargedHadronIso (   self)

Definition at line 27 of file Photon.py.

Referenced by Lepton.Lepton.absIso(), and Lepton.Lepton.absIsoFromEA().

27 
28  def chargedHadronIso(self):
29  return self.physObj.chargedHadronIso()
def chargedHadronIso
Definition: Photon.py:27
def Photon.Photon.full5x5_r9 (   self)

Definition at line 21 of file Photon.py.

21 
22  def full5x5_r9(self):
23  return self.physObj.full5x5_r9()
def full5x5_r9
Definition: Photon.py:21
def Photon.Photon.full5x5_sigmaIetaIeta (   self)

Definition at line 24 of file Photon.py.

Referenced by Photon.Photon.photonIDCSA14().

24 
25  def full5x5_sigmaIetaIeta(self):
26  return self.physObj.full5x5_sigmaIetaIeta()
def full5x5_sigmaIetaIeta
Definition: Photon.py:24
def Photon.Photon.hOVERe (   self)

Definition at line 9 of file Photon.py.

References relval_parameters_module.energy.

Referenced by Photon.Photon.photonIDCSA14().

9 
10  def hOVERe(self):
11  #return self.physObj.hadronicOverEm()
12  hadTowDepth1O = self.physObj.hadTowDepth1OverEm() * (self.physObj.superCluster().energy()/self.physObj.full5x5_e5x5() if self.physObj.full5x5_e5x5() else 1)
13  hadTowDepth2O = self.physObj.hadTowDepth2OverEm() * (self.physObj.superCluster().energy()/self.physObj.full5x5_e5x5() if self.physObj.full5x5_e5x5() else 1)
14  return hadTowDepth1O + hadTowDepth2O
def hOVERe
Definition: Photon.py:9
def Photon.Photon.neutralHadronIso (   self)

Definition at line 30 of file Photon.py.

Referenced by Lepton.Lepton.absIso(), and Lepton.Lepton.absIsoFromEA().

30 
31  def neutralHadronIso(self):
32  return self.physObj.neutralHadronIso()
def neutralHadronIso
Definition: Photon.py:30
def Photon.Photon.photonIDCSA14 (   self,
  name 
)

Definition at line 36 of file Photon.py.

References funct.abs(), Photon.Photon.full5x5_sigmaIetaIeta(), reco::Photon.full5x5_sigmaIetaIeta(), reco::GsfElectron.full5x5_sigmaIetaIeta(), and Photon.Photon.hOVERe().

36 
37  def photonIDCSA14(self, name):
38  keepThisPhoton = True
39  if name == "PhotonCutBasedIDLoose_CSA14":
40  if abs(self.physObj.eta())<1.479 :
41  if self.full5x5_sigmaIetaIeta() > 0.012 : keepThisPhoton = False
42  if self.hOVERe() > 0.0559 : keepThisPhoton = False
43  else :
44  if self.full5x5_sigmaIetaIeta() > 0.035 : keepThisPhoton = False
45  if self.hOVERe() > 0.049 : keepThisPhoton = False
46  return keepThisPhoton
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def hOVERe
Definition: Photon.py:9
def photonIDCSA14
Definition: Photon.py:36
def full5x5_sigmaIetaIeta
Definition: Photon.py:24
def Photon.Photon.photonIso (   self)

Definition at line 33 of file Photon.py.

Referenced by Lepton.Lepton.absIso(), and Lepton.Lepton.absIsoFromEA().

33 
34  def photonIso(self):
35  return self.physObj.photonIso()
def photonIso
Definition: Photon.py:33
def Photon.Photon.r9 (   self)

Definition at line 15 of file Photon.py.

15 
16  def r9(self):
17  return self.physObj.r9()
def Photon.Photon.sigmaIetaIeta (   self)

Definition at line 18 of file Photon.py.

18 
19  def sigmaIetaIeta(self):
20  return self.physObj.sigmaIetaIeta()
def sigmaIetaIeta
Definition: Photon.py:18