CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Types | Protected Attributes | Friends
pat::Photon Class Reference

Analysis-level Photon class. More...

#include "DataFormats/PatCandidates/interface/Photon.h"

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

Public Types

typedef std::pair< std::string, Bool_t > IdPair
 
- Public Types inherited from pat::PATObject< reco::Photon >
typedef reco::Photon base_type
 
- Public Types inherited from reco::Photon
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

edm::RefVector< pat::PackedCandidateCollectionassociatedPackedPFCandidates () const
 References to PFCandidates linked to this object (e.g. for isolation vetos or masking before jet reclustering) More...
 
const std::vector< reco::CaloCluster > & basicClusters () const
 
float caloIso () const
 
float chargedHadronIso () const
 
Photonclone () const override
 required reimplementation of the Candidate's clone method More...
 
float cryEta () const
 
float cryPhi () const
 
float e2nd () const
 
float e3x3 () const
 
float eBottom () const
 
float ecalIso () const
 
const IsoDepositecalIsoDeposit () const
 Return the ecal IsoDeposit. More...
 
void ecalIsoDeposit (const IsoDeposit &dep)
 Sets ecal IsoDeposit. More...
 
float eLeft () const
 
float eMax () const
 
void embedBasicClusters ()
 method to store the electron's basic clusters More...
 
void embedPreshowerClusters ()
 method to store the electron's preshower clusters More...
 
void embedRecHits (const EcalRecHitCollection *rechits)
 method to store the RecHits internally - can be called from the PATElectronProducer More...
 
void embedSeedCluster ()
 method to store the electron's seedcluster internally More...
 
void embedSuperCluster ()
 method to store the photon's supercluster internally More...
 
float eRight () const
 
float eTop () const
 
const reco::CandidategenPhoton () const
 return the match to the generated photon More...
 
bool hasPixelSeed () const
 
float hcalIso () const
 
const IsoDeposithcalIsoDeposit () const
 Return the hcal IsoDeposit. More...
 
void hcalIsoDeposit (const IsoDeposit &dep)
 Sets hcal IsoDeposit. More...
 
float iEta () const
 
float iPhi () const
 
const IsoDepositisoDeposit (IsolationKeys key) const
 Returns the IsoDeposit associated with some key, or a null pointer if it is not available. More...
 
bool isPhotonIDAvailable (const std::string &name) const
 Returns true if a specific ID is available in this pat::Photon. More...
 
float maxDR () const
 
float maxDRDEta () const
 
float maxDRDPhi () const
 
float maxDRRawEnergy () const
 
float neutralHadronIso () const
 
size_t numberOfSourceCandidatePtrs () const override
 get the number of non-null PFCandidates More...
 
bool passElectronVeto () const
 vertex fit method More...
 
float patParticleIso () const
 
 Photon ()
 default constructor More...
 
 Photon (const reco::Photon &aPhoton)
 constructor from a reco photon More...
 
 Photon (const edm::RefToBase< reco::Photon > &aPhotonRef)
 constructor from a RefToBase to a reco photon (to be superseded by Ptr counterpart) More...
 
 Photon (const edm::Ptr< reco::Photon > &aPhotonRef)
 constructor from a Ptr to a reco photon More...
 
Bool_t photonID (const std::string &name) const
 
const std::vector< IdPair > & photonIDs () const
 
float photonIso () const
 
const std::vector< reco::CaloCluster > & preshowerClusters () const
 
float puChargedHadronIso () const
 
float puppiChargedHadronIso () const
 
float puppiNeutralHadronIso () const
 
float puppiPhotonIso () const
 
const EcalRecHitCollectionrecHits () const
 
float see () const
 
reco::CaloClusterPtr seed () const
 direct access to the seed cluster More...
 
float seedEnergy () const
 input variables for regression energy corrections More...
 
float sep () const
 
template<typename T >
void setAssociatedPackedPFCandidates (const edm::RefProd< pat::PackedCandidateCollection > &refprod, T beginIndexItr, T endIndexItr)
 References to PFCandidates linked to this object (e.g. for isolation vetos or masking before jet reclustering) More...
 
void setCryEta (float c)
 
void setCryPhi (float c)
 
void setE2nd (float e)
 
void setE3x3 (float e)
 
void setEBottom (float e)
 
void setEcalIso (float caloIso)
 Sets ecal isolation variable. More...
 
void setELeft (float e)
 
void setEMax (float e)
 
void setERight (float e)
 
void setETop (float e)
 
void setGenPhoton (const reco::GenParticleRef &gp, bool embed=false)
 method to set the generated photon More...
 
void setHasPixelSeed (bool flag)
 
void setHcalIso (float caloIso)
 Sets hcal isolation variable. More...
 
void setIEta (float i)
 
void setIPhi (float i)
 
void setIsoDeposit (IsolationKeys key, const IsoDeposit &dep)
 Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten. More...
 
void setIsolation (IsolationKeys key, float value)
 
void setIsolationPUPPI (float chargedhadrons_, float neutralhadrons_, float photons_)
 Sets PUPPI isolation. More...
 
void setMaxDR (float m)
 
void setMaxDRDEta (float m)
 
void setMaxDRDPhi (float m)
 
void setMaxDRRawEnergy (float m)
 
void setPassElectronVeto (bool flag)
 
void setPhotonIDs (const std::vector< IdPair > &ids)
 
void setSee (float s)
 
void setSeedEnergy (float e)
 
void setSep (float s)
 
void setSpp (float s)
 
void setSubClusDEta1 (float s)
 
void setSubClusDEta2 (float s)
 
void setSubClusDEta3 (float s)
 
void setSubClusDPhi1 (float s)
 
void setSubClusDPhi2 (float s)
 
void setSubClusDPhi3 (float s)
 
void setSubClusRawE1 (float s)
 
void setSubClusRawE2 (float s)
 
void setSubClusRawE3 (float s)
 
void setTrackIso (float trackIso)
 Sets tracker isolation variable. More...
 
void setUserIso (float value, uint8_t index=0)
 Sets user isolation variable index. More...
 
reco::CandidatePtr sourceCandidatePtr (size_type i) const override
 get the source candidate pointer with index i More...
 
float spp () const
 
float subClusDEta1 () const
 
float subClusDEta2 () const
 
float subClusDEta3 () const
 
float subClusDPhi1 () const
 
float subClusDPhi2 () const
 
float subClusDPhi3 () const
 
float subClusRawE1 () const
 
float subClusRawE2 () const
 
float subClusRawE3 () const
 
reco::SuperClusterRef superCluster () const override
 override the superCluster method from CaloJet, to access the internal storage of the supercluster More...
 
float trackIso () const
 
const IsoDeposittrackIsoDeposit () const
 Return the tracker IsoDeposit. More...
 
void trackIsoDeposit (const IsoDeposit &dep)
 Sets tracker IsoDeposit. More...
 
float userIso (uint8_t index=0) const
 Returns a user defined isolation value. More...
 
const IsoDeposituserIsoDeposit (uint8_t index=0) const
 Return a specified user-level IsoDeposit. More...
 
void userIsoDeposit (const IsoDeposit &dep, uint8_t index=0)
 Sets user-level IsoDeposit. More...
 
float userIsolation (IsolationKeys key) const
 
 ~Photon () override
 destructor More...
 
- Public Member Functions inherited from pat::PATObject< reco::Photon >
void addGenParticleRef (const reco::GenParticleRef &ref)
 
void addTriggerObjectMatch (const TriggerObjectStandAlone &trigObj)
 add a trigger match More...
 
void addUserCand (const std::string &label, const reco::CandidatePtr &data, const bool overwrite=false)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false, bool overwrite=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data, bool overwrite=false)
 
void addUserFloat (const std::string &label, float data, const bool overwrite=false)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data, const bool overwrite=false)
 Set user-defined int. More...
 
std::vector< std::pair< std::string, pat::LookupTableRecord > > efficiencies () const
 Returns the efficiencies as <name,value> pairs (by value) More...
 
const pat::LookupTableRecordefficiency (const std::string &name) const
 Returns an efficiency given its name. More...
 
const std::vector< std::string > & efficiencyNames () const
 Returns the list of the names of the stored efficiencies. More...
 
const std::vector< pat::LookupTableRecord > & efficiencyValues () const
 Returns the list of the values of the stored efficiencies (the ordering is the same as in efficiencyNames()) More...
 
void embedGenParticle ()
 
const reco::GenParticlegenParticle (size_t idx=0) const
 
reco::GenParticleRef genParticleById (int pdgId, int status, uint8_t autoCharge=0) const
 
reco::GenParticleRef genParticleRef (size_t idx=0) const
 
std::vector< reco::GenParticleRefgenParticleRefs () const
 
size_t genParticlesSize () const
 Number of generator level particles stored as ref or embedded. More...
 
const pat::CandKinResolutiongetKinResolution (const std::string &label="") const
 
bool hasKinResolution (const std::string &label="") const
 Check if the kinematic resolutions are stored into this object (possibly specifying a label for them) More...
 
bool hasOverlaps (const std::string &label) const
 Returns true if there was at least one overlap for this test label. More...
 
bool hasUserCand (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
bool hasUserData (const std::string &key) const
 Check if user data with a specific type is present. More...
 
bool hasUserFloat (const std::string &key) const
 Return true if there is a user-defined float with a given name. More...
 
bool hasUserFloat (const char *key) const
 a CINT-friendly interface More...
 
bool hasUserInt (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
const reco::CandidateoriginalObject () const
 access to the original object; returns zero for null Ref and throws for unavailable collection More...
 
const edm::Ptr< reco::Candidate > & originalObjectRef () const
 reference to original object. Returns a null reference if not available More...
 
const std::vector< std::string > & overlapLabels () const
 Returns the labels of the overlap tests that found at least one overlap. More...
 
const reco::CandidatePtrVectoroverlaps (const std::string &label) const
 
 PATObject ()
 default constructor More...
 
 PATObject (const reco::Photon &obj)
 constructor from a base object (leaves invalid reference to original object!) More...
 
 PATObject (const edm::RefToBase< reco::Photon > &ref)
 constructor from reference More...
 
 PATObject (const edm::Ptr< reco::Photon > &ref)
 constructor from reference More...
 
double resolE (const std::string &label="") const
 Resolution on energy, possibly with a label to specify which resolution to use. More...
 
double resolEt (const std::string &label="") const
 Resolution on et, possibly with a label to specify which resolution to use. More...
 
double resolEta (const std::string &label="") const
 Resolution on eta, possibly with a label to specify which resolution to use. More...
 
double resolM (const std::string &label="") const
 
double resolP (const std::string &label="") const
 Resolution on p, possibly with a label to specify which resolution to use. More...
 
double resolPhi (const std::string &label="") const
 Resolution on phi, possibly with a label to specify which resolution to use. More...
 
double resolPInv (const std::string &label="") const
 Resolution on 1/p, possibly with a label to specify which resolution to use. More...
 
double resolPt (const std::string &label="") const
 Resolution on pt, possibly with a label to specify which resolution to use. More...
 
double resolPx (const std::string &label="") const
 Resolution on px, possibly with a label to specify which resolution to use. More...
 
double resolPy (const std::string &label="") const
 Resolution on py, possibly with a label to specify which resolution to use. More...
 
double resolPz (const std::string &label="") const
 Resolution on pz, possibly with a label to specify which resolution to use. More...
 
double resolTheta (const std::string &label="") const
 Resolution on theta, possibly with a label to specify which resolution to use. More...
 
void setEfficiency (const std::string &name, const pat::LookupTableRecord &value)
 
void setGenParticle (const reco::GenParticle &particle)
 Set the generator level particle from a particle not in the Event (embedding it, of course) More...
 
void setGenParticleRef (const reco::GenParticleRef &ref, bool embed=false)
 Set the generator level particle reference. More...
 
void setKinResolution (const pat::CandKinResolution &resol, const std::string &label="")
 Add a kinematic resolution to this object (possibly with a label) More...
 
void setOverlaps (const std::string &label, const reco::CandidatePtrVector &overlaps)
 
const TriggerObjectStandAlonetriggerObjectMatch (const size_t idx=0) const
 get one matched trigger object by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const
 get one matched trigger object from a certain collection by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const char *coll, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const std::string &nameCondition, const size_t idx=0) const
 get one matched L1 object used in a succeeding object combination of a certain L1 condition by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const std::string &labelFilter, const size_t idx=0) const
 get one matched HLT object used in a certain HLT filter by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const
 get one matched trigger object of a certain type by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAloneCollectiontriggerObjectMatches () const
 get all matched trigger objects More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const std::string &coll) const
 get all matched trigger objects from a certain collection More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const char *coll) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const std::string &nameCondition) const
 get all matched L1 objects used in a succeeding object combination of a certain L1 condition More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const char *nameCondition) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const std::string &labelFilter) const
 get all matched HLT objects used in a certain HLT filter More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const char *labelFilter) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const unsigned triggerObjectType) const
 
void unpackTriggerObjectPathNames (const edm::TriggerNames &names)
 unpack path names of matched trigger objects (if they were packed before embedding, which is not normally the case) More...
 
reco::CandidatePtr userCand (const std::string &key) const
 
const std::vector< std::string > & userCandNames () const
 Get list of user-defined cand names. More...
 
const TuserData (const std::string &key) const
 Returns user-defined data. Returns NULL if the data is not present, or not of type T. More...
 
const void * userDataBare (const std::string &key) const
 
const std::vector< std::string > & userDataNames () const
 Get list of user data object names. More...
 
const std::string & userDataObjectType (const std::string &key) const
 Get human-readable type of user data object, for debugging. More...
 
float userFloat (const std::string &key) const
 
float userFloat (const char *key) const
 a CINT-friendly interface More...
 
const std::vector< std::string > & userFloatNames () const
 Get list of user-defined float names. More...
 
std::vector< float > userFloatRange (const std::string &key) const
 return a range of values corresponding to key More...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
std::vector< int > userIntRange (const std::string &key) const
 returns a range of values corresponding to key More...
 
 ~PATObject () override
 destructor More...
 
- Public Member Functions inherited from reco::Photon
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
 
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
 
float haloTaggerMVAVal () const
 MVA based beam halo tagger - trained for EE and for pT > 200 GeV. 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 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 setHaloTaggerMVAVal (float x)
 set the haloTaggerMVAVal here 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
 
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...
 
template<typename P4 >
 RecoCandidate (Charge q, const P4 &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...
 
 ~RecoCandidate () override
 destructor 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...
 
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...
 
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...
 

Protected Types

typedef std::vector< std::pair< IsolationKeys, pat::IsoDeposit > > IsoDepositPairs
 

Protected Attributes

std::vector< uint16_t > associatedPackedFCandidateIndices_
 
std::vector< reco::CaloClusterbasicClusters_
 Place to store electron's basic clusters internally. More...
 
float cryEta_
 
float cryPhi_
 
float e2nd_
 
float e3x3_
 
float eBottom_
 
float eLeft_
 
float eMax_
 
bool embeddedRecHits_
 True if RecHits stored internally. More...
 
bool embeddedSeedCluster_
 True if seed cluster is stored internally. More...
 
bool embeddedSuperCluster_
 
float eRight_
 
float eTop_
 
bool hasPixelSeed_
 
float iEta_
 
float iPhi_
 
IsoDepositPairs isoDeposits_
 
std::vector< float > isolations_
 
float maxDR_
 
float maxDRDEta_
 
float maxDRDPhi_
 
float maxDRRawEnergy_
 
edm::RefProd< pat::PackedCandidateCollectionpackedPFCandidates_
 
bool passElectronVeto_
 -— conversion veto -— More...
 
std::vector< IdPairphotonIDs_
 
std::vector< reco::CaloClusterpreshowerClusters_
 Place to store electron's preshower clusters internally. More...
 
float puppiChargedHadronIso_
 
float puppiNeutralHadronIso_
 
float puppiPhotonIso_
 
EcalRecHitCollection recHits_
 Place to store electron's RecHits internally (5x5 around seed+ all RecHits) More...
 
float see_
 
std::vector< reco::CaloClusterseedCluster_
 Place to store electron's seed cluster internally. More...
 
float seedEnergy_
 -— input variables for regression energy corrections -— More...
 
float sep_
 
float spp_
 
float subClusDEta1_
 
float subClusDEta2_
 
float subClusDEta3_
 
float subClusDPhi1_
 
float subClusDPhi2_
 
float subClusDPhi3_
 
float subClusRawE1_
 
float subClusRawE2_
 
float subClusRawE3_
 
std::vector< reco::SuperClustersuperCluster_
 
edm::AtomicPtrCache< std::vector< reco::SuperCluster > > superClusterRelinked_
 Place to temporarily store the electron's supercluster after relinking the seed to it. More...
 
- Protected Attributes inherited from pat::PATObject< reco::Photon >
std::vector< std::string > efficiencyNames_
 vector of the efficiencies (names) More...
 
std::vector< pat::LookupTableRecordefficiencyValues_
 vector of the efficiencies (values) More...
 
std::vector< reco::GenParticlegenParticleEmbedded_
 vector to hold an embedded generator level particle More...
 
std::vector< reco::GenParticleRefgenParticleRef_
 Reference to a generator level particle. More...
 
std::vector< std::string > kinResolutionLabels_
 
std::vector< pat::CandKinResolutionkinResolutions_
 Kinematic resolutions. More...
 
std::vector< reco::CandidatePtrVectoroverlapItems_
 Overlapping items (sorted by distance) More...
 
std::vector< std::string > overlapLabels_
 Overlapping test labels (only if there are any overlaps) More...
 
edm::Ptr< reco::CandidaterefToOrig_
 
TriggerObjectStandAloneCollection triggerObjectMatchesEmbedded_
 vector of trigger matches More...
 
std::vector< std::string > userCandLabels_
 
std::vector< reco::CandidatePtruserCands_
 
std::vector< std::string > userDataLabels_
 User data object. More...
 
pat::UserDataCollection userDataObjects_
 
std::vector< std::string > userFloatLabels_
 
std::vector< float > userFloats_
 
std::vector< std::string > userIntLabels_
 
std::vector< int32_t > userInts_
 

Friends

class PATPhotonSlimmer
 
std::ostream & reco::operator<< (std::ostream &out, const pat::Photon &obj)
 pipe operator (introduced to use pat::Photon with PFTopProjectors) More...
 

Additional Inherited Members

- Static Public Attributes inherited from reco::Photon
static constexpr float mvaPlaceholder = -999999999.
 
- Protected Member Functions inherited from pat::PATObject< reco::Photon >
void addUserDataObject_ (const std::string &label, std::unique_ptr< pat::UserData > value, bool overwrite=false)
 
- 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

Analysis-level Photon class.

pat::Photon implements the analysis-level photon class within the 'pat' namespace.

Please post comments and questions to the Physics Tools hypernews: https://hypernews.cern.ch/HyperNews/CMS/get/physTools.html

Author
Steven Lowette, Giovanni Petrucciani, Frederic Ronga

Definition at line 46 of file Photon.h.

Member Typedef Documentation

◆ IdPair

typedef std::pair<std::string, Bool_t> pat::Photon::IdPair

Definition at line 48 of file Photon.h.

◆ IsoDepositPairs

typedef std::vector<std::pair<IsolationKeys, pat::IsoDeposit> > pat::Photon::IsoDepositPairs
protected

Definition at line 353 of file Photon.h.

Constructor & Destructor Documentation

◆ Photon() [1/4]

pat::Photon::Photon ( )

default constructor

Referenced by clone().

◆ Photon() [2/4]

pat::Photon::Photon ( const reco::Photon aPhoton)

constructor from a reco photon

◆ Photon() [3/4]

pat::Photon::Photon ( const edm::RefToBase< reco::Photon > &  aPhotonRef)

constructor from a RefToBase to a reco photon (to be superseded by Ptr counterpart)

◆ Photon() [4/4]

pat::Photon::Photon ( const edm::Ptr< reco::Photon > &  aPhotonRef)

constructor from a Ptr to a reco photon

◆ ~Photon()

pat::Photon::~Photon ( )
override

destructor

Member Function Documentation

◆ associatedPackedPFCandidates()

edm::RefVector<pat::PackedCandidateCollection> pat::Photon::associatedPackedPFCandidates ( ) const

References to PFCandidates linked to this object (e.g. for isolation vetos or masking before jet reclustering)

Referenced by PuppiPhoton::produce().

◆ basicClusters()

const std::vector<reco::CaloCluster>& pat::Photon::basicClusters ( ) const
inline

Definition at line 71 of file Photon.h.

References basicClusters_.

71 { return basicClusters_; }
std::vector< reco::CaloCluster > basicClusters_
Place to store electron&#39;s basic clusters internally.
Definition: Photon.h:339

◆ caloIso()

float pat::Photon::caloIso ( ) const
inline

Returns the calorimeter isolation combined from ecal and hcal

Definition at line 120 of file Photon.h.

References ecalIso(), and hcalIso().

Referenced by setEcalIso(), and setHcalIso().

120 { return ecalIso() + hcalIso(); }
float ecalIso() const
Definition: Photon.h:114
float hcalIso() const
Definition: Photon.h:117

◆ chargedHadronIso()

float pat::Photon::chargedHadronIso ( ) const
inline

Returns the isolation calculated with only the charged hadron PFCandidates

Definition at line 127 of file Photon.h.

References reco::Photon::chargedHadronIso().

Referenced by Lepton.Lepton::absIsoFromEA(), PhotonValidatorMiniAOD::analyze(), and Photon.Photon::passPhotonIso().

127 { return reco::Photon::chargedHadronIso(); }
float chargedHadronIso() const
Accessors for Particle Flow Isolation variables.
Definition: Photon.h:545

◆ clone()

Photon* pat::Photon::clone ( void  ) const
inlineoverridevirtual

required reimplementation of the Candidate's clone method

Reimplemented from reco::Photon.

Definition at line 62 of file Photon.h.

References Photon().

62 { return new Photon(*this); }
Photon()
default constructor

◆ cryEta()

float pat::Photon::cryEta ( ) const
inline

Definition at line 302 of file Photon.h.

References cryEta_.

302 { return cryEta_; }
float cryEta_
Definition: Photon.h:392

◆ cryPhi()

float pat::Photon::cryPhi ( ) const
inline

Definition at line 300 of file Photon.h.

References cryPhi_.

300 { return cryPhi_; }
float cryPhi_
Definition: Photon.h:393

◆ e2nd()

float pat::Photon::e2nd ( ) const
inline

Definition at line 250 of file Photon.h.

References e2nd_.

250 { return e2nd_; }
float e2nd_
Definition: Photon.h:364

◆ e3x3()

float pat::Photon::e3x3 ( ) const
inline

Definition at line 252 of file Photon.h.

References e3x3_.

252 { return e3x3_; }
float e3x3_
Definition: Photon.h:365

◆ eBottom()

float pat::Photon::eBottom ( ) const
inline

Definition at line 256 of file Photon.h.

References eBottom_.

256 { return eBottom_; }
float eBottom_
Definition: Photon.h:367

◆ ecalIso()

float pat::Photon::ecalIso ( ) const
inline

Returns the summed Et in a cone of deltaR<0.4 calculated from recHits

Definition at line 114 of file Photon.h.

References reco::Photon::ecalRecHitSumEtConeDR04().

Referenced by caloIso().

114 { return ecalRecHitSumEtConeDR04(); }
float ecalRecHitSumEtConeDR04() const
Definition: Photon.h:457

◆ ecalIsoDeposit() [1/2]

const IsoDeposit* pat::Photon::ecalIsoDeposit ( ) const
inline

Return the ecal IsoDeposit.

Definition at line 211 of file Photon.h.

References pat::EcalIso, and isoDeposit().

211 { return isoDeposit(pat::EcalIso); }
const IsoDeposit * isoDeposit(IsolationKeys key) const
Returns the IsoDeposit associated with some key, or a null pointer if it is not available.
Definition: Photon.h:201

◆ ecalIsoDeposit() [2/2]

void pat::Photon::ecalIsoDeposit ( const IsoDeposit dep)
inline

Sets ecal IsoDeposit.

Definition at line 230 of file Photon.h.

References pat::EcalIso, and setIsoDeposit().

230 { setIsoDeposit(pat::EcalIso, dep); }
void setIsoDeposit(IsolationKeys key, const IsoDeposit &dep)
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
Definition: Photon.h:217

◆ eLeft()

float pat::Photon::eLeft ( ) const
inline

Definition at line 258 of file Photon.h.

References eLeft_.

258 { return eLeft_; }
float eLeft_
Definition: Photon.h:368

◆ eMax()

float pat::Photon::eMax ( ) const
inline

Definition at line 248 of file Photon.h.

References eMax_.

248 { return eMax_; }
float eMax_
Definition: Photon.h:363

◆ embedBasicClusters()

void pat::Photon::embedBasicClusters ( )

method to store the electron's basic clusters

Referenced by pat::PATPhotonProducer::produce().

◆ embedPreshowerClusters()

void pat::Photon::embedPreshowerClusters ( )

method to store the electron's preshower clusters

Referenced by pat::PATPhotonProducer::produce().

◆ embedRecHits()

void pat::Photon::embedRecHits ( const EcalRecHitCollection rechits)

method to store the RecHits internally - can be called from the PATElectronProducer

Referenced by pat::PATPhotonProducer::produce().

◆ embedSeedCluster()

void pat::Photon::embedSeedCluster ( )

method to store the electron's seedcluster internally

Referenced by pat::PATPhotonProducer::produce().

◆ embedSuperCluster()

void pat::Photon::embedSuperCluster ( )

method to store the photon's supercluster internally

Referenced by pat::PATPhotonProducer::produce().

◆ eRight()

float pat::Photon::eRight ( ) const
inline

Definition at line 260 of file Photon.h.

References eRight_.

260 { return eRight_; }
float eRight_
Definition: Photon.h:369

◆ eTop()

float pat::Photon::eTop ( ) const
inline

Definition at line 254 of file Photon.h.

References eTop_.

254 { return eTop_; }
float eTop_
Definition: Photon.h:366

◆ genPhoton()

const reco::Candidate* pat::Photon::genPhoton ( ) const
inline

return the match to the generated photon

Definition at line 91 of file Photon.h.

References pat::PATObject< reco::Photon >::genParticle().

91 { return genParticle(); }
const reco::GenParticle * genParticle(size_t idx=0) const
Definition: PATObject.h:285

◆ hasPixelSeed()

bool pat::Photon::hasPixelSeed ( ) const
inline

Definition at line 241 of file Photon.h.

References hasPixelSeed_.

241 { return hasPixelSeed_; }
bool hasPixelSeed_
Definition: Photon.h:359

◆ hcalIso()

float pat::Photon::hcalIso ( ) const
inline

Returns summed Et in a cone of deltaR<0.4 calculated from caloTowers

Definition at line 117 of file Photon.h.

References reco::Photon::hcalTowerSumEtConeDR04().

Referenced by caloIso().

117 { return hcalTowerSumEtConeDR04(); }
float hcalTowerSumEtConeDR04(int depth=0) const
Definition: Photon.h:475

◆ hcalIsoDeposit() [1/2]

const IsoDeposit* pat::Photon::hcalIsoDeposit ( ) const
inline

Return the hcal IsoDeposit.

Definition at line 213 of file Photon.h.

References pat::HcalIso, and isoDeposit().

213 { return isoDeposit(pat::HcalIso); }
const IsoDeposit * isoDeposit(IsolationKeys key) const
Returns the IsoDeposit associated with some key, or a null pointer if it is not available.
Definition: Photon.h:201

◆ hcalIsoDeposit() [2/2]

void pat::Photon::hcalIsoDeposit ( const IsoDeposit dep)
inline

Sets hcal IsoDeposit.

Definition at line 232 of file Photon.h.

References pat::HcalIso, and setIsoDeposit().

232 { setIsoDeposit(pat::HcalIso, dep); }
void setIsoDeposit(IsolationKeys key, const IsoDeposit &dep)
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
Definition: Photon.h:217

◆ iEta()

float pat::Photon::iEta ( ) const
inline

Definition at line 307 of file Photon.h.

References iEta_.

307 { return iEta_; }
float iEta_
Definition: Photon.h:394

◆ iPhi()

float pat::Photon::iPhi ( ) const
inline

Definition at line 305 of file Photon.h.

References iPhi_.

305 { return iPhi_; }
float iPhi_
Definition: Photon.h:395

◆ isoDeposit()

const IsoDeposit* pat::Photon::isoDeposit ( IsolationKeys  key) const
inline

Returns the IsoDeposit associated with some key, or a null pointer if it is not available.

Definition at line 201 of file Photon.h.

References isoDeposits_, and crabWrapper::key.

Referenced by ecalIsoDeposit(), hcalIsoDeposit(), trackIsoDeposit(), and userIsoDeposit().

201  {
202  for (IsoDepositPairs::const_iterator it = isoDeposits_.begin(), ed = isoDeposits_.end(); it != ed; ++it) {
203  if (it->first == key)
204  return &it->second;
205  }
206  return nullptr;
207  }
IsoDepositPairs isoDeposits_
Definition: Photon.h:354

◆ isPhotonIDAvailable()

bool pat::Photon::isPhotonIDAvailable ( const std::string &  name) const

Returns true if a specific ID is available in this pat::Photon.

◆ maxDR()

float pat::Photon::maxDR ( ) const
inline

Definition at line 270 of file Photon.h.

References maxDR_.

270 { return maxDR_; }
float maxDR_
Definition: Photon.h:375

◆ maxDRDEta()

float pat::Photon::maxDRDEta ( ) const
inline

Definition at line 274 of file Photon.h.

References maxDRDEta_.

274 { return maxDRDEta_; }
float maxDRDEta_
Definition: Photon.h:377

◆ maxDRDPhi()

float pat::Photon::maxDRDPhi ( ) const
inline

Definition at line 272 of file Photon.h.

References maxDRDPhi_.

272 { return maxDRDPhi_; }
float maxDRDPhi_
Definition: Photon.h:376

◆ maxDRRawEnergy()

float pat::Photon::maxDRRawEnergy ( ) const
inline

Definition at line 276 of file Photon.h.

References maxDRRawEnergy_.

276 { return maxDRRawEnergy_; }
float maxDRRawEnergy_
Definition: Photon.h:378

◆ neutralHadronIso()

float pat::Photon::neutralHadronIso ( ) const
inline

Returns the isolation calculated with only the neutral hadron PFCandidates

Definition at line 130 of file Photon.h.

References reco::Photon::neutralHadronIso().

Referenced by Lepton.Lepton::absIsoFromEA(), PhotonValidatorMiniAOD::analyze(), and Photon.Photon::passPhotonIso().

130 { return reco::Photon::neutralHadronIso(); }
float neutralHadronIso() const
Definition: Photon.h:549

◆ numberOfSourceCandidatePtrs()

size_t pat::Photon::numberOfSourceCandidatePtrs ( ) const
inlineoverridevirtual

get the number of non-null PFCandidates

Reimplemented from reco::LeafCandidate.

Definition at line 326 of file Photon.h.

References associatedPackedFCandidateIndices_.

326 { return associatedPackedFCandidateIndices_.size(); }
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:404

◆ passElectronVeto()

bool pat::Photon::passElectronVeto ( ) const
inline

vertex fit method

Definition at line 238 of file Photon.h.

References passElectronVeto_.

238 { return passElectronVeto_; }
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:358

◆ patParticleIso()

float pat::Photon::patParticleIso ( ) const
inline

PARTICLE FLOW ISOLATION Returns the isolation calculated with all the PFCandidates

Definition at line 124 of file Photon.h.

References pat::PfAllParticleIso, and userIsolation().

float userIsolation(IsolationKeys key) const
Definition: Photon.h:142

◆ photonID()

Bool_t pat::Photon::photonID ( const std::string &  name) const

Returns a specific photon ID associated to the pat::Photon given its name. Note: an exception is thrown if the specified ID is not available

◆ photonIDs()

const std::vector<IdPair>& pat::Photon::photonIDs ( ) const
inline

Returns all the Photon IDs in the form of <name,value> pairs The 'default' ID is the first in the list

Definition at line 103 of file Photon.h.

References photonIDs_.

103 { return photonIDs_; }
std::vector< IdPair > photonIDs_
Definition: Photon.h:351

◆ photonIso()

float pat::Photon::photonIso ( ) const
inline

Returns the isolation calculated with only the gamma PFCandidates

Definition at line 133 of file Photon.h.

References reco::Photon::photonIso().

Referenced by Lepton.Lepton::absIsoFromEA(), PhotonValidatorMiniAOD::analyze(), and Photon.Photon::passPhotonIso().

133 { return reco::Photon::photonIso(); }
float photonIso() const
Definition: Photon.h:550

◆ preshowerClusters()

const std::vector<reco::CaloCluster>& pat::Photon::preshowerClusters ( ) const
inline

Definition at line 73 of file Photon.h.

References preshowerClusters_.

73 { return preshowerClusters_; }
std::vector< reco::CaloCluster > preshowerClusters_
Place to store electron&#39;s preshower clusters internally.
Definition: Photon.h:341

◆ puChargedHadronIso()

float pat::Photon::puChargedHadronIso ( ) const
inline

Returns the isolation calculated with only the pile-up charged hadron PFCandidates

Definition at line 136 of file Photon.h.

References pat::PfPUChargedHadronIso, and userIsolation().

float userIsolation(IsolationKeys key) const
Definition: Photon.h:142

◆ puppiChargedHadronIso()

float pat::Photon::puppiChargedHadronIso ( ) const
inline

Definition at line 165 of file Photon.h.

References puppiChargedHadronIso_.

165 { return puppiChargedHadronIso_; }
float puppiChargedHadronIso_
Definition: Photon.h:398

◆ puppiNeutralHadronIso()

float pat::Photon::puppiNeutralHadronIso ( ) const
inline

Definition at line 166 of file Photon.h.

References puppiNeutralHadronIso_.

166 { return puppiNeutralHadronIso_; }
float puppiNeutralHadronIso_
Definition: Photon.h:399

◆ puppiPhotonIso()

float pat::Photon::puppiPhotonIso ( ) const
inline

Definition at line 167 of file Photon.h.

References puppiPhotonIso_.

167 { return puppiPhotonIso_; }
float puppiPhotonIso_
Definition: Photon.h:400

◆ recHits()

const EcalRecHitCollection* pat::Photon::recHits ( void  ) const
inline

Definition at line 76 of file Photon.h.

References recHits_.

76 { return &recHits_; }
EcalRecHitCollection recHits_
Place to store electron&#39;s RecHits internally (5x5 around seed+ all RecHits)
Definition: Photon.h:349

◆ see()

float pat::Photon::see ( ) const
inline

Definition at line 263 of file Photon.h.

References see_.

263 { return see_; }
float see_
Definition: Photon.h:371

◆ seed()

reco::CaloClusterPtr pat::Photon::seed ( ) const

direct access to the seed cluster

◆ seedEnergy()

float pat::Photon::seedEnergy ( ) const
inline

input variables for regression energy corrections

Definition at line 245 of file Photon.h.

References seedEnergy_.

245 { return seedEnergy_; }
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:362

◆ sep()

float pat::Photon::sep ( ) const
inline

Definition at line 267 of file Photon.h.

References sep_.

267 { return sep_; }
float sep_
Definition: Photon.h:373

◆ setAssociatedPackedPFCandidates()

template<typename T >
void pat::Photon::setAssociatedPackedPFCandidates ( const edm::RefProd< pat::PackedCandidateCollection > &  refprod,
T  beginIndexItr,
T  endIndexItr 
)
inline

References to PFCandidates linked to this object (e.g. for isolation vetos or masking before jet reclustering)

Definition at line 317 of file Photon.h.

References associatedPackedFCandidateIndices_, and packedPFCandidates_.

319  {
320  packedPFCandidates_ = refprod;
322  associatedPackedFCandidateIndices_.insert(associatedPackedFCandidateIndices_.begin(), beginIndexItr, endIndexItr);
323  }
edm::RefProd< pat::PackedCandidateCollection > packedPFCandidates_
Definition: Photon.h:403
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:404

◆ setCryEta()

void pat::Photon::setCryEta ( float  c)
inline

Definition at line 303 of file Photon.h.

References HltBtagPostValidation_cff::c, and cryEta_.

Referenced by pat::PATPhotonProducer::produce().

◆ setCryPhi()

void pat::Photon::setCryPhi ( float  c)
inline

Definition at line 301 of file Photon.h.

References HltBtagPostValidation_cff::c, and cryPhi_.

Referenced by pat::PATPhotonProducer::produce().

◆ setE2nd()

void pat::Photon::setE2nd ( float  e)
inline

Definition at line 251 of file Photon.h.

References MillePedeFileConverter_cfg::e, and e2nd_.

Referenced by pat::PATPhotonProducer::produce().

◆ setE3x3()

void pat::Photon::setE3x3 ( float  e)
inline

Definition at line 253 of file Photon.h.

References MillePedeFileConverter_cfg::e, and e3x3_.

Referenced by pat::PATPhotonProducer::produce().

◆ setEBottom()

void pat::Photon::setEBottom ( float  e)
inline

◆ setEcalIso()

void pat::Photon::setEcalIso ( float  caloIso)
inline

Sets ecal isolation variable.

Definition at line 187 of file Photon.h.

References caloIso(), pat::EcalIso, and setIsolation().

float caloIso() const
Definition: Photon.h:120
void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:171

◆ setELeft()

void pat::Photon::setELeft ( float  e)
inline

Definition at line 259 of file Photon.h.

References MillePedeFileConverter_cfg::e, and eLeft_.

Referenced by pat::PATPhotonProducer::produce().

◆ setEMax()

void pat::Photon::setEMax ( float  e)
inline

Definition at line 249 of file Photon.h.

References MillePedeFileConverter_cfg::e, and eMax_.

Referenced by pat::PATPhotonProducer::produce().

◆ setERight()

void pat::Photon::setERight ( float  e)
inline

◆ setETop()

void pat::Photon::setETop ( float  e)
inline

Definition at line 255 of file Photon.h.

References MillePedeFileConverter_cfg::e, and eTop_.

Referenced by pat::PATPhotonProducer::produce().

◆ setGenPhoton()

void pat::Photon::setGenPhoton ( const reco::GenParticleRef gp,
bool  embed = false 
)
inline

method to set the generated photon

Definition at line 93 of file Photon.h.

References embed, and pat::PATObject< reco::Photon >::setGenParticleRef().

93 { setGenParticleRef(gp, embed); }
void setGenParticleRef(const reco::GenParticleRef &ref, bool embed=false)
Set the generator level particle reference.
Definition: PATObject.h:743
#define embed
Definition: AMPTWrapper.h:188

◆ setHasPixelSeed()

void pat::Photon::setHasPixelSeed ( bool  flag)
inline

Definition at line 242 of file Photon.h.

References RemoveAddSevLevel::flag, and hasPixelSeed_.

Referenced by pat::PATPhotonProducer::produce().

◆ setHcalIso()

void pat::Photon::setHcalIso ( float  caloIso)
inline

Sets hcal isolation variable.

Definition at line 189 of file Photon.h.

References caloIso(), pat::HcalIso, and setIsolation().

float caloIso() const
Definition: Photon.h:120
void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:171

◆ setIEta()

void pat::Photon::setIEta ( float  i)
inline

Definition at line 308 of file Photon.h.

References mps_fire::i, and iEta_.

Referenced by pat::PATPhotonProducer::produce().

308 { iEta_ = i; }
float iEta_
Definition: Photon.h:394

◆ setIPhi()

void pat::Photon::setIPhi ( float  i)
inline

Definition at line 306 of file Photon.h.

References mps_fire::i, and iPhi_.

Referenced by pat::PATPhotonProducer::produce().

306 { iPhi_ = i; }
float iPhi_
Definition: Photon.h:395

◆ setIsoDeposit()

void pat::Photon::setIsoDeposit ( IsolationKeys  key,
const IsoDeposit dep 
)
inline

Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.

Definition at line 217 of file Photon.h.

References isoDeposits_, and crabWrapper::key.

Referenced by ecalIsoDeposit(), hcalIsoDeposit(), pat::PATPhotonProducer::produce(), trackIsoDeposit(), and userIsoDeposit().

217  {
218  IsoDepositPairs::iterator it = isoDeposits_.begin(), ed = isoDeposits_.end();
219  for (; it != ed; ++it) {
220  if (it->first == key) {
221  it->second = dep;
222  return;
223  }
224  }
225  isoDeposits_.push_back(std::make_pair(key, dep));
226  }
IsoDepositPairs isoDeposits_
Definition: Photon.h:354

◆ setIsolation()

void pat::Photon::setIsolation ( IsolationKeys  key,
float  value 
)
inline

Sets the isolation variable for a specifc key. Note that you can't set isolation for a pseudo-key like CaloIso

Definition at line 171 of file Photon.h.

References Exception, isolations_, crabWrapper::key, and relativeConstraints::value.

Referenced by pat::PATPhotonProducer::produce(), setEcalIso(), setHcalIso(), setTrackIso(), and setUserIso().

171  {
172  if (key >= 0) {
173  if (size_t(key) >= isolations_.size())
174  isolations_.resize(key + 1, -1.0);
175  isolations_[key] = value;
176  } else {
177  throw cms::Exception("Illegal Argument")
178  << "The key for which you're setting isolation does not correspond "
179  << "to an individual isolation but to the sum of more independent isolations "
180  << "(e.g. Calo = Ecal + Hcal), so you can't SET the value, just GET it.\n"
181  << "Please set up each component independly.\n";
182  }
183  }
std::vector< float > isolations_
Definition: Photon.h:355

◆ setIsolationPUPPI()

void pat::Photon::setIsolationPUPPI ( float  chargedhadrons_,
float  neutralhadrons_,
float  photons_ 
)
inline

Sets PUPPI isolation.

Definition at line 193 of file Photon.h.

References puppiChargedHadronIso_, puppiNeutralHadronIso_, and puppiPhotonIso_.

Referenced by pat::PATPhotonProducer::produce().

193  {
194  puppiChargedHadronIso_ = chargedhadrons_;
195  puppiNeutralHadronIso_ = neutralhadrons_;
196  puppiPhotonIso_ = photons_;
197  }
float puppiChargedHadronIso_
Definition: Photon.h:398
float puppiNeutralHadronIso_
Definition: Photon.h:399
float puppiPhotonIso_
Definition: Photon.h:400

◆ setMaxDR()

void pat::Photon::setMaxDR ( float  m)
inline

◆ setMaxDRDEta()

void pat::Photon::setMaxDRDEta ( float  m)
inline

◆ setMaxDRDPhi()

void pat::Photon::setMaxDRDPhi ( float  m)
inline

◆ setMaxDRRawEnergy()

void pat::Photon::setMaxDRRawEnergy ( float  m)
inline

◆ setPassElectronVeto()

void pat::Photon::setPassElectronVeto ( bool  flag)
inline

Definition at line 239 of file Photon.h.

References RemoveAddSevLevel::flag, and passElectronVeto_.

Referenced by pat::PATPhotonProducer::produce().

239 { passElectronVeto_ = flag; }
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:358

◆ setPhotonIDs()

void pat::Photon::setPhotonIDs ( const std::vector< IdPair > &  ids)
inline

Store multiple photon ID values, discarding existing ones The first one in the list becomes the 'default' photon id

Definition at line 106 of file Photon.h.

References photonIDs_.

Referenced by pat::PATPhotonProducer::produce().

106 { photonIDs_ = ids; }
std::vector< IdPair > photonIDs_
Definition: Photon.h:351

◆ setSee()

void pat::Photon::setSee ( float  s)
inline

Definition at line 264 of file Photon.h.

References alignCSCRings::s, and see_.

Referenced by pat::PATPhotonProducer::produce().

264 { see_ = s; }
float see_
Definition: Photon.h:371

◆ setSeedEnergy()

void pat::Photon::setSeedEnergy ( float  e)
inline

Definition at line 246 of file Photon.h.

References MillePedeFileConverter_cfg::e, and seedEnergy_.

Referenced by pat::PATPhotonProducer::produce().

246 { seedEnergy_ = e; }
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:362

◆ setSep()

void pat::Photon::setSep ( float  s)
inline

Definition at line 268 of file Photon.h.

References alignCSCRings::s, and sep_.

Referenced by pat::PATPhotonProducer::produce().

268 { sep_ = s; }
float sep_
Definition: Photon.h:373

◆ setSpp()

void pat::Photon::setSpp ( float  s)
inline

Definition at line 266 of file Photon.h.

References alignCSCRings::s, and spp_.

Referenced by pat::PATPhotonProducer::produce().

266 { spp_ = s; }
float spp_
Definition: Photon.h:372

◆ setSubClusDEta1()

void pat::Photon::setSubClusDEta1 ( float  s)
inline

Definition at line 294 of file Photon.h.

References alignCSCRings::s, and subClusDEta1_.

Referenced by pat::PATPhotonProducer::produce().

294 { subClusDEta1_ = s; }
float subClusDEta1_
Definition: Photon.h:388

◆ setSubClusDEta2()

void pat::Photon::setSubClusDEta2 ( float  s)
inline

Definition at line 296 of file Photon.h.

References alignCSCRings::s, and subClusDEta2_.

Referenced by pat::PATPhotonProducer::produce().

296 { subClusDEta2_ = s; }
float subClusDEta2_
Definition: Photon.h:389

◆ setSubClusDEta3()

void pat::Photon::setSubClusDEta3 ( float  s)
inline

Definition at line 298 of file Photon.h.

References alignCSCRings::s, and subClusDEta3_.

Referenced by pat::PATPhotonProducer::produce().

298 { subClusDEta3_ = s; }
float subClusDEta3_
Definition: Photon.h:390

◆ setSubClusDPhi1()

void pat::Photon::setSubClusDPhi1 ( float  s)
inline

Definition at line 287 of file Photon.h.

References alignCSCRings::s, and subClusDPhi1_.

Referenced by pat::PATPhotonProducer::produce().

287 { subClusDPhi1_ = s; }
float subClusDPhi1_
Definition: Photon.h:384

◆ setSubClusDPhi2()

void pat::Photon::setSubClusDPhi2 ( float  s)
inline

Definition at line 289 of file Photon.h.

References alignCSCRings::s, and subClusDPhi2_.

Referenced by pat::PATPhotonProducer::produce().

289 { subClusDPhi2_ = s; }
float subClusDPhi2_
Definition: Photon.h:385

◆ setSubClusDPhi3()

void pat::Photon::setSubClusDPhi3 ( float  s)
inline

Definition at line 291 of file Photon.h.

References alignCSCRings::s, and subClusDPhi3_.

Referenced by pat::PATPhotonProducer::produce().

291 { subClusDPhi3_ = s; }
float subClusDPhi3_
Definition: Photon.h:386

◆ setSubClusRawE1()

void pat::Photon::setSubClusRawE1 ( float  s)
inline

Definition at line 280 of file Photon.h.

References alignCSCRings::s, and subClusRawE1_.

Referenced by pat::PATPhotonProducer::produce().

280 { subClusRawE1_ = s; }
float subClusRawE1_
Definition: Photon.h:380

◆ setSubClusRawE2()

void pat::Photon::setSubClusRawE2 ( float  s)
inline

Definition at line 282 of file Photon.h.

References alignCSCRings::s, and subClusRawE2_.

Referenced by pat::PATPhotonProducer::produce().

282 { subClusRawE2_ = s; }
float subClusRawE2_
Definition: Photon.h:381

◆ setSubClusRawE3()

void pat::Photon::setSubClusRawE3 ( float  s)
inline

Definition at line 284 of file Photon.h.

References alignCSCRings::s, and subClusRawE3_.

Referenced by pat::PATPhotonProducer::produce().

284 { subClusRawE3_ = s; }
float subClusRawE3_
Definition: Photon.h:382

◆ setTrackIso()

void pat::Photon::setTrackIso ( float  trackIso)
inline

Sets tracker isolation variable.

Definition at line 185 of file Photon.h.

References setIsolation(), pat::TrackIso, and trackIso().

float trackIso() const
Definition: Photon.h:111
void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:171

◆ setUserIso()

void pat::Photon::setUserIso ( float  value,
uint8_t  index = 0 
)
inline

Sets user isolation variable index.

Definition at line 191 of file Photon.h.

References setIsolation(), and pat::UserBaseIso.

IsolationKeys
Enum defining isolation keys.
Definition: Isolation.h:9
void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:171
Definition: value.py:1
unsigned int index
Definition: LeafCandidate.h:31

◆ sourceCandidatePtr()

reco::CandidatePtr pat::Photon::sourceCandidatePtr ( size_type  i) const
overridevirtual

get the source candidate pointer with index i

Reimplemented from reco::LeafCandidate.

◆ spp()

float pat::Photon::spp ( ) const
inline

Definition at line 265 of file Photon.h.

References spp_.

265 { return spp_; }
float spp_
Definition: Photon.h:372

◆ subClusDEta1()

float pat::Photon::subClusDEta1 ( ) const
inline

Definition at line 293 of file Photon.h.

References subClusDEta1_.

293 { return subClusDEta1_; }
float subClusDEta1_
Definition: Photon.h:388

◆ subClusDEta2()

float pat::Photon::subClusDEta2 ( ) const
inline

Definition at line 295 of file Photon.h.

References subClusDEta2_.

295 { return subClusDEta2_; }
float subClusDEta2_
Definition: Photon.h:389

◆ subClusDEta3()

float pat::Photon::subClusDEta3 ( ) const
inline

Definition at line 297 of file Photon.h.

References subClusDEta3_.

297 { return subClusDEta3_; }
float subClusDEta3_
Definition: Photon.h:390

◆ subClusDPhi1()

float pat::Photon::subClusDPhi1 ( ) const
inline

Definition at line 286 of file Photon.h.

References subClusDPhi1_.

286 { return subClusDPhi1_; }
float subClusDPhi1_
Definition: Photon.h:384

◆ subClusDPhi2()

float pat::Photon::subClusDPhi2 ( ) const
inline

Definition at line 288 of file Photon.h.

References subClusDPhi2_.

288 { return subClusDPhi2_; }
float subClusDPhi2_
Definition: Photon.h:385

◆ subClusDPhi3()

float pat::Photon::subClusDPhi3 ( ) const
inline

Definition at line 290 of file Photon.h.

References subClusDPhi3_.

290 { return subClusDPhi3_; }
float subClusDPhi3_
Definition: Photon.h:386

◆ subClusRawE1()

float pat::Photon::subClusRawE1 ( ) const
inline

Definition at line 279 of file Photon.h.

References subClusRawE1_.

279 { return subClusRawE1_; }
float subClusRawE1_
Definition: Photon.h:380

◆ subClusRawE2()

float pat::Photon::subClusRawE2 ( ) const
inline

Definition at line 281 of file Photon.h.

References subClusRawE2_.

281 { return subClusRawE2_; }
float subClusRawE2_
Definition: Photon.h:381

◆ subClusRawE3()

float pat::Photon::subClusRawE3 ( ) const
inline

Definition at line 283 of file Photon.h.

References subClusRawE3_.

283 { return subClusRawE3_; }
float subClusRawE3_
Definition: Photon.h:382

◆ superCluster()

reco::SuperClusterRef pat::Photon::superCluster ( ) const
overridevirtual

override the superCluster method from CaloJet, to access the internal storage of the supercluster

Reimplemented from reco::Photon.

Referenced by PhotonValidatorMiniAOD::analyze(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), and Electron.Electron::mvaIDTight().

◆ trackIso()

float pat::Photon::trackIso ( ) const
inline

Returns the summed track pt in a cone of deltaR<0.4 including the region of the reconstructed photon

Definition at line 111 of file Photon.h.

References reco::Photon::trkSumPtSolidConeDR04().

Referenced by setTrackIso().

111 { return trkSumPtSolidConeDR04(); }
float trkSumPtSolidConeDR04() const
Definition: Photon.h:495

◆ trackIsoDeposit() [1/2]

const IsoDeposit* pat::Photon::trackIsoDeposit ( ) const
inline

Return the tracker IsoDeposit.

Definition at line 209 of file Photon.h.

References isoDeposit(), and pat::TrackIso.

209 { return isoDeposit(pat::TrackIso); }
const IsoDeposit * isoDeposit(IsolationKeys key) const
Returns the IsoDeposit associated with some key, or a null pointer if it is not available.
Definition: Photon.h:201

◆ trackIsoDeposit() [2/2]

void pat::Photon::trackIsoDeposit ( const IsoDeposit dep)
inline

Sets tracker IsoDeposit.

Definition at line 228 of file Photon.h.

References setIsoDeposit(), and pat::TrackIso.

228 { setIsoDeposit(pat::TrackIso, dep); }
void setIsoDeposit(IsolationKeys key, const IsoDeposit &dep)
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
Definition: Photon.h:217

◆ userIso()

float pat::Photon::userIso ( uint8_t  index = 0) const
inline

Returns a user defined isolation value.

Definition at line 139 of file Photon.h.

References pat::UserBaseIso, and userIsolation().

IsolationKeys
Enum defining isolation keys.
Definition: Isolation.h:9
float userIsolation(IsolationKeys key) const
Definition: Photon.h:142
unsigned int index
Definition: LeafCandidate.h:31

◆ userIsoDeposit() [1/2]

const IsoDeposit* pat::Photon::userIsoDeposit ( uint8_t  index = 0) const
inline

Return a specified user-level IsoDeposit.

Definition at line 215 of file Photon.h.

References isoDeposit(), and pat::UserBaseIso.

const IsoDeposit * isoDeposit(IsolationKeys key) const
Returns the IsoDeposit associated with some key, or a null pointer if it is not available.
Definition: Photon.h:201
IsolationKeys
Enum defining isolation keys.
Definition: Isolation.h:9
unsigned int index
Definition: LeafCandidate.h:31

◆ userIsoDeposit() [2/2]

void pat::Photon::userIsoDeposit ( const IsoDeposit dep,
uint8_t  index = 0 
)
inline

Sets user-level IsoDeposit.

Definition at line 234 of file Photon.h.

References setIsoDeposit(), and pat::UserBaseIso.

234  {
236  }
IsolationKeys
Enum defining isolation keys.
Definition: Isolation.h:9
void setIsoDeposit(IsolationKeys key, const IsoDeposit &dep)
Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten.
Definition: Photon.h:217
unsigned int index
Definition: LeafCandidate.h:31

◆ userIsolation()

float pat::Photon::userIsolation ( IsolationKeys  key) const
inline

Returns the isolation variable for a specifc key (or pseudo-key like CaloIso), or -1.0 if not available

Definition at line 142 of file Photon.h.

References pat::CaloIso, pat::EcalIso, pat::HcalIso, isolations_, and crabWrapper::key.

Referenced by patParticleIso(), puChargedHadronIso(), and userIso().

142  {
143  if (key >= 0) {
144  //if (key >= isolations_.size()) throw cms::Excepton("Missing Data")
145  //<< "Isolation corresponding to key " << key
146  //<< " was not stored for this particle.";
147  if (size_t(key) >= isolations_.size())
148  return -1.0;
149  return isolations_[key];
150  } else
151  switch (key) {
152  case pat::CaloIso:
153  //if (isolations_.size() <= pat::HcalIso) throw cms::Excepton("Missing Data")
154  //<< "CalIsoo Isolation was not stored for this particle.";
155  if (isolations_.size() <= pat::HcalIso)
156  return -1.0;
158  default:
159  return -1.0;
160  //throw cms::Excepton("Missing Data") << "Isolation corresponding to key "
161  //<< key << " was not stored for this particle.";
162  }
163  }
std::vector< float > isolations_
Definition: Photon.h:355

Friends And Related Function Documentation

◆ PATPhotonSlimmer

friend class PATPhotonSlimmer
friend

Definition at line 330 of file Photon.h.

◆ reco::operator<<

std::ostream& reco::operator<< ( std::ostream &  out,
const pat::Photon obj 
)
friend

pipe operator (introduced to use pat::Photon with PFTopProjectors)

Member Data Documentation

◆ associatedPackedFCandidateIndices_

std::vector<uint16_t> pat::Photon::associatedPackedFCandidateIndices_
protected

Definition at line 404 of file Photon.h.

Referenced by numberOfSourceCandidatePtrs(), and setAssociatedPackedPFCandidates().

◆ basicClusters_

std::vector<reco::CaloCluster> pat::Photon::basicClusters_
protected

Place to store electron's basic clusters internally.

Definition at line 339 of file Photon.h.

Referenced by basicClusters().

◆ cryEta_

float pat::Photon::cryEta_
protected

Definition at line 392 of file Photon.h.

Referenced by cryEta(), and setCryEta().

◆ cryPhi_

float pat::Photon::cryPhi_
protected

Definition at line 393 of file Photon.h.

Referenced by cryPhi(), and setCryPhi().

◆ e2nd_

float pat::Photon::e2nd_
protected

Definition at line 364 of file Photon.h.

Referenced by e2nd(), and setE2nd().

◆ e3x3_

float pat::Photon::e3x3_
protected

Definition at line 365 of file Photon.h.

Referenced by e3x3(), and setE3x3().

◆ eBottom_

float pat::Photon::eBottom_
protected

Definition at line 367 of file Photon.h.

Referenced by eBottom(), and setEBottom().

◆ eLeft_

float pat::Photon::eLeft_
protected

Definition at line 368 of file Photon.h.

Referenced by eLeft(), and setELeft().

◆ eMax_

float pat::Photon::eMax_
protected

Definition at line 363 of file Photon.h.

Referenced by eMax(), and setEMax().

◆ embeddedRecHits_

bool pat::Photon::embeddedRecHits_
protected

True if RecHits stored internally.

Definition at line 347 of file Photon.h.

◆ embeddedSeedCluster_

bool pat::Photon::embeddedSeedCluster_
protected

True if seed cluster is stored internally.

Definition at line 343 of file Photon.h.

◆ embeddedSuperCluster_

bool pat::Photon::embeddedSuperCluster_
protected

Definition at line 334 of file Photon.h.

◆ eRight_

float pat::Photon::eRight_
protected

Definition at line 369 of file Photon.h.

Referenced by eRight(), and setERight().

◆ eTop_

float pat::Photon::eTop_
protected

Definition at line 366 of file Photon.h.

Referenced by eTop(), and setETop().

◆ hasPixelSeed_

bool pat::Photon::hasPixelSeed_
protected

Definition at line 359 of file Photon.h.

Referenced by hasPixelSeed(), and setHasPixelSeed().

◆ iEta_

float pat::Photon::iEta_
protected

Definition at line 394 of file Photon.h.

Referenced by iEta(), and setIEta().

◆ iPhi_

float pat::Photon::iPhi_
protected

Definition at line 395 of file Photon.h.

Referenced by iPhi(), and setIPhi().

◆ isoDeposits_

IsoDepositPairs pat::Photon::isoDeposits_
protected

Definition at line 354 of file Photon.h.

Referenced by isoDeposit(), and setIsoDeposit().

◆ isolations_

std::vector<float> pat::Photon::isolations_
protected

Definition at line 355 of file Photon.h.

Referenced by setIsolation(), and userIsolation().

◆ maxDR_

float pat::Photon::maxDR_
protected

Definition at line 375 of file Photon.h.

Referenced by maxDR(), and setMaxDR().

◆ maxDRDEta_

float pat::Photon::maxDRDEta_
protected

Definition at line 377 of file Photon.h.

Referenced by maxDRDEta(), and setMaxDRDEta().

◆ maxDRDPhi_

float pat::Photon::maxDRDPhi_
protected

Definition at line 376 of file Photon.h.

Referenced by maxDRDPhi(), and setMaxDRDPhi().

◆ maxDRRawEnergy_

float pat::Photon::maxDRRawEnergy_
protected

Definition at line 378 of file Photon.h.

Referenced by maxDRRawEnergy(), and setMaxDRRawEnergy().

◆ packedPFCandidates_

edm::RefProd<pat::PackedCandidateCollection> pat::Photon::packedPFCandidates_
protected

Definition at line 403 of file Photon.h.

Referenced by setAssociatedPackedPFCandidates().

◆ passElectronVeto_

bool pat::Photon::passElectronVeto_
protected

-— conversion veto -—

Definition at line 358 of file Photon.h.

Referenced by passElectronVeto(), and setPassElectronVeto().

◆ photonIDs_

std::vector<IdPair> pat::Photon::photonIDs_
protected

Definition at line 351 of file Photon.h.

Referenced by photonIDs(), and setPhotonIDs().

◆ preshowerClusters_

std::vector<reco::CaloCluster> pat::Photon::preshowerClusters_
protected

Place to store electron's preshower clusters internally.

Definition at line 341 of file Photon.h.

Referenced by preshowerClusters().

◆ puppiChargedHadronIso_

float pat::Photon::puppiChargedHadronIso_
protected

Definition at line 398 of file Photon.h.

Referenced by puppiChargedHadronIso(), and setIsolationPUPPI().

◆ puppiNeutralHadronIso_

float pat::Photon::puppiNeutralHadronIso_
protected

Definition at line 399 of file Photon.h.

Referenced by puppiNeutralHadronIso(), and setIsolationPUPPI().

◆ puppiPhotonIso_

float pat::Photon::puppiPhotonIso_
protected

Definition at line 400 of file Photon.h.

Referenced by puppiPhotonIso(), and setIsolationPUPPI().

◆ recHits_

EcalRecHitCollection pat::Photon::recHits_
protected

Place to store electron's RecHits internally (5x5 around seed+ all RecHits)

Definition at line 349 of file Photon.h.

Referenced by recHits().

◆ see_

float pat::Photon::see_
protected

Definition at line 371 of file Photon.h.

Referenced by see(), and setSee().

◆ seedCluster_

std::vector<reco::CaloCluster> pat::Photon::seedCluster_
protected

Place to store electron's seed cluster internally.

Definition at line 345 of file Photon.h.

◆ seedEnergy_

float pat::Photon::seedEnergy_
protected

-— input variables for regression energy corrections -—

Definition at line 362 of file Photon.h.

Referenced by seedEnergy(), and setSeedEnergy().

◆ sep_

float pat::Photon::sep_
protected

Definition at line 373 of file Photon.h.

Referenced by sep(), and setSep().

◆ spp_

float pat::Photon::spp_
protected

Definition at line 372 of file Photon.h.

Referenced by setSpp(), and spp().

◆ subClusDEta1_

float pat::Photon::subClusDEta1_
protected

Definition at line 388 of file Photon.h.

Referenced by setSubClusDEta1(), and subClusDEta1().

◆ subClusDEta2_

float pat::Photon::subClusDEta2_
protected

Definition at line 389 of file Photon.h.

Referenced by setSubClusDEta2(), and subClusDEta2().

◆ subClusDEta3_

float pat::Photon::subClusDEta3_
protected

Definition at line 390 of file Photon.h.

Referenced by setSubClusDEta3(), and subClusDEta3().

◆ subClusDPhi1_

float pat::Photon::subClusDPhi1_
protected

Definition at line 384 of file Photon.h.

Referenced by setSubClusDPhi1(), and subClusDPhi1().

◆ subClusDPhi2_

float pat::Photon::subClusDPhi2_
protected

Definition at line 385 of file Photon.h.

Referenced by setSubClusDPhi2(), and subClusDPhi2().

◆ subClusDPhi3_

float pat::Photon::subClusDPhi3_
protected

Definition at line 386 of file Photon.h.

Referenced by setSubClusDPhi3(), and subClusDPhi3().

◆ subClusRawE1_

float pat::Photon::subClusRawE1_
protected

Definition at line 380 of file Photon.h.

Referenced by setSubClusRawE1(), and subClusRawE1().

◆ subClusRawE2_

float pat::Photon::subClusRawE2_
protected

Definition at line 381 of file Photon.h.

Referenced by setSubClusRawE2(), and subClusRawE2().

◆ subClusRawE3_

float pat::Photon::subClusRawE3_
protected

Definition at line 382 of file Photon.h.

Referenced by setSubClusRawE3(), and subClusRawE3().

◆ superCluster_

std::vector<reco::SuperCluster> pat::Photon::superCluster_
protected

Definition at line 335 of file Photon.h.

◆ superClusterRelinked_

edm::AtomicPtrCache<std::vector<reco::SuperCluster> > pat::Photon::superClusterRelinked_
protected

Place to temporarily store the electron's supercluster after relinking the seed to it.

Definition at line 337 of file Photon.h.