CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Attributes | 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  EnergyCorrections
 
struct  FiducialFlags
 
struct  IsolationVariables
 
struct  MIPVariables
 
struct  PflowIDVariables
 
struct  PflowIsolationVariables
 
struct  SaturationInfo
 
struct  ShowerShape
 

Public Types

enum  ConversionProvenance { egamma = 0, pflow = 1, both = 2 }
 
enum  P4type {
  undefined = -1, ecal_standard = 0, ecal_photons = 1, regression1 = 2,
  regression2 = 3
}
 
- 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...
 

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
 Accessors for Particle Flow Isolation variables. More...
 
float chargedHadronPFPVIso () const
 
float chargedHadronWorstVtxGeomVetoIso () const
 
float chargedHadronWorstVtxIso () const
 
Photonclone () const override
 returns a clone of the candidate More...
 
reco::ConversionRefVector conversions () const
 vector of references to Conversion's More...
 
reco::ConversionRefVector conversionsOneLeg () const
 vector of references to one leg Conversion's More...
 
int conversionTrackProvenance (const edm::RefToBase< reco::Track > &convTrack) const
 
float e1x5 () const
 Shower shape variables. More...
 
float e2x5 () const
 
float e3x3 () const
 
float e5x5 () const
 
float ecalPFClusterIso () 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...
 
const EnergyCorrectionsenergyCorrections () const
 
float etOutsideMustache () const
 
float full5x5_e1x5 () const
 full5x5 Shower shape variables More...
 
float full5x5_e2x5 () const
 
float full5x5_e3x3 () const
 
float full5x5_e5x5 () const
 
float full5x5_hadronicOverEm (int depth=0) const
 
float full5x5_hadTowOverEm (int depth=0) const
 
float full5x5_hcalOverEcal (int depth=0) const
 the total hadronic over electromagnetic fraction More...
 
float full5x5_hcalOverEcalBc (int depth=0) const
 the ratio of total energy of hcal rechits behind the SC and the SC energy More...
 
float full5x5_maxEnergyXtal () const
 
float full5x5_r1x5 () const
 
float full5x5_r2x5 () const
 
float full5x5_r9 () const
 
void full5x5_setShowerShapeVariables (const ShowerShape &a)
 
const ShowerShapefull5x5_showerShapeVariables () const
 
float full5x5_sigmaEtaEta () const
 
float full5x5_sigmaIetaIeta () const
 
P4type getCandidateP4type () const
 
float getCorrectedEnergy (P4type type) const
 
float getCorrectedEnergyError (P4type type) const
 
const PflowIsolationVariablesgetPflowIsolationVariables () const
 Get Particle Flow Isolation variables block. More...
 
float hadronicOverEm (int depth=0) const
 
bool hadronicOverEmValid () const
 returns false if H/E is not reliably estimated (e.g. because hcal was off or masked) More...
 
float hadTowOverEm (int depth=0) const
 
bool hadTowOverEmValid () const
 
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 hcalOverEcal (const ShowerShape &ss, int depth) const
 the total hadronic over electromagnetic fraction More...
 
float hcalOverEcal (int depth=0) const
 
float hcalOverEcalBc (const ShowerShape &ss, int depth) const
 the ratio of total energy of hcal rechits behind the SC and the SC energy More...
 
float hcalOverEcalBc (int depth=0) const
 
float hcalPFClusterIso () const
 
void hcalToRun2EffDepth ()
 
const std::vector
< CaloTowerDetId > & 
hcalTowersBehindClusters () const
 
float hcalTowerSumEt (const IsolationVariables &iv, int depth) const
 Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcal() More...
 
float hcalTowerSumEtBc (const IsolationVariables &iv, int depth) const
 Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcalBc() More...
 
float hcalTowerSumEtBcConeDR03 (int depth=0) const
 Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcalBc() More...
 
float hcalTowerSumEtBcConeDR04 (int depth=0) const
 
float hcalTowerSumEtConeDR03 (int depth=0) const
 Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcal() More...
 
float hcalTowerSumEtConeDR04 (int depth=0) const
 
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 override
 Implement Candidate method for particle species. More...
 
float isSeedSaturated () const
 
bool isStandardPhoton () const
 
float maxEnergyXtal () const
 
float mipChi2 () const
 MIP variables. More...
 
float mipIntercept () const
 
bool mipIsHalo () const
 
int mipNhitCone () const
 
float mipSlope () const
 
float mipTotEnergy () const
 
int nClusterOutsideMustache () const
 
float neutralHadronIso () const
 
float nSaturatedXtals () const
 
int nTrkHollowConeDR03 () const
 
int nTrkHollowConeDR04 () const
 
int nTrkSolidConeDR03 () const
 
int nTrkSolidConeDR04 () const
 
const LorentzVectorp4 (P4type type) const
 
reco::SuperClusterRef parentSuperCluster () const
 Ref to PFlow SuperCluster. More...
 
float pfDNN () const
 
float pfMVA () const
 
 Photon ()
 default constructor More...
 
 Photon (const Photon &)
 copy constructor More...
 
 Photon (const LorentzVector &p4, const 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
 
const SaturationInfosaturationInfo () const
 
void setCandidateP4type (const P4type type)
 
void setCorrectedEnergy (P4type type, float E, float dE, bool toCand=true)
 
void setEnergyCorrections (const EnergyCorrections &e)
 
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 setMIPVariables (const MIPVariables &mipVar)
 set mip Variables More...
 
void setP4 (P4type type, const LorentzVector &p4, float p4Error, bool setToRecoCandidate)
 
void setPflowIDVariables (const PflowIDVariables &pfid)
 
void setPflowIsolationVariables (const PflowIsolationVariables &pfisol)
 Set Particle Flow Isolation variables. More...
 
void setPhotonCore (const reco::PhotonCoreRef &photonCore)
 
void setSaturationInfo (const SaturationInfo &s)
 
void setShowerShapeVariables (const ShowerShape &a)
 
void setVertex (const Point &vertex) override
 set primary event vertex used to define photon direction More...
 
const ShowerShapeshowerShapeVariables () const
 
float sigmaEtaEta () const
 
float sigmaIetaIeta () const
 
reco::SuperClusterRef superCluster () const override
 Ref to SuperCluster. More...
 
float trkSumPtHollowConeDR03 () const
 
float trkSumPtHollowConeDR04 () const
 
float trkSumPtSolidConeDR03 () const
 
float trkSumPtSolidConeDR04 () const
 
 ~Photon () override
 destructor More...
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const override
 best track pointer More...
 
virtual TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
virtual TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
RecoCandidateclone () const override
 returns a clone of the Candidate object More...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
float dxyError () const override
 uncertainty on dxy More...
 
float dzError () const override
 uncertainty on dz 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...
 
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...
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 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...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isElectron () const override
 
bool isGlobalMuon () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 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...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
size_t numberOfSourceCandidatePtrs () const override
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
CandidatePtr sourceCandidatePtr (size_type i) const override
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
 Candidate ()
 default constructor More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator 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...
 
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...
 

Static Public Attributes

static constexpr float mvaPlaceholder = -999999999.
 

Private Member Functions

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

Private Attributes

math::XYZPointF caloPosition_
 position of seed BasicCluster for shower depth of unconverted photon More...
 
EnergyCorrections eCorrections_
 
FiducialFlags fiducialFlagBlock_
 
ShowerShape full5x5_showerShapeBlock_
 
IsolationVariables isolationR03_
 
IsolationVariables isolationR04_
 
MIPVariables mipVariableBlock_
 
PflowIDVariables pfID_
 
PflowIsolationVariables pfIsolation_
 
reco::PhotonCoreRef photonCore_
 reference to the PhotonCore More...
 
bool pixelSeed_
 
SaturationInfo saturationInfo_
 
ShowerShape showerShapeBlock_
 

Additional Inherited Members

- Public Attributes inherited from reco::RecoCandidate
template<typename P4 >
 __pad0__: LeafCandidate(q
 constructor from values More...
 
template<typename P4 >
 p4
 
template<typename P4 >
 pdgId
 
template<typename P4 >
 status
 
template<typename P4 >
 vtx
 
- 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...
 

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

Definition at line 22 of file Photon.h.

Member Enumeration Documentation

Enumerator
egamma 
pflow 
both 

Definition at line 62 of file Photon.h.

Enumerator
undefined 
ecal_standard 
ecal_photons 
regression1 
regression2 

Definition at line 314 of file Photon.h.

Constructor & Destructor Documentation

reco::Photon::Photon ( )
inline

default constructor

Definition at line 32 of file Photon.h.

References pixelSeed_.

32 : RecoCandidate() { pixelSeed_ = false; }
bool pixelSeed_
Definition: Photon.h:590
RecoCandidate()
default constructor
Definition: RecoCandidate.h:23
reco::Photon::Photon ( const Photon )

copy constructor

reco::Photon::Photon ( const LorentzVector p4,
const Point caloPos,
const PhotonCoreRef core,
const Point vtx = Point(0, 0, 0) 
)

constructor from values

reco::Photon::~Photon ( )
override

destructor

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 85 of file Photon.h.

References caloPosition_.

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

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

Definition at line 545 of file Photon.h.

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

PflowIsolationVariables pfIsolation_
Definition: Photon.h:600
float reco::Photon::chargedHadronWorstVtxGeomVetoIso ( ) const
inline
float reco::Photon::chargedHadronWorstVtxIso ( ) const
inline

Definition at line 543 of file Photon.h.

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

PflowIsolationVariables pfIsolation_
Definition: Photon.h:600
Photon* reco::Photon::clone ( ) const
overridevirtual

returns a clone of the candidate

Reimplemented from reco::LeafCandidate.

Reimplemented in pat::Photon.

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(), PhotonAnalyzer::analyze(), and hasConversionTracks().

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

vector of references to one leg Conversion's

Definition at line 65 of file Photon.h.

References photonCore().

Referenced by hasConversionTracks().

65 { return this->photonCore()->conversionsOneLeg(); }
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:47
int reco::Photon::conversionTrackProvenance ( const edm::RefToBase< reco::Track > &  convTrack) const
float reco::Photon::e1x5 ( ) const
inline

Shower shape variables.

Definition at line 264 of file Photon.h.

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

Referenced by PhotonAnalyzer::analyze(), and egHLT::OffHelper::fillClusShapeData().

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

Definition at line 265 of file Photon.h.

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

Referenced by PhotonAnalyzer::analyze(), and egHLT::OffHelper::fillClusShapeData().

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

Definition at line 266 of file Photon.h.

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

Referenced by PhotonAnalyzer::analyze().

266 { return showerShapeBlock_.e3x3; }
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::e5x5 ( ) const
inline
float reco::Photon::ecalPFClusterIso ( ) const
inline

Definition at line 550 of file Photon.h.

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

Referenced by PhotonDNNEstimator::getInputsVars().

550 { return pfIsolation_.sumEcalClusterEt; };
PflowIsolationVariables pfIsolation_
Definition: Photon.h:600
float reco::Photon::ecalRecHitSumEtConeDR03 ( ) const
inline
float reco::Photon::ecalRecHitSumEtConeDR04 ( ) const
inline
reco::ElectronSeedRefVector reco::Photon::electronPixelSeeds ( ) const
inline

reference to electron Pixel seed

Definition at line 74 of file Photon.h.

References photonCore().

Referenced by hasPixelSeed().

74 { return this->photonCore()->electronPixelSeeds(); }
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:47
const EnergyCorrections& reco::Photon::energyCorrections ( ) const
inline

Definition at line 359 of file Photon.h.

References eCorrections_.

359 { return eCorrections_; }
EnergyCorrections eCorrections_
Definition: Photon.h:598
float reco::Photon::etOutsideMustache ( ) const
inline

Definition at line 573 of file Photon.h.

References reco::Photon::PflowIDVariables::etOutsideMustache, and pfID_.

573 { return pfID_.etOutsideMustache; }
PflowIDVariables pfID_
Definition: Photon.h:601
float reco::Photon::full5x5_e1x5 ( ) const
inline

full5x5 Shower shape variables

Definition at line 276 of file Photon.h.

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

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float reco::Photon::full5x5_e2x5 ( ) const
inline

Definition at line 277 of file Photon.h.

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

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float reco::Photon::full5x5_e3x3 ( ) const
inline

Definition at line 278 of file Photon.h.

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

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float reco::Photon::full5x5_e5x5 ( ) const
inline

Definition at line 279 of file Photon.h.

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

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float reco::Photon::full5x5_hadronicOverEm ( int  depth = 0) const
inline

Definition at line 289 of file Photon.h.

References HLT_FULL_cff::depth, and full5x5_hcalOverEcal().

289 { return full5x5_hcalOverEcal(depth); }
float full5x5_hcalOverEcal(int depth=0) const
the total hadronic over electromagnetic fraction
Definition: Photon.h:288
float reco::Photon::full5x5_hadTowOverEm ( int  depth = 0) const
inline

Definition at line 293 of file Photon.h.

References HLT_FULL_cff::depth, and full5x5_hcalOverEcalBc().

293 { return full5x5_hcalOverEcalBc(depth); }
float full5x5_hcalOverEcalBc(int depth=0) const
the ratio of total energy of hcal rechits behind the SC and the SC energy
Definition: Photon.h:292
float reco::Photon::full5x5_hcalOverEcal ( int  depth = 0) const
inline

the total hadronic over electromagnetic fraction

Definition at line 288 of file Photon.h.

References HLT_FULL_cff::depth, full5x5_showerShapeBlock_, and hcalOverEcal().

Referenced by full5x5_hadronicOverEm().

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float hcalOverEcal(const ShowerShape &ss, int depth) const
the total hadronic over electromagnetic fraction
Definition: Photon.h:216
float reco::Photon::full5x5_hcalOverEcalBc ( int  depth = 0) const
inline

the ratio of total energy of hcal rechits behind the SC and the SC energy

Definition at line 292 of file Photon.h.

References HLT_FULL_cff::depth, full5x5_showerShapeBlock_, and hcalOverEcalBc().

Referenced by full5x5_hadTowOverEm().

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float hcalOverEcalBc(const ShowerShape &ss, int depth) const
the ratio of total energy of hcal rechits behind the SC and the SC energy
Definition: Photon.h:236
float reco::Photon::full5x5_maxEnergyXtal ( ) const
inline

Definition at line 280 of file Photon.h.

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

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float reco::Photon::full5x5_r1x5 ( ) const
inline
float reco::Photon::full5x5_r2x5 ( ) const
inline
float reco::Photon::full5x5_r9 ( ) const
inline

Definition at line 285 of file Photon.h.

References reco::Photon::ShowerShape::e3x3, full5x5_showerShapeBlock_, and superCluster().

Referenced by PhotonEnergyCalibrator::calibrate(), PhotonDNNEstimator::getInputsVars(), EGRegressionModifierV3::getRegData(), and EGRegressionModifierV2::modifyObject().

285 { return full5x5_showerShapeBlock_.e3x3 / this->superCluster()->rawEnergy(); }
ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void reco::Photon::full5x5_setShowerShapeVariables ( const ShowerShape a)
inline

Definition at line 213 of file Photon.h.

References a, and full5x5_showerShapeBlock_.

Referenced by EG9X105XObjectUpdateModifier::modifyObject(), and EGFull5x5ShowerShapeModifierFromValueMaps::modifyObject().

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
double a
Definition: hdecay.h:119
const ShowerShape& reco::Photon::full5x5_showerShapeVariables ( ) const
inline
float reco::Photon::full5x5_sigmaEtaEta ( ) const
inline

Definition at line 281 of file Photon.h.

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

ShowerShape full5x5_showerShapeBlock_
Definition: Photon.h:596
float reco::Photon::full5x5_sigmaIetaIeta ( ) const
inline
P4type reco::Photon::getCandidateP4type ( ) const
inline

Definition at line 357 of file Photon.h.

References reco::Photon::EnergyCorrections::candidateP4type, and eCorrections_.

Referenced by PhotonAnalyzer::analyze().

357 { return eCorrections_.candidateP4type; }
EnergyCorrections eCorrections_
Definition: Photon.h:598
float reco::Photon::getCorrectedEnergy ( P4type  type) const
float reco::Photon::getCorrectedEnergyError ( P4type  type) const
const PflowIsolationVariables& reco::Photon::getPflowIsolationVariables ( ) const
inline

Get Particle Flow Isolation variables block.

Definition at line 554 of file Photon.h.

References pfIsolation_.

Referenced by EG9X105XObjectUpdateModifier::modifyObject(), and pat::PATPhotonProducer::produce().

554 { return pfIsolation_; }
PflowIsolationVariables pfIsolation_
Definition: Photon.h:600
float reco::Photon::hadronicOverEm ( int  depth = 0) const
inline
bool reco::Photon::hadronicOverEmValid ( ) const
inline

returns false if H/E is not reliably estimated (e.g. because hcal was off or masked)

Definition at line 260 of file Photon.h.

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

260 { return !showerShapeBlock_.invalidHcal; }
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::hadTowOverEm ( int  depth = 0) const
inline

Definition at line 253 of file Photon.h.

References HLT_FULL_cff::depth, and hcalOverEcalBc().

Referenced by EGEnergyCorrector::CorrectedEnergyWithErrorV3(), PhotonDNNEstimator::getInputsVars(), PFEGammaFilters::passPhotonSelection(), and PhotonAnalyzer::photonSelection().

253 { return hcalOverEcalBc(depth); }
float hcalOverEcalBc(const ShowerShape &ss, int depth) const
the ratio of total energy of hcal rechits behind the SC and the SC energy
Definition: Photon.h:236
bool reco::Photon::hadTowOverEmValid ( ) const
inline
bool reco::Photon::hasConversionTracks ( ) const
inline

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

Definition at line 67 of file Photon.h.

References conversions(), conversionsOneLeg(), relativeConstraints::empty, and photonCore().

Referenced by SimplePi0DiscAnalyzer::analyze(), and PhotonAnalyzer::analyze().

67  {
68  if (!this->photonCore()->conversions().empty() || !this->photonCore()->conversionsOneLeg().empty())
69  return true;
70  else
71  return false;
72  }
reco::ConversionRefVector conversionsOneLeg() const
vector of references to one leg Conversion&#39;s
Definition: Photon.h:65
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:47
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 76 of file Photon.h.

References electronPixelSeeds(), relativeConstraints::empty, and photonCore().

Referenced by PhotonDNNEstimator::getInputsVars(), and pat::PATPhotonProducer::produce().

76  {
77  if (!(this->photonCore()->electronPixelSeeds()).empty())
78  return true;
79  else
80  return false;
81  }
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:47
reco::ElectronSeedRefVector electronPixelSeeds() const
reference to electron Pixel seed
Definition: Photon.h:74
float reco::Photon::hcalOverEcal ( const ShowerShape ss,
int  depth 
) const
inline

the total hadronic over electromagnetic fraction

Definition at line 216 of file Photon.h.

References SplitLinear::begin, dataset::end, validate-o2o-wbm::f, reco::Photon::ShowerShape::hcalDepth1OverEcal, reco::Photon::ShowerShape::hcalDepth2OverEcal, reco::Photon::ShowerShape::hcalOverEcal, and reco::Photon::ShowerShape::pre7DepthHcal.

Referenced by full5x5_hcalOverEcal(), and hadronicOverEm().

216  {
217  if (ss.pre7DepthHcal) {
218  if (depth == 0)
219  return ss.hcalDepth1OverEcal + ss.hcalDepth2OverEcal;
220  else if (depth == 1)
221  return ss.hcalDepth1OverEcal;
222  else if (depth == 2)
223  return ss.hcalDepth2OverEcal;
224 
225  return 0.f;
226  } else {
227  const auto& hovere = ss.hcalOverEcal;
228  return (!(depth > 0 and depth < 8)) ? std::accumulate(std::begin(hovere), std::end(hovere), 0.f)
229  : hovere[depth - 1];
230  }
231  }
string end
Definition: dataset.py:937
float reco::Photon::hcalOverEcal ( int  depth = 0) const
inline

Definition at line 232 of file Photon.h.

References HLT_FULL_cff::depth, hcalOverEcal(), and showerShapeBlock_.

Referenced by hcalOverEcal().

float hcalOverEcal(const ShowerShape &ss, int depth) const
the total hadronic over electromagnetic fraction
Definition: Photon.h:216
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::hcalOverEcalBc ( const ShowerShape ss,
int  depth 
) const
inline

the ratio of total energy of hcal rechits behind the SC and the SC energy

Definition at line 236 of file Photon.h.

References SplitLinear::begin, dataset::end, validate-o2o-wbm::f, reco::Photon::ShowerShape::hcalDepth1OverEcalBc, reco::Photon::ShowerShape::hcalDepth2OverEcalBc, reco::Photon::ShowerShape::hcalOverEcalBc, and reco::Photon::ShowerShape::pre7DepthHcal.

Referenced by full5x5_hcalOverEcalBc(), and hadTowOverEm().

236  {
237  if (ss.pre7DepthHcal) {
238  if (depth == 0)
239  return ss.hcalDepth1OverEcalBc + ss.hcalDepth2OverEcalBc;
240  else if (depth == 1)
241  return ss.hcalDepth1OverEcalBc;
242  else if (depth == 2)
243  return ss.hcalDepth2OverEcalBc;
244 
245  return 0.f;
246  } else {
247  const auto& hovere = ss.hcalOverEcalBc;
248  return (!(depth > 0 and depth < 8)) ? std::accumulate(std::begin(hovere), std::end(hovere), 0.f)
249  : hovere[depth - 1];
250  }
251  }
string end
Definition: dataset.py:937
float reco::Photon::hcalOverEcalBc ( int  depth = 0) const
inline

Definition at line 252 of file Photon.h.

References HLT_FULL_cff::depth, hcalOverEcalBc(), and showerShapeBlock_.

Referenced by hcalOverEcalBc().

float hcalOverEcalBc(const ShowerShape &ss, int depth) const
the ratio of total energy of hcal rechits behind the SC and the SC energy
Definition: Photon.h:236
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::hcalPFClusterIso ( ) const
inline

Definition at line 551 of file Photon.h.

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

Referenced by PhotonDNNEstimator::getInputsVars().

551 { return pfIsolation_.sumHcalClusterEt; };
PflowIsolationVariables pfIsolation_
Definition: Photon.h:600
void reco::Photon::hcalToRun2EffDepth ( )
const std::vector<CaloTowerDetId>& reco::Photon::hcalTowersBehindClusters ( ) const
inline

Definition at line 255 of file Photon.h.

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

255  {
257  }
std::vector< CaloTowerDetId > hcalTowersBehindClusters
Definition: Photon.h:153
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::hcalTowerSumEt ( const IsolationVariables iv,
int  depth 
) const
inline

Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcal()

Definition at line 456 of file Photon.h.

References SplitLinear::begin, dataset::end, validate-o2o-wbm::f, reco::Photon::IsolationVariables::hcalDepth1TowerSumEt, reco::Photon::IsolationVariables::hcalDepth2TowerSumEt, reco::Photon::IsolationVariables::hcalRecHitSumEt, reco::Photon::IsolationVariables::hcalTowerSumEt, and reco::Photon::IsolationVariables::pre7DepthHcal.

Referenced by hcalTowerSumEtConeDR03(), and hcalTowerSumEtConeDR04().

456  {
457  if (iv.pre7DepthHcal) {
458  if (depth == 0)
459  return iv.hcalTowerSumEt;
460  else if (depth == 1)
461  return iv.hcalDepth1TowerSumEt;
462  else if (depth == 2)
463  return iv.hcalDepth2TowerSumEt;
464 
465  return 0.f;
466  } else {
467  const auto& hcaliso = iv.hcalRecHitSumEt;
468  return (!(depth > 0 and depth < 8)) ? std::accumulate(std::begin(hcaliso), std::end(hcaliso), 0.f)
469  : hcaliso[depth - 1];
470  }
471  }
int32_t *__restrict__ iv
string end
Definition: dataset.py:937
float reco::Photon::hcalTowerSumEtBc ( const IsolationVariables iv,
int  depth 
) const
inline

Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcalBc()

Definition at line 474 of file Photon.h.

References SplitLinear::begin, dataset::end, validate-o2o-wbm::f, reco::Photon::IsolationVariables::hcalDepth1TowerSumEtBc, reco::Photon::IsolationVariables::hcalDepth2TowerSumEtBc, reco::Photon::IsolationVariables::hcalRecHitSumEtBc, reco::Photon::IsolationVariables::hcalTowerSumEtBc, and reco::Photon::IsolationVariables::pre7DepthHcal.

Referenced by hcalTowerSumEtBcConeDR03(), and hcalTowerSumEtBcConeDR04().

474  {
475  if (iv.pre7DepthHcal) {
476  if (depth == 0)
477  return iv.hcalTowerSumEtBc;
478  else if (depth == 1)
479  return iv.hcalDepth1TowerSumEtBc;
480  else if (depth == 2)
481  return iv.hcalDepth2TowerSumEtBc;
482 
483  return 0.f;
484  } else {
485  const auto& hcaliso = iv.hcalRecHitSumEtBc;
486  return (!(depth > 0 and depth < 8)) ? std::accumulate(std::begin(hcaliso), std::end(hcaliso), 0.f)
487  : hcaliso[depth - 1];
488  }
489  }
int32_t *__restrict__ iv
string end
Definition: dataset.py:937
float reco::Photon::hcalTowerSumEtBcConeDR03 ( int  depth = 0) const
inline

Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcalBc()

Definition at line 505 of file Photon.h.

References HLT_FULL_cff::depth, hcalTowerSumEtBc(), and isolationR03_.

IsolationVariables isolationR03_
Definition: Photon.h:594
float hcalTowerSumEtBc(const IsolationVariables &iv, int depth) const
Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcalBc...
Definition: Photon.h:474
float reco::Photon::hcalTowerSumEtBcConeDR04 ( int  depth = 0) const
inline

Definition at line 490 of file Photon.h.

References HLT_FULL_cff::depth, hcalTowerSumEtBc(), and isolationR04_.

IsolationVariables isolationR04_
Definition: Photon.h:593
float hcalTowerSumEtBc(const IsolationVariables &iv, int depth) const
Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcalBc...
Definition: Photon.h:474
float reco::Photon::hcalTowerSumEtConeDR03 ( int  depth = 0) const
inline

Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcal()

Definition at line 503 of file Photon.h.

References HLT_FULL_cff::depth, hcalTowerSumEt(), and isolationR03_.

Referenced by egHLT::OffHelper::fillIsolData(), PhotonDNNEstimator::getInputsVars(), PFEGammaFilters::passPhotonSelection(), PhotonSelectorAlgo::passPhotonSelection(), and PhotonAnalyzer::photonSelection().

503 { return hcalTowerSumEt(isolationR03_, depth); }
IsolationVariables isolationR03_
Definition: Photon.h:594
float hcalTowerSumEt(const IsolationVariables &iv, int depth) const
Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcal()...
Definition: Photon.h:456
float reco::Photon::hcalTowerSumEtConeDR04 ( int  depth = 0) const
inline

Definition at line 472 of file Photon.h.

References HLT_FULL_cff::depth, hcalTowerSumEt(), and isolationR04_.

Referenced by PatPhotonSimpleAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), PhotonValidator::analyze(), PhotonAnalyzer::analyze(), CutBasedPhotonIDAlgo::decideEB(), CutBasedPhotonIDAlgo::decideEE(), pat::Photon::hcalIso(), and PhotonSelectorAlgo::passPhotonSelection().

472 { return hcalTowerSumEt(isolationR04_, depth); }
IsolationVariables isolationR04_
Definition: Photon.h:593
float hcalTowerSumEt(const IsolationVariables &iv, int depth) const
Hcal isolation sum for each depth excluding the region containing the rechits used for hcalOverEcal()...
Definition: Photon.h:456
bool reco::Photon::isEB ( ) const
inline
bool reco::Photon::isEBEEGap ( ) const
inline
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 124 of file Photon.h.

References isEBEtaGap(), and isEBPhiGap().

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

124 { return (isEBEtaGap() || isEBPhiGap()); }
bool isEBPhiGap() const
Definition: Photon.h:126
bool isEBEtaGap() const
Definition: Photon.h:125
bool reco::Photon::isEBPhiGap ( ) const
inline
bool reco::Photon::isEE ( ) const
inline
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 128 of file Photon.h.

References isEEDeeGap(), and isEERingGap().

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

128 { return (isEERingGap() || isEEDeeGap()); }
bool isEEDeeGap() const
Definition: Photon.h:130
bool isEERingGap() const
Definition: Photon.h:129
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:47
bool reco::Photon::isPhoton ( ) const
inlineoverridevirtual

Implement Candidate method for particle species.

Reimplemented from reco::LeafCandidate.

Definition at line 89 of file Photon.h.

89 { return true; }
float reco::Photon::isSeedSaturated ( ) const
inline

Definition at line 307 of file Photon.h.

References reco::Photon::SaturationInfo::isSeedSaturated, and saturationInfo_.

SaturationInfo saturationInfo_
Definition: Photon.h:597
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:47
float reco::Photon::maxEnergyXtal ( ) const
inline

Definition at line 268 of file Photon.h.

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

Referenced by PhotonAnalyzer::analyze().

ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::mipChi2 ( ) const
inline

MIP variables.

Definition at line 385 of file Photon.h.

References reco::Photon::MIPVariables::mipChi2, and mipVariableBlock_.

385 { return mipVariableBlock_.mipChi2; }
MIPVariables mipVariableBlock_
Definition: Photon.h:599
float reco::Photon::mipIntercept ( ) const
inline

Definition at line 388 of file Photon.h.

References reco::Photon::MIPVariables::mipIntercept, and mipVariableBlock_.

MIPVariables mipVariableBlock_
Definition: Photon.h:599
bool reco::Photon::mipIsHalo ( ) const
inline

Definition at line 390 of file Photon.h.

References reco::Photon::MIPVariables::mipIsHalo, and mipVariableBlock_.

390 { return mipVariableBlock_.mipIsHalo; }
MIPVariables mipVariableBlock_
Definition: Photon.h:599
int reco::Photon::mipNhitCone ( ) const
inline

Definition at line 389 of file Photon.h.

References reco::Photon::MIPVariables::mipNhitCone, and mipVariableBlock_.

389 { return mipVariableBlock_.mipNhitCone; }
MIPVariables mipVariableBlock_
Definition: Photon.h:599
float reco::Photon::mipSlope ( ) const
inline

Definition at line 387 of file Photon.h.

References reco::Photon::MIPVariables::mipSlope, and mipVariableBlock_.

387 { return mipVariableBlock_.mipSlope; }
MIPVariables mipVariableBlock_
Definition: Photon.h:599
float reco::Photon::mipTotEnergy ( ) const
inline

Definition at line 386 of file Photon.h.

References reco::Photon::MIPVariables::mipTotEnergy, and mipVariableBlock_.

MIPVariables mipVariableBlock_
Definition: Photon.h:599
int reco::Photon::nClusterOutsideMustache ( ) const
inline

Definition at line 572 of file Photon.h.

References reco::Photon::PflowIDVariables::nClusterOutsideMustache, and pfID_.

572 { return pfID_.nClusterOutsideMustache; }
PflowIDVariables pfID_
Definition: Photon.h:601
float reco::Photon::neutralHadronIso ( ) const
inline
float reco::Photon::nSaturatedXtals ( ) const
inline
int reco::Photon::nTrkHollowConeDR03 ( ) const
inline

Definition at line 513 of file Photon.h.

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

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

513 { return isolationR03_.nTrkHollowCone; }
IsolationVariables isolationR03_
Definition: Photon.h:594
int reco::Photon::nTrkHollowConeDR04 ( ) const
inline
int reco::Photon::nTrkSolidConeDR03 ( ) const
inline

Definition at line 511 of file Photon.h.

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

511 { return isolationR03_.nTrkSolidCone; }
IsolationVariables isolationR03_
Definition: Photon.h:594
int reco::Photon::nTrkSolidConeDR04 ( ) const
inline
bool reco::Photon::overlap ( const Candidate ) const
overrideprivatevirtual

check overlap with another candidate

Implements reco::RecoCandidate.

const LorentzVector& reco::Photon::p4 ( P4type  type) const
reco::SuperClusterRef reco::Photon::parentSuperCluster ( ) const
inline

Ref to PFlow SuperCluster.

Definition at line 59 of file Photon.h.

References photonCore().

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

Definition at line 575 of file Photon.h.

References reco::Photon::PflowIDVariables::dnn, and pfID_.

Referenced by PFEGammaFilters::passPhotonSelection().

575 { return pfID_.dnn; }
PflowIDVariables pfID_
Definition: Photon.h:601
float reco::Photon::pfMVA ( ) const
inline

Definition at line 574 of file Photon.h.

References reco::Photon::PflowIDVariables::mva, and pfID_.

574 { return pfID_.mva; }
PflowIDVariables pfID_
Definition: Photon.h:601
reco::PhotonCoreRef reco::Photon::photonCore ( ) const
inline

returns a reference to the core photon object

Definition at line 47 of file Photon.h.

References photonCore_.

Referenced by conversions(), conversionsOneLeg(), electronPixelSeeds(), hasConversionTracks(), hasPixelSeed(), isPFlowPhoton(), isStandardPhoton(), parentSuperCluster(), and setPhotonCore().

47 { return photonCore_; }
reco::PhotonCoreRef photonCore_
reference to the PhotonCore
Definition: Photon.h:588
float reco::Photon::photonIso ( ) const
inline
float reco::Photon::r1x5 ( ) const
inline
float reco::Photon::r2x5 ( ) const
inline
float reco::Photon::r9 ( ) const
inline
const SaturationInfo& reco::Photon::saturationInfo ( ) const
inline

Definition at line 308 of file Photon.h.

References saturationInfo_.

308 { return saturationInfo_; }
SaturationInfo saturationInfo_
Definition: Photon.h:597
void reco::Photon::setCandidateP4type ( const P4type  type)
inline
void reco::Photon::setCorrectedEnergy ( P4type  type,
float  E,
float  dE,
bool  toCand = true 
)
void reco::Photon::setEnergyCorrections ( const EnergyCorrections e)
inline

Definition at line 352 of file Photon.h.

References alignCSCRings::e, and eCorrections_.

352 { eCorrections_ = e; }
EnergyCorrections eCorrections_
Definition: Photon.h:598
void reco::Photon::setFiducialVolumeFlags ( const FiducialFlags a)
inline

set flags for photons in the ECAL fiducial volume

Definition at line 117 of file Photon.h.

References a, and fiducialFlagBlock_.

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

set relevant isolation variables

Definition at line 447 of file Photon.h.

References isolationR03_, and isolationR04_.

447  {
448  isolationR04_ = isolInDr04;
449  isolationR03_ = isolInDr03;
450  }
IsolationVariables isolationR03_
Definition: Photon.h:594
IsolationVariables isolationR04_
Definition: Photon.h:593
void reco::Photon::setMIPVariables ( const MIPVariables mipVar)
inline

set mip Variables

Definition at line 393 of file Photon.h.

References mipVariableBlock_.

393 { mipVariableBlock_ = mipVar; }
MIPVariables mipVariableBlock_
Definition: Photon.h:599
void reco::Photon::setP4 ( P4type  type,
const LorentzVector p4,
float  p4Error,
bool  setToRecoCandidate 
)
void reco::Photon::setPflowIDVariables ( const PflowIDVariables pfid)
inline

Definition at line 577 of file Photon.h.

References pfID_.

577 { pfID_ = pfid; }
PflowIDVariables pfID_
Definition: Photon.h:601
void reco::Photon::setPflowIsolationVariables ( const PflowIsolationVariables pfisol)
inline

Set Particle Flow Isolation variables.

Definition at line 557 of file Photon.h.

References pfIsolation_.

Referenced by GEDPhotonProducer::fillPhotonCollection(), EG9X105XObjectUpdateModifier::modifyObject(), and pat::PATPhotonProducer::produce().

557 { pfIsolation_ = pfisol; }
PflowIsolationVariables pfIsolation_
Definition: Photon.h:600
void reco::Photon::setPhotonCore ( const reco::PhotonCoreRef photonCore)
inline

Definition at line 48 of file Photon.h.

References photonCore(), and photonCore_.

reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
Definition: Photon.h:47
reco::PhotonCoreRef photonCore_
reference to the PhotonCore
Definition: Photon.h:588
void reco::Photon::setSaturationInfo ( const SaturationInfo s)
inline

Definition at line 309 of file Photon.h.

References alignCSCRings::s, and saturationInfo_.

Referenced by EG8XObjectUpdateModifier::modifyObject(), and pat::PATPhotonSlimmer::produce().

309 { saturationInfo_ = s; }
SaturationInfo saturationInfo_
Definition: Photon.h:597
void reco::Photon::setShowerShapeVariables ( const ShowerShape a)
inline

Definition at line 212 of file Photon.h.

References a, and showerShapeBlock_.

Referenced by EG9X105XObjectUpdateModifier::modifyObject().

212 { showerShapeBlock_ = a; }
double a
Definition: hdecay.h:119
ShowerShape showerShapeBlock_
Definition: Photon.h:595
void reco::Photon::setVertex ( const Point vertex)
overridevirtual

set primary event vertex used to define photon direction

Reimplemented from reco::LeafCandidate.

const ShowerShape& reco::Photon::showerShapeVariables ( ) const
inline

Definition at line 209 of file Photon.h.

References showerShapeBlock_.

Referenced by EGRegressionModifierV1::modifyObject(), and EG9X105XObjectUpdateModifier::modifyObject().

209 { return showerShapeBlock_; }
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::sigmaEtaEta ( ) const
inline

Definition at line 269 of file Photon.h.

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

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

269 { return showerShapeBlock_.sigmaEtaEta; }
ShowerShape showerShapeBlock_
Definition: Photon.h:595
float reco::Photon::sigmaIetaIeta ( ) const
inline
reco::SuperClusterRef reco::Photon::superCluster ( ) const
overridevirtual

Ref to SuperCluster.

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Photon.

Referenced by FWPhotonDetailView::addSceneInfo(), SimplePhotonAnalyzer::analyze(), SimplePi0DiscAnalyzer::analyze(), TkConvValidator::analyze(), PhotonValidator::analyze(), PhotonAnalyzer::analyze(), EgammaObjects::analyzePhotons(), FWPhotonDetailView::build(), FWPhotonProxyBuilder::buildViewType(), PhotonEnergyCorrector::calculate(), PhotonIsolationCalculator::calculate(), PhotonEnergyCalibrator::calibrate(), PhotonIsolationCalculator::classify(), HGCalEgammaIDHelper::computeHGCAL(), PhotonIDValueMapProducer::computeWorstPFChargedIsolation(), EGEnergyCorrector::CorrectedEnergyWithError(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), PFCandWithSuperClusterExtractor::depositFromObject(), egHLT::OffPho::etaSC(), egHLT::OffPho::etSC(), PFIsolationEstimator::fGetIsolationInRings(), egHLT::OffHelper::fillClusShapeData(), PhotonMVAEstimator::findCategory(), EgammaObjects::findRecoMass(), full5x5_r9(), PhotonMIPHaloTagger::GetMipTrailFit(), EGRegressionModifierV3::getRegData(), PhotonMIPHaloTagger::GetSeedHighestE(), PFIsolationEstimator::matchPFObject(), EGRegressionModifierV2::modifyObject(), EGRegressionModifierV1::modifyObject(), EG8XObjectUpdateModifier::modifyObject(), EG9X105XObjectUpdateModifier::modifyObject(), EGRegressionModifierV3::modifyObject(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), PhotonMVAEstimator::mvaValue(), egHLT::OffPho::phiSC(), pat::PATPhotonProducer::produce(), and r9().

float reco::Photon::trkSumPtHollowConeDR03 ( ) const
inline
float reco::Photon::trkSumPtHollowConeDR04 ( ) const
inline
float reco::Photon::trkSumPtSolidConeDR03 ( ) const
inline

Definition at line 507 of file Photon.h.

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

Referenced by PFEGammaFilters::passPhotonSelection().

IsolationVariables isolationR03_
Definition: Photon.h:594
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 586 of file Photon.h.

Referenced by caloPosition().

EnergyCorrections reco::Photon::eCorrections_
private
FiducialFlags reco::Photon::fiducialFlagBlock_
private
ShowerShape reco::Photon::full5x5_showerShapeBlock_
private
IsolationVariables reco::Photon::isolationR03_
private
IsolationVariables reco::Photon::isolationR04_
private
MIPVariables reco::Photon::mipVariableBlock_
private
constexpr float reco::Photon::mvaPlaceholder = -999999999.
static

Definition at line 559 of file Photon.h.

PflowIDVariables reco::Photon::pfID_
private
PflowIsolationVariables reco::Photon::pfIsolation_
private
reco::PhotonCoreRef reco::Photon::photonCore_
private

reference to the PhotonCore

Definition at line 588 of file Photon.h.

Referenced by photonCore(), and setPhotonCore().

bool reco::Photon::pixelSeed_
private

Definition at line 590 of file Photon.h.

Referenced by Photon().

SaturationInfo reco::Photon::saturationInfo_
private

Definition at line 597 of file Photon.h.

Referenced by isSeedSaturated(), nSaturatedXtals(), saturationInfo(), and setSaturationInfo().

ShowerShape reco::Photon::showerShapeBlock_
private