Skip to content

Commit

Permalink
Merge pull request cms-sw#167 from mariadalfonso/PhotonFix72X
Browse files Browse the repository at this point in the history
fixed dataFormat change 706-->723
  • Loading branch information
gpetruc committed Dec 10, 2014
2 parents 28a2e58 + d4c4fca commit f1844dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMGTools/RootTools/python/physicsobjects/Photon.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ class Photon(PhysicsObject ):
''' return object from the photon
'''
def hOVERe(self):
return self.physObj.full5x5_hadTowOverEm()
# return self.physObj.full5x5_hadTowOverEm()
hadTowDepth1O = self.physObj.hadTowDepth1OverEm() * (self.physObj.superCluster().energy()/self.physObj.full5x5_e5x5() if self.physObj.full5x5_e5x5() else 1)
hadTowDepth2O = self.physObj.hadTowDepth2OverEm() * (self.physObj.superCluster().energy()/self.physObj.full5x5_e5x5() if self.physObj.full5x5_e5x5() else 1)
return hadTowDepth1O + hadTowDepth2O

def r9(self):
return self.physObj.full5x5_r9()
Expand Down

0 comments on commit f1844dd

Please sign in to comment.