CMS 3D CMS Logo

reco::PhotonID Class Reference

#include <DataFormats/EgammaCandidates/interface/PhotonID.h>

List of all members.

Public Member Functions

bool isAlsoElectron () const
bool isEBEEGap () const
bool isEBGap () const
bool isEBPho () const
bool isEEGap () const
bool isEEPho () const
bool isLooseEM () const
bool isLoosePhoton () const
float isolationEcalRecHit () const
float isolationHcalRecHit () const
float isolationHollowTrkCone () const
float isolationSolidTrkCone () const
bool isTightPhoton () const
int nTrkHollowCone () const
int nTrkSolidCone () const
 PhotonID (bool LooseEM, bool LoosePho, bool TightPho, float TrkCone4, float HollowCone, int nTrkCone, int nHollow, float EcalRecHitIso, float HcalRecHitIso, float r9, bool EBPho, bool EEPho, bool EBGap, bool EEGap, bool EBEEGap, bool isAlsoElectron)
 PhotonID ()
float r9 () const
void setDecision (bool decisionLooseEM, bool decisionLoosePho, bool decisionTightPho)
void setFiducialFlags (bool EBPho, bool EEPho, bool EBGap, bool EEGap, bool EBEEGap)

Private Attributes

bool isAlsoElectron_
bool isEBEEGap_
bool isEBGap_
bool isEBPho_
bool isEEGap_
bool isEEPho_
bool isLooseEM_
bool isLoosePhoton_
float isolationEcalRecHit_
float isolationHcalRecHit_
float isolationHollowTrkCone_
float isolationSolidTrkCone_
bool isTightPhoton_
int nTrkHollowTrkCone_
int nTrkSolidCone_
float r9_


Detailed Description

Definition at line 6 of file PhotonID.h.


Constructor & Destructor Documentation

PhotonID::PhotonID (  ) 

Definition at line 6 of file PhotonID.cc.

References isAlsoElectron_, isEBEEGap_, isEBGap_, isEBPho_, isEEGap_, isEEPho_, isLooseEM_, isLoosePhoton_, isolationEcalRecHit_, isolationHcalRecHit_, isolationHollowTrkCone_, isolationSolidTrkCone_, isTightPhoton_, nTrkHollowTrkCone_, nTrkSolidCone_, and r9_.

00006                   {
00007   isLooseEM_=false;
00008   isLoosePhoton_=false;
00009   isTightPhoton_=false;
00010   isolationEcalRecHit_=999;
00011   isolationHcalRecHit_=999;
00012   isolationSolidTrkCone_=999;
00013   isolationHollowTrkCone_=999;
00014   nTrkSolidCone_=999;
00015   nTrkHollowTrkCone_=999;
00016   r9_ = 0;
00017   isEBPho_=false;
00018   isEEPho_=false;
00019   isEBGap_=false;
00020   isEEGap_=false;
00021   isEBEEGap_=false;
00022   isAlsoElectron_=false;
00023 }

PhotonID::PhotonID ( bool  LooseEM,
bool  LoosePho,
bool  TightPho,
float  TrkCone4,
float  HollowCone,
int  nTrkCone,
int  nHollow,
float  EcalRecHitIso,
float  HcalRecHitIso,
float  r9,
bool  EBPho,
bool  EEPho,
bool  EBGap,
bool  EEGap,
bool  EBEEGap,
bool  isAlsoElectron 
)

Definition at line 25 of file PhotonID.cc.

References isAlsoElectron_, isEBEEGap_, isEBGap_, isEBPho_, isEEGap_, isEEPho_, isLooseEM_, isLoosePhoton_, isolationEcalRecHit_, isolationHcalRecHit_, isolationHollowTrkCone_, isolationSolidTrkCone_, isTightPhoton_, nTrkHollowTrkCone_, nTrkSolidCone_, and r9_.

00040                                        {
00041 
00042   isLooseEM_ = isLooseEM;
00043   isLoosePhoton_ = isLoosePho;
00044   isTightPhoton_ = isTightPho;
00045   isolationEcalRecHit_ = EcalRecHitIso;
00046   isolationHcalRecHit_ = HcalRecHitIso;
00047   isolationSolidTrkCone_=TrkCone;
00048   isolationHollowTrkCone_=HollowCone;
00049   nTrkSolidCone_=nTrkCone;
00050   nTrkHollowTrkCone_=nHollow;
00051   r9_ = r9;
00052   isEBPho_=EBPho;
00053   isEEPho_=EEPho;
00054   isEBGap_=EBGap;
00055   isEEGap_=EEGap;
00056   isEBEEGap_=EBEEGap;
00057   isAlsoElectron_ = isAlsoElectron;
00058 }


Member Function Documentation

bool reco::PhotonID::isAlsoElectron (  )  const [inline]

Definition at line 53 of file PhotonID.h.

References isAlsoElectron_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isAlsoElectron().

00053 {return isAlsoElectron_;}

bool reco::PhotonID::isEBEEGap (  )  const [inline]

Definition at line 51 of file PhotonID.h.

References isEBEEGap_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isEBEEGap().

00051 {return isEBEEGap_;}

bool reco::PhotonID::isEBGap (  )  const [inline]

Definition at line 47 of file PhotonID.h.

References isEBGap_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isEBGap().

00047 {return isEBGap_;}

bool reco::PhotonID::isEBPho (  )  const [inline]

Definition at line 43 of file PhotonID.h.

References isEBPho_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isEBPho().

00043 {return isEBPho_;}

bool reco::PhotonID::isEEGap (  )  const [inline]

Definition at line 49 of file PhotonID.h.

References isEEGap_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isEEGap().

00049 {return isEEGap_;}

bool reco::PhotonID::isEEPho (  )  const [inline]

Definition at line 45 of file PhotonID.h.

References isEEPho_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isEEPho().

00045 {return isEEPho_;}

bool reco::PhotonID::isLooseEM (  )  const [inline]

Definition at line 24 of file PhotonID.h.

References isLooseEM_.

Referenced by pat::Photon::isLooseEM().

00024 {return isLooseEM_;}

bool reco::PhotonID::isLoosePhoton (  )  const [inline]

Definition at line 25 of file PhotonID.h.

References isLoosePhoton_.

Referenced by pat::Photon::isLoosePhoton().

00025 {return isLoosePhoton_;}

float reco::PhotonID::isolationEcalRecHit (  )  const [inline]

Definition at line 29 of file PhotonID.h.

References isolationEcalRecHit_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isolationEcalRecHit().

00029 {return isolationEcalRecHit_;}

float reco::PhotonID::isolationHcalRecHit (  )  const [inline]

Definition at line 31 of file PhotonID.h.

References isolationHcalRecHit_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isolationHcalRecHit().

00031 {return isolationHcalRecHit_;}

float reco::PhotonID::isolationHollowTrkCone (  )  const [inline]

Definition at line 35 of file PhotonID.h.

References isolationHollowTrkCone_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isolationHollowTrkCone().

00035 {return isolationHollowTrkCone_;}

float reco::PhotonID::isolationSolidTrkCone (  )  const [inline]

Definition at line 33 of file PhotonID.h.

References isolationSolidTrkCone_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::isolationSolidTrkCone().

00033 {return isolationSolidTrkCone_;}

bool reco::PhotonID::isTightPhoton (  )  const [inline]

Definition at line 26 of file PhotonID.h.

References isTightPhoton_.

Referenced by pat::Photon::isTightPhoton().

00026 {return isTightPhoton_;}

int reco::PhotonID::nTrkHollowCone (  )  const [inline]

Definition at line 39 of file PhotonID.h.

References nTrkHollowTrkCone_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::nTrkHollowCone().

00039 {return nTrkHollowTrkCone_;}

int reco::PhotonID::nTrkSolidCone (  )  const [inline]

Definition at line 37 of file PhotonID.h.

References nTrkSolidCone_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::nTrkSolidCone().

00037 {return nTrkSolidCone_;}

float reco::PhotonID::r9 (  )  const [inline]

Definition at line 41 of file PhotonID.h.

References r9_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and pat::Photon::r9().

00041 {return r9_;}

void PhotonID::setDecision ( bool  decisionLooseEM,
bool  decisionLoosePho,
bool  decisionTightPho 
)

Definition at line 74 of file PhotonID.cc.

References isLooseEM_, isLoosePhoton_, and isTightPhoton_.

Referenced by CutBasedPhotonIDAlgo::decideEB(), and CutBasedPhotonIDAlgo::decideEE().

00075                                                  {
00076   isLooseEM_ = decisionLooseEM;
00077   isLoosePhoton_ = decisionLoosePho;
00078   isTightPhoton_ = decisionTightPho;
00079 
00080 }

void PhotonID::setFiducialFlags ( bool  EBPho,
bool  EEPho,
bool  EBGap,
bool  EEGap,
bool  EBEEGap 
)

Definition at line 61 of file PhotonID.cc.

References isEBEEGap_, isEBGap_, isEBPho_, isEEGap_, and isEEPho_.

00065                                              {
00066   isEBPho_=EBPho;
00067   isEEPho_=EEPho;
00068   isEBGap_=EBGap;
00069   isEEGap_=EEGap;
00070   isEBEEGap_=EBEEGap;
00071 }


Member Data Documentation

bool reco::PhotonID::isAlsoElectron_ [private]

Definition at line 89 of file PhotonID.h.

Referenced by isAlsoElectron(), and PhotonID().

bool reco::PhotonID::isEBEEGap_ [private]

Definition at line 86 of file PhotonID.h.

Referenced by isEBEEGap(), PhotonID(), and setFiducialFlags().

bool reco::PhotonID::isEBGap_ [private]

Definition at line 84 of file PhotonID.h.

Referenced by isEBGap(), PhotonID(), and setFiducialFlags().

bool reco::PhotonID::isEBPho_ [private]

Definition at line 82 of file PhotonID.h.

Referenced by isEBPho(), PhotonID(), and setFiducialFlags().

bool reco::PhotonID::isEEGap_ [private]

Definition at line 85 of file PhotonID.h.

Referenced by isEEGap(), PhotonID(), and setFiducialFlags().

bool reco::PhotonID::isEEPho_ [private]

Definition at line 83 of file PhotonID.h.

Referenced by isEEPho(), PhotonID(), and setFiducialFlags().

bool reco::PhotonID::isLooseEM_ [private]

Definition at line 62 of file PhotonID.h.

Referenced by isLooseEM(), PhotonID(), and setDecision().

bool reco::PhotonID::isLoosePhoton_ [private]

Definition at line 63 of file PhotonID.h.

Referenced by isLoosePhoton(), PhotonID(), and setDecision().

float reco::PhotonID::isolationEcalRecHit_ [private]

Definition at line 68 of file PhotonID.h.

Referenced by isolationEcalRecHit(), and PhotonID().

float reco::PhotonID::isolationHcalRecHit_ [private]

Definition at line 70 of file PhotonID.h.

Referenced by isolationHcalRecHit(), and PhotonID().

float reco::PhotonID::isolationHollowTrkCone_ [private]

Definition at line 74 of file PhotonID.h.

Referenced by isolationHollowTrkCone(), and PhotonID().

float reco::PhotonID::isolationSolidTrkCone_ [private]

Definition at line 72 of file PhotonID.h.

Referenced by isolationSolidTrkCone(), and PhotonID().

bool reco::PhotonID::isTightPhoton_ [private]

Definition at line 64 of file PhotonID.h.

Referenced by isTightPhoton(), PhotonID(), and setDecision().

int reco::PhotonID::nTrkHollowTrkCone_ [private]

Definition at line 78 of file PhotonID.h.

Referenced by nTrkHollowCone(), and PhotonID().

int reco::PhotonID::nTrkSolidCone_ [private]

Definition at line 76 of file PhotonID.h.

Referenced by nTrkSolidCone(), and PhotonID().

float reco::PhotonID::r9_ [private]

Definition at line 80 of file PhotonID.h.

Referenced by PhotonID(), and r9().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:22 2009 for CMSSW by  doxygen 1.5.4