forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#87 from mariadalfonso/maria_7X_photons
added photons in 7X
- Loading branch information
Showing
5 changed files
with
120 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
from CMGTools.RootTools.physicsobjects.Lepton import Lepton | ||
from CMGTools.RootTools.physicsobjects.PhysicsObject import * | ||
|
||
class Photon(PhysicsObject ): | ||
|
||
''' return object from the photon | ||
''' | ||
def hOVERe(self): | ||
return self.physObj.full5x5_hadTowOverEm() | ||
|
||
def r9(self): | ||
return self.physObj.full5x5_r9() | ||
|
||
def sigmaIetaIeta(self): | ||
return self.physObj.full5x5_sigmaIetaIeta() | ||
|
||
def chargedHadronIso(self): | ||
return self.physObj.chargedHadronIso() | ||
|
||
def neutralHadronIso(self): | ||
return self.physObj.neutralHadronIso() | ||
|
||
def photonIso(self): | ||
return self.physObj.photonIso() | ||
|
||
class Photon(Lepton): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters