CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
reco::Photon Class Reference

#include <Photon.h>

Inheritance diagram for reco::Photon:
reco::RecoCandidate reco::LeafCandidate reco::Candidate pat::PATObject< reco::Photon > pat::Photon

Classes

struct  FiducialFlags
 
struct  IsolationVariables
 
struct  PflowIsolationVariables
 
struct  ShowerShape
 

Public Member Functions

math::XYZPointF caloPosition () const
 position in ECAL: this is th SC position if r9<0.93. If r8>0.93 is position of seed BasicCluster taking shower depth for unconverted photon More...
 
float chargedHadronIso () const
 Particle Flow Isolation variables. More...
 
virtual Photonclone () const
 returns a clone of the candidate More...
 
reco::ConversionRefVector conversions () const
 vector of references to Conversion's More...
 
float e1x5 () const
 Shower shape variables. More...
 
float e2x5 () const
 
float e3x3 () const
 
float e5x5 () const
 
float ecalRecHitSumEtConeDR03 () const
 Isolation variables in cone dR=0.3. More...
 
float ecalRecHitSumEtConeDR04 () const
 
reco::ElectronSeedRefVector electronPixelSeeds () const
 reference to electron Pixel seed More...
 
float hadronicDepth1OverEm () const
 the hadronic release in depth1 over electromagnetic fraction More...
 
float hadronicDepth2OverEm () const
 the hadronic release in depth2 over electromagnetic fraction More...
 
float hadronicOverEm () const
 the total hadronic over electromagnetic fraction More...
 
bool hasConversionTracks () const
 Bool flagging photons with a vector of refereces to conversions with size >0. More...
 
bool hasPixelSeed () const
 Bool flagging photons having a non-zero size vector of Ref to electornPixel seeds. More...
 
float hcalDepth1TowerSumEtConeDR03 () const
 Hcal-Depth1 isolation sum. More...
 
float hcalDepth1TowerSumEtConeDR04 () const
 Hcal-Depth1 isolation sum. More...
 
float hcalDepth2TowerSumEtConeDR03 () const
 Hcal-Depth2 isolation sum. More...
 
float hcalDepth2TowerSumEtConeDR04 () const
 Hcal-Depth2 isolation sum. More...
 
float hcalTowerSumEtConeDR03 () const
 Hcal isolation sum. More...
 
float hcalTowerSumEtConeDR04 () const
 Hcal isolation sum. More...
 
bool isEB () const
 
bool isEBEEGap () const
 true if photon is in boundary between EB and EE More...
 
bool isEBEtaGap () const
 
bool isEBGap () const
 true if photon is in EB, and inside the boundaries in super crystals/modules More...
 
bool isEBPhiGap () const
 
bool isEE () const
 
bool isEEDeeGap () const
 
bool isEEGap () const
 true if photon is in EE, and inside the boundaries in supercrystal/D More...
 
bool isEERingGap () const
 
bool isPFlowPhoton () const
 Retrieve photonCore attributes. More...
 
bool isPhoton () const
 Implement Candidate method for particle species. More...
 
bool isStandardPhoton () const
 
float maxEnergyXtal () const
 
float neutralHadronIso () const
 
int nTrkHollowConeDR03 () const
 
int nTrkHollowConeDR04 () const
 
int nTrkSolidConeDR03 () const
 
int nTrkSolidConeDR04 () const
 
reco::SuperClusterRef pfSuperCluster () const
 Ref to PFlow SuperCluster. More...
 
 Photon ()
 default constructor More...
 
 Photon (const Photon &)
 copy constructor More...
 
 Photon (const LorentzVector &p4, Point caloPos, const PhotonCoreRef &core, const Point &vtx=Point(0, 0, 0))
 constructor from values More...
 
reco::PhotonCoreRef photonCore () const
 returns a reference to the core photon object More...
 
float photonIso () const
 
float r1x5 () const
 
float r2x5 () const
 
float r9 () const
 
void setFiducialVolumeFlags (const FiducialFlags &a)
 set flags for photons in the ECAL fiducial volume More...
 
void setIsolationVariables (const IsolationVariables &isolInDr04, const IsolationVariables &isolInDr03)
 set relevant isolation variables More...
 
void setPflowIsolationVariables (const PflowIsolationVariables &pfisol)
 set isolation variables calculated with Pflow More...
 
void setShowerShapeVariables (const ShowerShape &a)
 
void setVertex (const Point &vertex)
 set primary event vertex used to define photon direction More...
 
float sigmaEtaEta () const
 
float sigmaIetaIeta () const
 
reco::SuperClusterRef superCluster () const
 Ref to SuperCluster. More...
 
float trkSumPtHollowConeDR03 () const
 
float trkSumPtHollowConeDR04 () const
 
float trkSumPtSolidConeDR03 () const
 
float trkSumPtSolidConeDR04 () const
 
virtual ~Photon ()
 destructor More...
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const
 best track pointer More...
 
TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
 RecoCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
 RecoCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
virtual reco::TrackRef standAloneMuon () const
 reference to a stand-alone muon Track More...
 
virtual reco::TrackRef track () const
 reference to a Track More...
 
virtual reco::TrackRef track (size_t) const
 reference to one of multiple Tracks More...
 
virtual ~RecoCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const
 
virtual int charge () const
 electric charge More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual double eta () const
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual double mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual double massSqr () const
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 PDG identifier. More...
 
virtual double phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual double pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setCharge (Charge q)
 set electric charge More...
 
virtual void setLongLived ()
 set long lived flag More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual void setMassConstraint ()
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)
 
virtual void setPz (double pz)
 
virtual void setStatus (int status)
 set status word More...
 
virtual void setThreeCharge (Charge qx3)
 set electric charge More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const
 status word More...
 
virtual double theta () const
 momentum polar angle More...
 
virtual int threeCharge () const
 electric charge More...
 
virtual const Pointvertex () const
 vertex position More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

virtual bool overlap (const Candidate &) const
 check overlap with another candidate More...
 

Private Attributes

math::XYZPointF caloPosition_
 position of seed BasicCluster for shower depth of unconverted photon More...
 
FiducialFlags fiducialFlagBlock_
 
IsolationVariables isolationR03_
 
IsolationVariables isolationR04_
 
PflowIsolationVariables pfIsolation_
 
reco::PhotonCoreRef photonCore_
 reference to the PhotonCore More...
 
bool pixelSeed_
 
ShowerShape showerShapeBlock_
 

Additional Inherited Members

- Public Types inherited from reco::RecoCandidate
enum  TrackType { noTrackType, recoTrackType, gsfTrackType }
 track type More...
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 
- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 
- Protected Attributes inherited from reco::LeafCandidate
edm::BoolCache cacheCartesianFixed_
 
edm::BoolCache cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Detailed Description

Author
N. Marinelli Univ. of Notre Dame Photon object built out of PhotonCore stores isolation, shower shape and additional info needed for identification
Version
Id:
Photon.h,v 1.37 2011/02/20 23:11:10 nancy Exp

Definition at line 23 of file Photon.h.

Constructor & Destructor Documentation

reco::Photon::Photon ( )
inline

default constructor

Definition at line 31 of file Photon.h.

References pixelSeed_.

Referenced by clone().

31 : RecoCandidate() { pixelSeed_=false; }
bool pixelSeed_
Definition: Photon.h:293
RecoCandidate()
default constructor
Definition: RecoCandidate.h:24
Photon::Photon ( const Photon rhs)

copy constructor

Definition at line 18 of file Photon.cc.

18  :
19  RecoCandidate(rhs),
21  photonCore_ ( rhs.photonCore_),
22  pixelSeed_ ( rhs.pixelSeed_ ),
28  {}
PflowIsolationVariables pfIsolation_
Definition: Photon.h:299
IsolationVariables isolationR03_
Definition: Photon.h:297
math::XYZPointF caloPosition_
position of seed BasicCluster for shower depth of unconverted photon
Definition: Photon.h:289
IsolationVariables isolationR04_
Definition: Photon.h:296
FiducialFlags fiducialFlagBlock_
Definition: Photon.h:295
bool pixelSeed_
Definition: Photon.h:293
RecoCandidate()
default constructor
Definition: RecoCandidate.h:24
ShowerShape showerShapeBlock_
Definition: Photon.h:298
reco::PhotonCoreRef photonCore_
reference to the PhotonCore
Definition: Photon.h:291
Photon::Photon ( const LorentzVector p4,
Point  caloPos,
const PhotonCoreRef core,
const Point vtx = Point( 0, 0, 0 ) 
)

constructor from values

Definition at line 7 of file Photon.cc.

10  :
11  RecoCandidate( 0, p4, vtx, 22 ),
12  caloPosition_( caloPos ),
13  photonCore_(core),
14  pixelSeed_(false)
15  {}
math::XYZPointF caloPosition_
position of seed BasicCluster for shower depth of unconverted photon
Definition: Photon.h:289
bool pixelSeed_
Definition: Photon.h:293
RecoCandidate()
default constructor
Definition: RecoCandidate.h:24
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
reco::PhotonCoreRef photonCore_
reference to the PhotonCore
Definition: Photon.h:291
Photon::~Photon ( )
virtual

destructor

Reimplemented in pat::Photon.

Definition at line 33 of file Photon.cc.

33 { }

Member Function Documentation

math::XYZPointF reco::Photon::caloPosition ( ) const
inline

position in ECAL: this is th SC position if r9<0.93. If r8>0.93 is position of seed BasicCluster taking shower depth for unconverted photon

Definition at line 72 of file Photon.h.

References caloPosition_.

Referenced by FWPhotonDetailView::addSceneInfo(), FWPhotonDetailView::build(), and setVertex().

72 {return caloPosition_;}
math::XYZPointF caloPosition_
position of seed BasicCluster for shower depth of unconverted photon
Definition: Photon.h:289
float reco::Photon::chargedHadronIso ( ) const
inline

Particle Flow Isolation variables.

Definition at line 280 of file Photon.h.

References reco::Photon::PflowIsolationVariables::chargedHadronIso, and pfIsolation_.

PflowIsolationVariables pfIsolation_
Definition: Photon.h:299
Photon * Photon::clone ( void  ) const
virtual

returns a clone of the candidate

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Photon.

Definition at line 35 of file Photon.cc.

References Photon().

35  {
36  return new Photon( * this );
37 }
Photon()
default constructor
Definition: Photon.h:31
reco::ConversionRefVector reco::Photon::conversions ( ) const
inline

vector of references to Conversion's

Definition at line 61 of file Photon.h.

References photonCore().

Referenced by PhotonValidator::analyze(), and hasConversionTracks().

61 {return this->photonCore()->conversions() ;}
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
float reco::Photon::e1x5 ( ) const
inline

Shower shape variables.

Definition at line 162 of file Photon.h.

References reco::Photon::ShowerShape::e1x5, and showerShapeBlock_.

Referenced by egHLT::OffHelper::fillClusShapeData().

162 {return showerShapeBlock_.e1x5;}
ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::e2x5 ( ) const
inline

Definition at line 163 of file Photon.h.

References reco::Photon::ShowerShape::e2x5, and showerShapeBlock_.

Referenced by egHLT::OffHelper::fillClusShapeData().

163 {return showerShapeBlock_.e2x5;}
ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::e3x3 ( ) const
inline

Definition at line 164 of file Photon.h.

References reco::Photon::ShowerShape::e3x3, and showerShapeBlock_.

164 {return showerShapeBlock_.e3x3;}
ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::e5x5 ( ) const
inline

Definition at line 165 of file Photon.h.

References reco::Photon::ShowerShape::e5x5, and showerShapeBlock_.

Referenced by egHLT::OffHelper::fillClusShapeData().

165 {return showerShapeBlock_.e5x5;}
ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::ecalRecHitSumEtConeDR03 ( ) const
inline

Isolation variables in cone dR=0.3.

Definition at line 261 of file Photon.h.

References reco::Photon::IsolationVariables::ecalRecHitSumEt, and isolationR03_.

Referenced by egHLT::OffHelper::fillIsolData().

IsolationVariables isolationR03_
Definition: Photon.h:297
float reco::Photon::ecalRecHitSumEtConeDR04 ( ) const
inline
reco::ElectronSeedRefVector reco::Photon::electronPixelSeeds ( ) const
inline

reference to electron Pixel seed

Definition at line 65 of file Photon.h.

References photonCore().

Referenced by hasPixelSeed().

65 {return this->photonCore()->electronPixelSeeds();}
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
float reco::Photon::hadronicDepth1OverEm ( ) const
inline

the hadronic release in depth1 over electromagnetic fraction

Definition at line 157 of file Photon.h.

References reco::Photon::ShowerShape::hcalDepth1OverEcal, and showerShapeBlock_.

ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::hadronicDepth2OverEm ( ) const
inline

the hadronic release in depth2 over electromagnetic fraction

Definition at line 159 of file Photon.h.

References reco::Photon::ShowerShape::hcalDepth2OverEcal, and showerShapeBlock_.

ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::hadronicOverEm ( ) const
inline
bool reco::Photon::hasConversionTracks ( ) const
inline

Bool flagging photons with a vector of refereces to conversions with size >0.

Definition at line 63 of file Photon.h.

References conversions(), photonCore(), and reco::Candidate::size.

Referenced by SimplePi0DiscAnalyzer::analyze().

63 { if (this->photonCore()->conversions().size() > 0) return true; else return false;}
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
reco::ConversionRefVector conversions() const
vector of references to Conversion&#39;s
Definition: Photon.h:61
bool reco::Photon::hasPixelSeed ( ) const
inline

Bool flagging photons having a non-zero size vector of Ref to electornPixel seeds.

Definition at line 67 of file Photon.h.

References electronPixelSeeds(), photonCore(), and reco::Candidate::size.

67 { if ((this->photonCore()->electronPixelSeeds()).size() > 0 ) return true; else return false; }
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
reco::ElectronSeedRefVector electronPixelSeeds() const
reference to electron Pixel seed
Definition: Photon.h:65
float reco::Photon::hcalDepth1TowerSumEtConeDR03 ( ) const
inline

Hcal-Depth1 isolation sum.

Definition at line 265 of file Photon.h.

References reco::Photon::IsolationVariables::hcalDepth1TowerSumEt, and isolationR03_.

IsolationVariables isolationR03_
Definition: Photon.h:297
float reco::Photon::hcalDepth1TowerSumEtConeDR04 ( ) const
inline

Hcal-Depth1 isolation sum.

Definition at line 248 of file Photon.h.

References reco::Photon::IsolationVariables::hcalDepth1TowerSumEt, and isolationR04_.

IsolationVariables isolationR04_
Definition: Photon.h:296
float reco::Photon::hcalDepth2TowerSumEtConeDR03 ( ) const
inline

Hcal-Depth2 isolation sum.

Definition at line 267 of file Photon.h.

References reco::Photon::IsolationVariables::hcalDepth2TowerSumEt, and isolationR03_.

IsolationVariables isolationR03_
Definition: Photon.h:297
float reco::Photon::hcalDepth2TowerSumEtConeDR04 ( ) const
inline

Hcal-Depth2 isolation sum.

Definition at line 250 of file Photon.h.

References reco::Photon::IsolationVariables::hcalDepth2TowerSumEt, and isolationR04_.

IsolationVariables isolationR04_
Definition: Photon.h:296
float reco::Photon::hcalTowerSumEtConeDR03 ( ) const
inline

Hcal isolation sum.

Definition at line 263 of file Photon.h.

References reco::Photon::IsolationVariables::hcalTowerSumEt, and isolationR03_.

Referenced by egHLT::OffHelper::fillIsolData().

IsolationVariables isolationR03_
Definition: Photon.h:297
float reco::Photon::hcalTowerSumEtConeDR04 ( ) const
inline
bool reco::Photon::isEB ( ) const
inline

Ritrievs fiducial flags true if photon is in ECAL barrel

Definition at line 111 of file Photon.h.

References fiducialFlagBlock_, and reco::Photon::FiducialFlags::isEB.

Referenced by PatPhotonSimpleAnalyzer::analyze().

111 {return fiducialFlagBlock_.isEB;}
FiducialFlags fiducialFlagBlock_
Definition: Photon.h:295
bool reco::Photon::isEBEEGap ( ) const
inline

true if photon is in boundary between EB and EE

Definition at line 123 of file Photon.h.

References fiducialFlagBlock_, and reco::Photon::FiducialFlags::isEBEEGap.

Referenced by PatPhotonSimpleAnalyzer::analyze(), CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), and egHLT::OffPho::isGap().

FiducialFlags fiducialFlagBlock_
Definition: Photon.h:295
bool reco::Photon::isEBEtaGap ( ) const
inline
bool reco::Photon::isEBGap ( ) const
inline

true if photon is in EB, and inside the boundaries in super crystals/modules

Definition at line 115 of file Photon.h.

References isEBEtaGap(), and isEBPhiGap().

Referenced by PatPhotonSimpleAnalyzer::analyze(), and egHLT::OffPho::isGap().

115 { return (isEBEtaGap() || isEBPhiGap()); }
bool isEBPhiGap() const
Definition: Photon.h:117
bool isEBEtaGap() const
Definition: Photon.h:116
bool reco::Photon::isEBPhiGap ( ) const
inline
bool reco::Photon::isEE ( ) const
inline

Definition at line 113 of file Photon.h.

References fiducialFlagBlock_, and reco::Photon::FiducialFlags::isEE.

Referenced by PatPhotonSimpleAnalyzer::analyze().

113 {return fiducialFlagBlock_.isEE;}
FiducialFlags fiducialFlagBlock_
Definition: Photon.h:295
bool reco::Photon::isEEDeeGap ( ) const
inline
bool reco::Photon::isEEGap ( ) const
inline

true if photon is in EE, and inside the boundaries in supercrystal/D

Definition at line 119 of file Photon.h.

References isEEDeeGap(), and isEERingGap().

Referenced by PatPhotonSimpleAnalyzer::analyze(), and egHLT::OffPho::isGap().

119 { return (isEERingGap() || isEEDeeGap()); }
bool isEEDeeGap() const
Definition: Photon.h:121
bool isEERingGap() const
Definition: Photon.h:120
bool reco::Photon::isEERingGap ( ) const
inline
bool reco::Photon::isPFlowPhoton ( ) const
inline

Retrieve photonCore attributes.

Definition at line 54 of file Photon.h.

References photonCore().

54 {return this->photonCore()->isPFlowPhoton();}
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
bool reco::Photon::isPhoton ( ) const
inlinevirtual

Implement Candidate method for particle species.

Reimplemented from reco::LeafCandidate.

Definition at line 76 of file Photon.h.

References funct::true.

76 { return true ; }
bool reco::Photon::isStandardPhoton ( ) const
inline

Definition at line 55 of file Photon.h.

References photonCore().

55 {return this->photonCore()->isStandardPhoton();}
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
float reco::Photon::maxEnergyXtal ( ) const
inline

Definition at line 166 of file Photon.h.

References reco::Photon::ShowerShape::maxEnergyXtal, and showerShapeBlock_.

ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::neutralHadronIso ( ) const
inline

Definition at line 281 of file Photon.h.

References reco::Photon::PflowIsolationVariables::neutralHadronIso, and pfIsolation_.

PflowIsolationVariables pfIsolation_
Definition: Photon.h:299
int reco::Photon::nTrkHollowConeDR03 ( ) const
inline

Definition at line 275 of file Photon.h.

References isolationR03_, and reco::Photon::IsolationVariables::nTrkHollowCone.

Referenced by egHLT::OffHelper::fillIsolData().

IsolationVariables isolationR03_
Definition: Photon.h:297
int reco::Photon::nTrkHollowConeDR04 ( ) const
inline
int reco::Photon::nTrkSolidConeDR03 ( ) const
inline

Definition at line 273 of file Photon.h.

References isolationR03_, and reco::Photon::IsolationVariables::nTrkSolidCone.

IsolationVariables isolationR03_
Definition: Photon.h:297
int reco::Photon::nTrkSolidConeDR04 ( ) const
inline
bool Photon::overlap ( const Candidate c) const
privatevirtual

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 40 of file Photon.cc.

References trackerHits::c, reco::RecoCandidate::checkOverlap(), connectstrParser::o, reco::RecoCandidate::superCluster(), and superCluster().

40  {
41  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
42  return ( o != 0 &&
44  );
45  return false;
46 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.h:57
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
reco::SuperClusterRef reco::Photon::pfSuperCluster ( ) const
inline

Ref to PFlow SuperCluster.

Definition at line 59 of file Photon.h.

References photonCore().

59 {return this->photonCore()->pfSuperCluster();}
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:49
reco::PhotonCoreRef reco::Photon::photonCore ( ) const
inline

returns a reference to the core photon object

Definition at line 49 of file Photon.h.

References photonCore_.

Referenced by conversions(), electronPixelSeeds(), hasConversionTracks(), hasPixelSeed(), isPFlowPhoton(), isStandardPhoton(), pfSuperCluster(), and superCluster().

49 { return photonCore_;}
reco::PhotonCoreRef photonCore_
reference to the PhotonCore
Definition: Photon.h:291
float reco::Photon::photonIso ( ) const
inline

Definition at line 282 of file Photon.h.

References pfIsolation_, and reco::Photon::PflowIsolationVariables::photonIso.

282 {return pfIsolation_.photonIso;}
PflowIsolationVariables pfIsolation_
Definition: Photon.h:299
float reco::Photon::r1x5 ( ) const
inline
float reco::Photon::r2x5 ( ) const
inline
float reco::Photon::r9 ( ) const
inline
void reco::Photon::setFiducialVolumeFlags ( const FiducialFlags a)
inline

set flags for photons in the ECAL fiducial volume

Definition at line 108 of file Photon.h.

References a, and fiducialFlagBlock_.

108 { fiducialFlagBlock_= a ;}
FiducialFlags fiducialFlagBlock_
Definition: Photon.h:295
double a
Definition: hdecay.h:121
void reco::Photon::setIsolationVariables ( const IsolationVariables isolInDr04,
const IsolationVariables isolInDr03 
)
inline

set relevant isolation variables

Definition at line 238 of file Photon.h.

References isolationR03_, and isolationR04_.

238 { isolationR04_ = isolInDr04 ; isolationR03_ = isolInDr03 ;}
IsolationVariables isolationR03_
Definition: Photon.h:297
IsolationVariables isolationR04_
Definition: Photon.h:296
void reco::Photon::setPflowIsolationVariables ( const PflowIsolationVariables pfisol)
inline

set isolation variables calculated with Pflow

Definition at line 240 of file Photon.h.

References pfIsolation_.

240 { pfIsolation_ = pfisol;}
PflowIsolationVariables pfIsolation_
Definition: Photon.h:299
void reco::Photon::setShowerShapeVariables ( const ShowerShape a)
inline

Definition at line 153 of file Photon.h.

References a, and showerShapeBlock_.

153 { showerShapeBlock_ = a ;}
double a
Definition: hdecay.h:121
ShowerShape showerShapeBlock_
Definition: Photon.h:298
void Photon::setVertex ( const Point vertex)
virtual

set primary event vertex used to define photon direction

Reimplemented from reco::LeafCandidate.

Definition at line 48 of file Photon.cc.

References caloPosition(), reco::LeafCandidate::energy(), reco::LeafCandidate::momentum(), reco::LeafCandidate::setP4(), reco::LeafCandidate::vertex(), and reco::LeafCandidate::vertex_.

48  {
49  math::XYZVectorF direction = caloPosition() - vertex;
50  double energy = this->energy();
51  math::XYZVectorF momentum = direction.unit() * energy;
52  math::XYZTLorentzVector lv(momentum.x(), momentum.y(), momentum.z(), energy );
53  setP4(lv);
54  vertex_ = vertex;
55 }
virtual const Point & vertex() const
vertex position
virtual Vector momentum() const
spatial momentum vector
virtual void setP4(const LorentzVector &p4)
set 4-momentum
Point vertex_
vertex position
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:30
virtual double energy() const
energy
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
math::XYZPointF caloPosition() const
position in ECAL: this is th SC position if r9&lt;0.93. If r8&gt;0.93 is position of seed BasicCluster taki...
Definition: Photon.h:72
float reco::Photon::sigmaEtaEta ( ) const
inline

Definition at line 167 of file Photon.h.

References showerShapeBlock_, and reco::Photon::ShowerShape::sigmaEtaEta.

Referenced by egHLT::OffHelper::fillClusShapeData().

ShowerShape showerShapeBlock_
Definition: Photon.h:298
float reco::Photon::sigmaIetaIeta ( ) const
inline
reco::SuperClusterRef reco::Photon::superCluster ( ) const
inlinevirtual
float reco::Photon::trkSumPtHollowConeDR03 ( ) const
inline

Definition at line 271 of file Photon.h.

References isolationR03_, and reco::Photon::IsolationVariables::trkSumPtHollowCone.

Referenced by egHLT::OffHelper::fillIsolData().

IsolationVariables isolationR03_
Definition: Photon.h:297
float reco::Photon::trkSumPtHollowConeDR04 ( ) const
inline
float reco::Photon::trkSumPtSolidConeDR03 ( ) const
inline

Definition at line 269 of file Photon.h.

References isolationR03_, and reco::Photon::IsolationVariables::trkSumPtSolidCone.

IsolationVariables isolationR03_
Definition: Photon.h:297
float reco::Photon::trkSumPtSolidConeDR04 ( ) const
inline

Member Data Documentation

math::XYZPointF reco::Photon::caloPosition_
private

position of seed BasicCluster for shower depth of unconverted photon

Definition at line 289 of file Photon.h.

Referenced by caloPosition().

FiducialFlags reco::Photon::fiducialFlagBlock_
private
IsolationVariables reco::Photon::isolationR03_
private
IsolationVariables reco::Photon::isolationR04_
private
PflowIsolationVariables reco::Photon::pfIsolation_
private
reco::PhotonCoreRef reco::Photon::photonCore_
private

reference to the PhotonCore

Definition at line 291 of file Photon.h.

Referenced by photonCore().

bool reco::Photon::pixelSeed_
private

Definition at line 293 of file Photon.h.

Referenced by Photon().

ShowerShape reco::Photon::showerShapeBlock_
private