7 ''' return object from the photon
11 hadTowDepth1O = self.physObj.hadTowDepth1OverEm() * (self.physObj.superCluster().
energy()/self.physObj.full5x5_e5x5()
if self.physObj.full5x5_e5x5()
else 1)
12 hadTowDepth2O = self.physObj.hadTowDepth2OverEm() * (self.physObj.superCluster().
energy()/self.physObj.full5x5_e5x5()
if self.physObj.full5x5_e5x5()
else 1)
13 return hadTowDepth1O + hadTowDepth2O
16 return self.physObj.r9()
19 return self.physObj.sigmaIetaIeta()
22 return self.physObj.full5x5_r9()
25 return self.physObj.full5x5_sigmaIetaIeta()
28 return self.physObj.chargedHadronIso()
31 return self.physObj.neutralHadronIso()
34 return self.physObj.photonIso()
38 if name ==
"PhotonCutBasedIDLoose_CSA14":
39 if abs(self.physObj.eta())<1.479 :
41 if self.
hOVERe() > 0.0559 : keepThisPhoton =
False
44 if self.
hOVERe() > 0.049 : keepThisPhoton =
False
49 setattr(ROOT.pat.Photon,
"recoPhotonIso", ROOT.reco.Photon.photonIso)
50 setattr(ROOT.pat.Photon,
"recoNeutralHadronIso", ROOT.reco.Photon.neutralHadronIso)
51 setattr(ROOT.pat.Photon,
"recoChargedHadronIso", ROOT.reco.Photon.chargedHadronIso)
Abs< T >::type abs(const T &t)
def full5x5_sigmaIetaIeta