CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Photon.py
Go to the documentation of this file.
2 
4 
5  ''' return object from the photon
6  '''
7  def hOVERe(self):
8 # return self.physObj.full5x5_hadTowOverEm()
9  hadTowDepth1O = self.physObj.hadTowDepth1OverEm() * (self.physObj.superCluster().energy()/self.physObj.e5x5() if self.physObj.e5x5() else 1)
10  hadTowDepth2O = self.physObj.hadTowDepth2OverEm() * (self.physObj.superCluster().energy()/self.physObj.e5x5() if self.physObj.e5x5() else 1)
11  return hadTowDepth1O + hadTowDepth2O
12 
13  def r9(self):
14  return self.physObj.r9()
15 
16  def sigmaIetaIeta(self):
17  return self.physObj.sigmaIetaIeta()
18 
19  def chargedHadronIso(self):
20  return self.physObj.chargedHadronIso()
21 
22  def neutralHadronIso(self):
23  return self.physObj.neutralHadronIso()
24 
25  def photonIso(self):
26  return self.physObj.photonIso()
27 
28  def photonIDCSA14(self, name):
29  keepThisPhoton = True
30  if name == "PhotonCutBasedIDLoose_CSA14":
31  if abs(self.physObj.eta())<1.479 :
32  if self.physObj.sigmaIetaIeta() > 0.012 : keepThisPhoton = False
33  if self.hOVERe() > 0.0559 : keepThisPhoton = False
34  else :
35  if self.physObj.sigmaIetaIeta() > 0.035 : keepThisPhoton = False
36  if self.hOVERe() > 0.049 : keepThisPhoton = False
37  return keepThisPhoton
38 
39  pass
def neutralHadronIso
Definition: Photon.py:22
def photonIso
Definition: Photon.py:25
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def sigmaIetaIeta
Definition: Photon.py:16
def hOVERe
Definition: Photon.py:7
def photonIDCSA14
Definition: Photon.py:28
def chargedHadronIso
Definition: Photon.py:19