CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::PackedCandidateCollection
associatedPackedPFCandidates () 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
 
virtual Photonclone () const
 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
 get the number of non-null PFCandidates More...
 
float particleIso () const
 
bool passElectronVeto () const
 vertex fit method More...
 
 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
 
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
 
void setAssociatedPackedPFCandidates (const edm::RefVector< pat::PackedCandidateCollection > &refvector)
 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 setMaxDR (float m)
 
void setMaxDRDEta (float m)
 
void setMaxDRDPhi (float m)
 
void setMaxDRRawEnergy (float m)
 
void setPackedPFCandidateCollection (const edm::RefProd< pat::PackedCandidateCollection > &refprod)
 References to PFCandidates (e.g. to recompute isolation) More...
 
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
 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 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
 
virtual ~Photon ()
 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)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data)
 
void addUserFloat (const std::string &label, float data)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data)
 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
TriggerObjectStandAloneCollection
triggerObjectMatches () 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...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
virtual ~PATObject ()
 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 chargedHadronIsoWrongVtx () 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 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
 
P4type getCandidateP4type () const
 
float getCorrectedEnergy (P4type type) const
 
float getCorrectedEnergyError (P4type type) const
 
float hadronicDepth1OverEm () const
 the hadronic release in depth1 over electromagnetic fraction More...
 
float hadronicDepth2OverEm () const
 the hadronic release in depth2 over electromagnetic fraction More...
 
float hadronicOverEm () const
 the total hadronic over electromagnetic fraction More...
 
float hadTowDepth1OverEm () const
 the ration of hadronic energy in towers depth1 behind the BCs in the SC and the SC energy More...
 
float hadTowDepth2OverEm () const
 the ration of hadronic energy in towers depth2 behind the BCs in the SC and the SC energy More...
 
float hadTowOverEm () const
 the ration of hadronic energy in towers behind the BCs in the SC and the SC energy 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 hcalDepth1TowerSumEtBcConeDR03 () const
 Hcal-Depth1 isolation sum subtracting the hadronic energy in towers behind the BCs in the SC. More...
 
float hcalDepth1TowerSumEtBcConeDR04 () const
 Hcal-Depth1 isolation sum subtracting the hadronic energy in towers behind the BCs in the SC. More...
 
float hcalDepth1TowerSumEtConeDR03 () const
 Hcal-Depth1 isolation sum. More...
 
float hcalDepth1TowerSumEtConeDR04 () const
 Hcal-Depth1 isolation sum. More...
 
float hcalDepth2TowerSumEtBcConeDR03 () const
 Hcal-Depth2 isolation sum subtracting the hadronic energy in towers behind the BCs in the SC. More...
 
float hcalDepth2TowerSumEtBcConeDR04 () const
 Hcal-Depth2 isolation sum subtracting the hadronic energy in towers behind the BCs in the SC. More...
 
float hcalDepth2TowerSumEtConeDR03 () const
 Hcal-Depth2 isolation sum. More...
 
float hcalDepth2TowerSumEtConeDR04 () const
 Hcal-Depth2 isolation sum. More...
 
const std::vector
< CaloTowerDetId > & 
hcalTowersBehindClusters () const
 
float hcalTowerSumEtBcConeDR03 () const
 Hcal isolation sum subtracting the hadronic energy in towers behind the BCs in the SC. More...
 
float hcalTowerSumEtBcConeDR04 () const
 Hcal isolation sum subtracting the hadronic energy in towers behind the BCs in the SC. More...
 
float hcalTowerSumEtConeDR03 () const
 Hcal isolation sum. More...
 
float hcalTowerSumEtConeDR04 () const
 Hcal isolation sum. More...
 
bool isEB () const
 
bool isEBEEGap () const
 true if photon is in boundary between EB and EE More...
 
bool isEBEtaGap () const
 
bool isEBGap () const
 true if photon is in EB, and inside the boundaries in super crystals/modules More...
 
bool isEBPhiGap () const
 
bool isEE () const
 
bool isEEDeeGap () const
 
bool isEEGap () const
 true if photon is in EE, and inside the boundaries in supercrystal/D More...
 
bool isEERingGap () const
 
bool isPFlowPhoton () const
 Retrieve photonCore attributes. More...
 
bool isPhoton () const
 Implement Candidate method for particle species. More...
 
bool isStandardPhoton () const
 
float maxEnergyXtal () const
 
float 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
 
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 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
 
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 setShowerShapeVariables (const ShowerShape &a)
 
void setVertex (const Point &vertex)
 set primary event vertex used to define photon direction More...
 
float sigmaEtaEta () const
 
float sigmaIetaIeta () const
 
float sumChargedParticlePt () const
 
float sumNeutralHadronEtHighThreshold () const
 
float sumPhotonEtHighThreshold () const
 
float sumPUPt () const
 
float trkSumPtHollowConeDR03 () const
 
float trkSumPtHollowConeDR04 () const
 
float trkSumPtSolidConeDR03 () const
 
float trkSumPtSolidConeDR04 () const
 
- Public Member Functions inherited from reco::RecoCandidate
virtual const TrackbestTrack () const
 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...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
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...
 
virtual ~RecoCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const GCC11_FINAL
 
virtual int charge () const GCC11_FINAL
 electric charge More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const GCC11_FINAL
 energy More...
 
virtual double et () const GCC11_FINAL
 transverse energy More...
 
virtual float eta () const GCC11_FINAL
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
template<typename P4 >
 LeafCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from Any values More...
 
 LeafCandidate (Charge q, const PtEtaPhiMass &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, bool massless, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, float imass, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const GCC11_FINAL
 is long lived? More...
 
virtual float mass () const GCC11_FINAL
 mass More...
 
virtual bool massConstraint () const GCC11_FINAL
 do mass constraint? More...
 
virtual float massSqr () const GCC11_FINAL
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const GCC11_FINAL
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const GCC11_FINAL
 transverse mass More...
 
virtual double mtSqr () const GCC11_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...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual double p () const GCC11_FINAL
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const GCC11_FINAL
 four-momentum Lorentz vector More...
 
virtual int pdgId () const GCC11_FINAL
 PDG identifier. More...
 
virtual float phi () const GCC11_FINAL
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const GCC11_FINAL
 four-momentum Lorentz vector More...
 
virtual float pt () const GCC11_FINAL
 transverse momentum More...
 
virtual double px () const GCC11_FINAL
 x coordinate of momentum vector More...
 
virtual double py () const GCC11_FINAL
 y coordinate of momentum vector More...
 
virtual double pz () const GCC11_FINAL
 z coordinate of momentum vector More...
 
virtual double rapidity () const GCC11_FINAL
 rapidity More...
 
virtual void setCharge (Charge q) GCC11_FINAL
 set electric charge More...
 
virtual void setLongLived () GCC11_FINAL
 set long lived flag More...
 
virtual void setMass (double m) GCC11_FINAL
 set particle mass More...
 
virtual void setMassConstraint () GCC11_FINAL
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4) GCC11_FINAL
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) GCC11_FINAL
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) GCC11_FINAL
 
virtual void setPz (double pz) GCC11_FINAL
 
virtual void setStatus (int status) GCC11_FINAL
 set status word More...
 
virtual void setThreeCharge (Charge qx3) GCC11_FINAL
 set electric charge More...
 
virtual int status () const GCC11_FINAL
 status word More...
 
virtual double theta () const GCC11_FINAL
 momentum polar angle More...
 
virtual int threeCharge () const GCC11_FINAL
 electric charge More...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const GCC11_FINAL
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const GCC11_FINAL
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

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::PackedCandidateCollection
packedPFCandidates_
 
bool passElectronVeto_
 -— conversion veto -— More...
 
std::vector< IdPairphotonIDs_
 
std::vector< reco::CaloClusterpreshowerClusters_
 Place to store electron's preshower clusters internally. More...
 
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::LookupTableRecord
efficiencyValues_
 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::CandKinResolution
kinResolutions_
 Kinematic resolutions. More...
 
std::vector
< reco::CandidatePtrVector
overlapItems_
 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_
 
- Protected Attributes inherited from reco::LeafCandidate
bool cacheCartesianFixed_
 
bool cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

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 Member Functions inherited from reco::LeafCandidate
static double dmass (GlobalVector v, double e)
 
static double magd (GlobalVector v)
 
- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 

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

Member Typedef Documentation

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

Definition at line 51 of file Photon.h.

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

Definition at line 335 of file Photon.h.

Constructor & Destructor Documentation

Photon::Photon ( )

default constructor

Definition at line 12 of file Photon.cc.

Referenced by clone().

12  :
13  PATObject<reco::Photon>(reco::Photon()),
14  embeddedSuperCluster_(false),
15  embeddedSeedCluster_(false),
16  embeddedRecHits_(false),
17  passElectronVeto_(false),
18  hasPixelSeed_(false),
19  seedEnergy_(0.0),
20  eMax_(0.0),
21  e2nd_(0.0),
22  e3x3_(0.0),
23  eTop_(0.0),
24  eBottom_(0.0),
25  eLeft_(0.0),
26  eRight_(0.0),
27  see_(-999.),
28  spp_(-999.),
29  sep_(-999.),
30  maxDR_(-999.),
31  maxDRDPhi_(-999.),
32  maxDRDEta_(-999.),
33  maxDRRawEnergy_(-999.),
34  subClusRawE1_(-999.),
35  subClusRawE2_(-999.),
36  subClusRawE3_(-999.),
37  subClusDPhi1_(-999.),
38  subClusDPhi2_(-999.),
39  subClusDPhi3_(-999.),
40  subClusDEta1_(-999.),
41  subClusDEta2_(-999.),
42  subClusDEta3_(-999.),
43  cryEta_(-999.),
44  cryPhi_(-999),
45  iEta_(-999),
46  iPhi_(-999)
47 {
48 }
float subClusDEta3_
Definition: Photon.h:372
float subClusDPhi1_
Definition: Photon.h:366
float cryEta_
Definition: Photon.h:374
float eLeft_
Definition: Photon.h:350
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:340
float sep_
Definition: Photon.h:355
float spp_
Definition: Photon.h:354
float eRight_
Definition: Photon.h:351
bool hasPixelSeed_
Definition: Photon.h:341
float see_
Definition: Photon.h:353
float subClusDPhi3_
Definition: Photon.h:368
float subClusRawE2_
Definition: Photon.h:363
float subClusRawE1_
Definition: Photon.h:362
float subClusRawE3_
Definition: Photon.h:364
float eMax_
Definition: Photon.h:345
bool embeddedSuperCluster_
Definition: Photon.h:316
float e2nd_
Definition: Photon.h:346
float iEta_
Definition: Photon.h:376
bool embeddedRecHits_
True if RecHits stored internally.
Definition: Photon.h:329
float e3x3_
Definition: Photon.h:347
float cryPhi_
Definition: Photon.h:375
float subClusDEta2_
Definition: Photon.h:371
float subClusDEta1_
Definition: Photon.h:370
float eBottom_
Definition: Photon.h:349
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:344
float subClusDPhi2_
Definition: Photon.h:367
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
float iPhi_
Definition: Photon.h:377
float maxDRDEta_
Definition: Photon.h:359
float maxDRRawEnergy_
Definition: Photon.h:360
float eTop_
Definition: Photon.h:348
float maxDRDPhi_
Definition: Photon.h:358
float maxDR_
Definition: Photon.h:357
Photon::Photon ( const reco::Photon aPhoton)

constructor from a reco photon

constructor from reco::Photon

Definition at line 51 of file Photon.cc.

51  :
52  PATObject<reco::Photon>(aPhoton),
53  embeddedSuperCluster_(false),
54  embeddedSeedCluster_(false),
55  embeddedRecHits_(false),
56  passElectronVeto_(false),
57  hasPixelSeed_(false),
58  seedEnergy_(0.0),
59  eMax_(0.0),
60  e2nd_(0.0),
61  e3x3_(0.0),
62  eTop_(0.0),
63  eBottom_(0.0),
64  eLeft_(0.0),
65  eRight_(0.0),
66  see_(-999.),
67  spp_(-999.),
68  sep_(-999.),
69  maxDR_(-999.),
70  maxDRDPhi_(-999.),
71  maxDRDEta_(-999.),
72  maxDRRawEnergy_(-999.),
73  subClusRawE1_(-999.),
74  subClusRawE2_(-999.),
75  subClusRawE3_(-999.),
76  subClusDPhi1_(-999.),
77  subClusDPhi2_(-999.),
78  subClusDPhi3_(-999.),
79  subClusDEta1_(-999.),
80  subClusDEta2_(-999.),
81  subClusDEta3_(-999.),
82  cryEta_(-999.),
83  cryPhi_(-999),
84  iEta_(-999),
85  iPhi_(-999)
86 {
87 }
float subClusDEta3_
Definition: Photon.h:372
float subClusDPhi1_
Definition: Photon.h:366
float cryEta_
Definition: Photon.h:374
float eLeft_
Definition: Photon.h:350
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:340
float sep_
Definition: Photon.h:355
float spp_
Definition: Photon.h:354
float eRight_
Definition: Photon.h:351
bool hasPixelSeed_
Definition: Photon.h:341
float see_
Definition: Photon.h:353
float subClusDPhi3_
Definition: Photon.h:368
float subClusRawE2_
Definition: Photon.h:363
float subClusRawE1_
Definition: Photon.h:362
float subClusRawE3_
Definition: Photon.h:364
float eMax_
Definition: Photon.h:345
bool embeddedSuperCluster_
Definition: Photon.h:316
float e2nd_
Definition: Photon.h:346
float iEta_
Definition: Photon.h:376
bool embeddedRecHits_
True if RecHits stored internally.
Definition: Photon.h:329
float e3x3_
Definition: Photon.h:347
float cryPhi_
Definition: Photon.h:375
float subClusDEta2_
Definition: Photon.h:371
float subClusDEta1_
Definition: Photon.h:370
float eBottom_
Definition: Photon.h:349
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:344
float subClusDPhi2_
Definition: Photon.h:367
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
float iPhi_
Definition: Photon.h:377
float maxDRDEta_
Definition: Photon.h:359
float maxDRRawEnergy_
Definition: Photon.h:360
float eTop_
Definition: Photon.h:348
float maxDRDPhi_
Definition: Photon.h:358
float maxDR_
Definition: Photon.h:357
Photon::Photon ( const edm::RefToBase< reco::Photon > &  aPhotonRef)

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

constructor from ref to reco::Photon

Definition at line 90 of file Photon.cc.

90  :
91  PATObject<reco::Photon>(aPhotonRef),
92  embeddedSuperCluster_(false),
93  embeddedSeedCluster_(false),
94  embeddedRecHits_(false),
95  passElectronVeto_(false),
96  hasPixelSeed_(false),
97  seedEnergy_(0.0),
98  eMax_(0.0),
99  e2nd_(0.0),
100  e3x3_(0.0),
101  eTop_(0.0),
102  eBottom_(0.0),
103  eLeft_(0.0),
104  eRight_(0.0),
105  see_(-999.),
106  spp_(-999.),
107  sep_(-999.),
108  maxDR_(-999.),
109  maxDRDPhi_(-999.),
110  maxDRDEta_(-999.),
111  maxDRRawEnergy_(-999.),
112  subClusRawE1_(-999.),
113  subClusRawE2_(-999.),
114  subClusRawE3_(-999.),
115  subClusDPhi1_(-999.),
116  subClusDPhi2_(-999.),
117  subClusDPhi3_(-999.),
118  subClusDEta1_(-999.),
119  subClusDEta2_(-999.),
120  subClusDEta3_(-999.),
121  cryEta_(-999.),
122  cryPhi_(-999),
123  iEta_(-999),
124  iPhi_(-999)
125 {
126 }
float subClusDEta3_
Definition: Photon.h:372
float subClusDPhi1_
Definition: Photon.h:366
float cryEta_
Definition: Photon.h:374
float eLeft_
Definition: Photon.h:350
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:340
float sep_
Definition: Photon.h:355
float spp_
Definition: Photon.h:354
float eRight_
Definition: Photon.h:351
bool hasPixelSeed_
Definition: Photon.h:341
float see_
Definition: Photon.h:353
float subClusDPhi3_
Definition: Photon.h:368
float subClusRawE2_
Definition: Photon.h:363
float subClusRawE1_
Definition: Photon.h:362
float subClusRawE3_
Definition: Photon.h:364
float eMax_
Definition: Photon.h:345
bool embeddedSuperCluster_
Definition: Photon.h:316
float e2nd_
Definition: Photon.h:346
float iEta_
Definition: Photon.h:376
bool embeddedRecHits_
True if RecHits stored internally.
Definition: Photon.h:329
float e3x3_
Definition: Photon.h:347
float cryPhi_
Definition: Photon.h:375
float subClusDEta2_
Definition: Photon.h:371
float subClusDEta1_
Definition: Photon.h:370
float eBottom_
Definition: Photon.h:349
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:344
float subClusDPhi2_
Definition: Photon.h:367
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
float iPhi_
Definition: Photon.h:377
float maxDRDEta_
Definition: Photon.h:359
float maxDRRawEnergy_
Definition: Photon.h:360
float eTop_
Definition: Photon.h:348
float maxDRDPhi_
Definition: Photon.h:358
float maxDR_
Definition: Photon.h:357
Photon::Photon ( const edm::Ptr< reco::Photon > &  aPhotonRef)

constructor from a Ptr to a reco photon

constructor from ref to reco::Photon

Definition at line 129 of file Photon.cc.

129  :
130  PATObject<reco::Photon>(aPhotonRef),
131  embeddedSuperCluster_(false),
132  embeddedSeedCluster_(false),
133  embeddedRecHits_(false),
134  passElectronVeto_(false),
135  hasPixelSeed_(false),
136  seedEnergy_(0.0),
137  eMax_(0.0),
138  e2nd_(0.0),
139  e3x3_(0.0),
140  eTop_(0.0),
141  eBottom_(0.0),
142  eLeft_(0.0),
143  eRight_(0.0),
144  see_(-999.),
145  spp_(-999.),
146  sep_(-999.),
147  maxDR_(-999.),
148  maxDRDPhi_(-999.),
149  maxDRDEta_(-999.),
150  maxDRRawEnergy_(-999.),
151  subClusRawE1_(-999.),
152  subClusRawE2_(-999.),
153  subClusRawE3_(-999.),
154  subClusDPhi1_(-999.),
155  subClusDPhi2_(-999.),
156  subClusDPhi3_(-999.),
157  subClusDEta1_(-999.),
158  subClusDEta2_(-999.),
159  subClusDEta3_(-999.),
160  cryEta_(-999.),
161  cryPhi_(-999),
162  iEta_(-999),
163  iPhi_(-999)
164 {
165 }
float subClusDEta3_
Definition: Photon.h:372
float subClusDPhi1_
Definition: Photon.h:366
float cryEta_
Definition: Photon.h:374
float eLeft_
Definition: Photon.h:350
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:340
float sep_
Definition: Photon.h:355
float spp_
Definition: Photon.h:354
float eRight_
Definition: Photon.h:351
bool hasPixelSeed_
Definition: Photon.h:341
float see_
Definition: Photon.h:353
float subClusDPhi3_
Definition: Photon.h:368
float subClusRawE2_
Definition: Photon.h:363
float subClusRawE1_
Definition: Photon.h:362
float subClusRawE3_
Definition: Photon.h:364
float eMax_
Definition: Photon.h:345
bool embeddedSuperCluster_
Definition: Photon.h:316
float e2nd_
Definition: Photon.h:346
float iEta_
Definition: Photon.h:376
bool embeddedRecHits_
True if RecHits stored internally.
Definition: Photon.h:329
float e3x3_
Definition: Photon.h:347
float cryPhi_
Definition: Photon.h:375
float subClusDEta2_
Definition: Photon.h:371
float subClusDEta1_
Definition: Photon.h:370
float eBottom_
Definition: Photon.h:349
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:344
float subClusDPhi2_
Definition: Photon.h:367
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
float iPhi_
Definition: Photon.h:377
float maxDRDEta_
Definition: Photon.h:359
float maxDRRawEnergy_
Definition: Photon.h:360
float eTop_
Definition: Photon.h:348
float maxDRDPhi_
Definition: Photon.h:358
float maxDR_
Definition: Photon.h:357
Photon::~Photon ( )
virtual

destructor

Reimplemented from reco::Photon.

Definition at line 168 of file Photon.cc.

168  {
169 }

Member Function Documentation

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

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

Definition at line 310 of file Photon.cc.

References associatedPackedFCandidateIndices_, edm::RefProd< T >::id(), customizeTrackingMonitorSeedNumber::idx, packedPFCandidates_, and run_regression::ret.

310  {
312  for (uint16_t idx : associatedPackedFCandidateIndices_) {
314  }
315  return ret;
316 }
edm::RefProd< pat::PackedCandidateCollection > packedPFCandidates_
Definition: Photon.h:380
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
ProductID id() const
Accessor for product ID.
Definition: RefProd.h:140
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:381
const std::vector<reco::CaloCluster>& pat::Photon::basicClusters ( ) const
inline

Definition at line 74 of file Photon.h.

References basicClusters_.

74 { return basicClusters_ ; }
std::vector< reco::CaloCluster > basicClusters_
Place to store electron&#39;s basic clusters internally.
Definition: Photon.h:321
float pat::Photon::caloIso ( ) const
inline

Returns the calorimeter isolation combined from ecal and hcal

Definition at line 125 of file Photon.h.

References ecalIso(), and hcalIso().

125 { return ecalIso()+hcalIso(); }
float hcalIso() const
Definition: Photon.h:122
float ecalIso() const
Definition: Photon.h:119
float pat::Photon::chargedHadronIso ( ) const
inline

Returns the isolation calculated with only the charged hadron PFCandidates

Definition at line 132 of file Photon.h.

References pat::PfChargedHadronIso, and userIsolation().

float userIsolation(IsolationKeys key) const
Definition: Photon.h:147
virtual Photon* pat::Photon::clone ( void  ) const
inlinevirtual

required reimplementation of the Candidate's clone method

Reimplemented from reco::Photon.

Definition at line 65 of file Photon.h.

References Photon().

65 { return new Photon(*this); }
Photon()
default constructor
Definition: Photon.cc:12
float pat::Photon::cryEta ( ) const
inline

Definition at line 288 of file Photon.h.

References cryEta_.

288 { return cryEta_;}
float cryEta_
Definition: Photon.h:374
float pat::Photon::cryPhi ( ) const
inline

Definition at line 286 of file Photon.h.

References cryPhi_.

286 { return cryPhi_;}
float cryPhi_
Definition: Photon.h:375
float pat::Photon::e2nd ( ) const
inline

Definition at line 236 of file Photon.h.

References e2nd_.

236 { return e2nd_;}
float e2nd_
Definition: Photon.h:346
float pat::Photon::e3x3 ( ) const
inline

Definition at line 238 of file Photon.h.

References e3x3_.

238 { return e3x3_;}
float e3x3_
Definition: Photon.h:347
float pat::Photon::eBottom ( ) const
inline

Definition at line 242 of file Photon.h.

References eBottom_.

242 { return eBottom_;}
float eBottom_
Definition: Photon.h:349
float pat::Photon::ecalIso ( ) const
inline

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

Definition at line 119 of file Photon.h.

References reco::Photon::ecalRecHitSumEtConeDR04().

Referenced by PatPhotonSimpleAnalyzer::analyze(), and caloIso().

119 { return ecalRecHitSumEtConeDR04(); }
float ecalRecHitSumEtConeDR04() const
Definition: Photon.h:340
const IsoDeposit* pat::Photon::ecalIsoDeposit ( ) const
inline

Return the ecal IsoDeposit.

Definition at line 202 of file Photon.h.

References pat::EcalIso, and isoDeposit().

202 { 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:191
void pat::Photon::ecalIsoDeposit ( const IsoDeposit dep)
inline

Sets ecal IsoDeposit.

Definition at line 218 of file Photon.h.

References pat::EcalIso, and setIsoDeposit().

218 { 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:208
float pat::Photon::eLeft ( ) const
inline

Definition at line 244 of file Photon.h.

References eLeft_.

244 { return eLeft_;}
float eLeft_
Definition: Photon.h:350
float pat::Photon::eMax ( ) const
inline

Definition at line 234 of file Photon.h.

References eMax_.

234 { return eMax_;}
float eMax_
Definition: Photon.h:345
void Photon::embedBasicClusters ( )

method to store the electron's basic clusters

Stores the electron's BasicCluster (reco::CaloCluster) internally.

Definition at line 251 of file Photon.cc.

References basicClusters_, and reco::Photon::superCluster().

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

251  {
252  basicClusters_.clear();
253  if (reco::Photon::superCluster().isNonnull()){
254  reco::CaloCluster_iterator itscl = reco::Photon::superCluster()->clustersBegin();
255  reco::CaloCluster_iterator itsclE = reco::Photon::superCluster()->clustersEnd();
256  for(;itscl!=itsclE;++itscl){
257  basicClusters_.push_back( **itscl ) ;
258  }
259  }
260 }
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:58
std::vector< reco::CaloCluster > basicClusters_
Place to store electron&#39;s basic clusters internally.
Definition: Photon.h:321
void Photon::embedPreshowerClusters ( )

method to store the electron's preshower clusters

Stores the electron's PreshowerCluster (reco::CaloCluster) internally.

Definition at line 263 of file Photon.cc.

References preshowerClusters_, and reco::Photon::superCluster().

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

263  {
264  preshowerClusters_.clear();
265  if (reco::Photon::superCluster().isNonnull()){
266  reco::CaloCluster_iterator itscl = reco::Photon::superCluster()->preshowerClustersBegin();
267  reco::CaloCluster_iterator itsclE = reco::Photon::superCluster()->preshowerClustersEnd();
268  for(;itscl!=itsclE;++itscl){
269  preshowerClusters_.push_back( **itscl ) ;
270  }
271  }
272 }
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:58
std::vector< reco::CaloCluster > preshowerClusters_
Place to store electron&#39;s preshower clusters internally.
Definition: Photon.h:323
void Photon::embedRecHits ( const EcalRecHitCollection rechits)

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

Definition at line 275 of file Photon.cc.

References embeddedRecHits_, HI_PhotonSkim_cff::rechits, and recHits_.

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

275  {
276  if (rechits!=0) {
277  recHits_ = *rechits;
278  embeddedRecHits_ = true;
279  }
280 }
EcalRecHitCollection recHits_
Place to store electron&#39;s RecHits internally (5x5 around seed+ all RecHits)
Definition: Photon.h:331
bool embeddedRecHits_
True if RecHits stored internally.
Definition: Photon.h:329
void Photon::embedSeedCluster ( )

method to store the electron's seedcluster internally

Stores the electron's SeedCluster (reco::BasicClusterPtr) internally.

Definition at line 242 of file Photon.cc.

References embeddedSeedCluster_, seed(), seedCluster_, and reco::Photon::superCluster().

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

242  {
243  seedCluster_.clear();
244  if (reco::Photon::superCluster().isNonnull() && reco::Photon::superCluster()->seed().isNonnull()) {
246  embeddedSeedCluster_ = true;
247  }
248 }
reco::CaloClusterPtr seed() const
direct access to the seed cluster
Definition: Photon.cc:224
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:58
std::vector< reco::CaloCluster > seedCluster_
Place to store electron&#39;s seed cluster internally.
Definition: Photon.h:327
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
void Photon::embedSuperCluster ( )

method to store the photon's supercluster internally

Definition at line 233 of file Photon.cc.

References embeddedSuperCluster_, reco::Photon::superCluster(), and superCluster_.

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

233  {
234  superCluster_.clear();
235  if (reco::Photon::superCluster().isNonnull()) {
237  embeddedSuperCluster_ = true;
238  }
239 }
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:58
std::vector< reco::SuperCluster > superCluster_
Definition: Photon.h:317
bool embeddedSuperCluster_
Definition: Photon.h:316
float pat::Photon::eRight ( ) const
inline

Definition at line 246 of file Photon.h.

References eRight_.

246 { return eRight_;}
float eRight_
Definition: Photon.h:351
float pat::Photon::eTop ( ) const
inline

Definition at line 240 of file Photon.h.

References eTop_.

240 { return eTop_;}
float eTop_
Definition: Photon.h:348
const reco::Candidate* pat::Photon::genPhoton ( ) const
inline

return the match to the generated photon

Definition at line 95 of file Photon.h.

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

95 { return genParticle(); }
const reco::GenParticle * genParticle(size_t idx=0) const
Definition: PATObject.h:236
bool pat::Photon::hasPixelSeed ( ) const
inline

Definition at line 227 of file Photon.h.

References hasPixelSeed_.

227 { return hasPixelSeed_; }
bool hasPixelSeed_
Definition: Photon.h:341
float pat::Photon::hcalIso ( ) const
inline

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

Definition at line 122 of file Photon.h.

References reco::Photon::hcalTowerSumEtConeDR04().

Referenced by PatPhotonSimpleAnalyzer::analyze(), and caloIso().

122 { return hcalTowerSumEtConeDR04(); }
float hcalTowerSumEtConeDR04() const
Hcal isolation sum.
Definition: Photon.h:342
const IsoDeposit* pat::Photon::hcalIsoDeposit ( ) const
inline

Return the hcal IsoDeposit.

Definition at line 204 of file Photon.h.

References pat::HcalIso, and isoDeposit().

204 { 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:191
void pat::Photon::hcalIsoDeposit ( const IsoDeposit dep)
inline

Sets hcal IsoDeposit.

Definition at line 220 of file Photon.h.

References pat::HcalIso, and setIsoDeposit().

220 { 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:208
float pat::Photon::iEta ( ) const
inline

Definition at line 293 of file Photon.h.

References iEta_.

293 { return iEta_;}
float iEta_
Definition: Photon.h:376
float pat::Photon::iPhi ( ) const
inline

Definition at line 291 of file Photon.h.

References iPhi_.

291 { return iPhi_;}
float iPhi_
Definition: Photon.h:377
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 191 of file Photon.h.

References isoDeposits_.

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

191  {
192  for (IsoDepositPairs::const_iterator it = isoDeposits_.begin(), ed = isoDeposits_.end();
193  it != ed; ++it)
194  {
195  if (it->first == key) return & it->second;
196  }
197  return 0;
198  }
IsoDepositPairs isoDeposits_
Definition: Photon.h:336
list key
Definition: combine.py:13
bool Photon::isPhotonIDAvailable ( const std::string &  name) const

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

Definition at line 297 of file Photon.cc.

References photonIDs_.

297  {
298  for (std::vector<IdPair>::const_iterator it = photonIDs_.begin(), ed = photonIDs_.end(); it != ed; ++it) {
299  if (it->first == name) return true;
300  }
301  return false;
302 }
std::vector< IdPair > photonIDs_
Definition: Photon.h:333
float pat::Photon::maxDR ( ) const
inline

Definition at line 256 of file Photon.h.

References maxDR_.

256 { return maxDR_;}
float maxDR_
Definition: Photon.h:357
float pat::Photon::maxDRDEta ( ) const
inline

Definition at line 260 of file Photon.h.

References maxDRDEta_.

260 { return maxDRDEta_;}
float maxDRDEta_
Definition: Photon.h:359
float pat::Photon::maxDRDPhi ( ) const
inline

Definition at line 258 of file Photon.h.

References maxDRDPhi_.

258 { return maxDRDPhi_;}
float maxDRDPhi_
Definition: Photon.h:358
float pat::Photon::maxDRRawEnergy ( ) const
inline

Definition at line 262 of file Photon.h.

References maxDRRawEnergy_.

262 { return maxDRRawEnergy_;}
float maxDRRawEnergy_
Definition: Photon.h:360
float pat::Photon::neutralHadronIso ( ) const
inline

Returns the isolation calculated with only the neutral hadron PFCandidates

Definition at line 135 of file Photon.h.

References pat::PfNeutralHadronIso, and userIsolation().

float userIsolation(IsolationKeys key) const
Definition: Photon.h:147
size_t pat::Photon::numberOfSourceCandidatePtrs ( ) const
inlinevirtual

get the number of non-null PFCandidates

Reimplemented from reco::LeafCandidate.

Definition at line 307 of file Photon.h.

References associatedPackedFCandidateIndices_.

307 { return associatedPackedFCandidateIndices_.size(); }
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:381
float pat::Photon::particleIso ( ) const
inline

PARTICLE FLOW ISOLATION Returns the isolation calculated with all the PFCandidates

Definition at line 129 of file Photon.h.

References pat::PfAllParticleIso, and userIsolation().

float userIsolation(IsolationKeys key) const
Definition: Photon.h:147
bool pat::Photon::passElectronVeto ( ) const
inline

vertex fit method

Definition at line 224 of file Photon.h.

References passElectronVeto_.

224 { return passElectronVeto_; }
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:340
Bool_t 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

Definition at line 283 of file Photon.cc.

References photonIDs_.

283  {
284  for (std::vector<IdPair>::const_iterator it = photonIDs_.begin(), ed = photonIDs_.end(); it != ed; ++it) {
285  if (it->first == name) return it->second;
286  }
287  cms::Exception ex("Key not found");
288  ex << "pat::Photon: the ID " << name << " can't be found in this pat::Photon.\n";
289  ex << "The available IDs are: ";
290  for (std::vector<IdPair>::const_iterator it = photonIDs_.begin(), ed = photonIDs_.end(); it != ed; ++it) {
291  ex << "'" << it->first << "' ";
292  }
293  ex << ".\n";
294  throw ex;
295 }
std::vector< IdPair > photonIDs_
Definition: Photon.h:333
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 107 of file Photon.h.

References photonIDs_.

107 { return photonIDs_; }
std::vector< IdPair > photonIDs_
Definition: Photon.h:333
float pat::Photon::photonIso ( ) const
inline

Returns the isolation calculated with only the gamma PFCandidates

Definition at line 138 of file Photon.h.

References pat::PfGammaIso, and userIsolation().

138 { return userIsolation(pat::PfGammaIso); }
float userIsolation(IsolationKeys key) const
Definition: Photon.h:147
const std::vector<reco::CaloCluster>& pat::Photon::preshowerClusters ( ) const
inline

Definition at line 76 of file Photon.h.

References preshowerClusters_.

76 { return preshowerClusters_ ; }
std::vector< reco::CaloCluster > preshowerClusters_
Place to store electron&#39;s preshower clusters internally.
Definition: Photon.h:323
float pat::Photon::puChargedHadronIso ( ) const
inline

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

Definition at line 141 of file Photon.h.

References pat::PfPUChargedHadronIso, and userIsolation().

float userIsolation(IsolationKeys key) const
Definition: Photon.h:147
const EcalRecHitCollection* pat::Photon::recHits ( void  ) const
inline

Definition at line 79 of file Photon.h.

References recHits_.

79 { return &recHits_;}
EcalRecHitCollection recHits_
Place to store electron&#39;s RecHits internally (5x5 around seed+ all RecHits)
Definition: Photon.h:331
float pat::Photon::see ( ) const
inline

Definition at line 249 of file Photon.h.

References see_.

249 { return see_;}
float see_
Definition: Photon.h:353
reco::CaloClusterPtr Photon::seed ( ) const

direct access to the seed cluster

Definition at line 224 of file Photon.cc.

References embeddedSeedCluster_, seedCluster_, and reco::Photon::superCluster().

Referenced by embedSeedCluster(), and superCluster().

224  {
227  } else {
228  return reco::Photon::superCluster()->seed();
229  }
230 }
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:58
edm::Ptr< CaloCluster > CaloClusterPtr
std::vector< reco::CaloCluster > seedCluster_
Place to store electron&#39;s seed cluster internally.
Definition: Photon.h:327
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
float pat::Photon::seedEnergy ( ) const
inline

input variables for regression energy corrections

Definition at line 231 of file Photon.h.

References seedEnergy_.

231 { return seedEnergy_;}
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:344
float pat::Photon::sep ( ) const
inline

Definition at line 253 of file Photon.h.

References sep_.

253 { return sep_;}
float sep_
Definition: Photon.h:355
void Photon::setAssociatedPackedPFCandidates ( const edm::RefVector< pat::PackedCandidateCollection > &  refvector)

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

Definition at line 318 of file Photon.cc.

References associatedPackedFCandidateIndices_, edm::hlt::Exception, edm::RefVector< C, T, F >::id(), edm::RefProd< T >::id(), edm::RefProd< T >::isNonnull(), and packedPFCandidates_.

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

318  {
320  if (refvector.id().isValid() && refvector.id() != packedPFCandidates_.id()) {
321  throw cms::Exception("Unsupported", "setAssociatedPackedPFCandidates pointing to a collection other than the one from setPackedPFCandidateCollection");
322  }
323  } else {
325  }
327  for (const edm::Ref<pat::PackedCandidateCollection> & ref : refvector) {
328  associatedPackedFCandidateIndices_.push_back(ref.key());
329  }
330 }
ProductID id() const
Accessor for product ID.
Definition: RefVector.h:104
edm::RefProd< pat::PackedCandidateCollection > packedPFCandidates_
Definition: Photon.h:380
bool isNonnull() const
Checks for non-null.
Definition: RefProd.h:134
ProductID id() const
Accessor for product ID.
Definition: RefProd.h:140
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:381
void pat::Photon::setCryEta ( float  c)
inline

Definition at line 289 of file Photon.h.

References trackerHits::c, and cryEta_.

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

289 { cryEta_ = c;}
float cryEta_
Definition: Photon.h:374
void pat::Photon::setCryPhi ( float  c)
inline

Definition at line 287 of file Photon.h.

References trackerHits::c, and cryPhi_.

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

287 { cryPhi_ = c;}
float cryPhi_
Definition: Photon.h:375
void pat::Photon::setE2nd ( float  e)
inline

Definition at line 237 of file Photon.h.

References alignCSCRings::e, and e2nd_.

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

237 { e2nd_ = e;}
float e2nd_
Definition: Photon.h:346
void pat::Photon::setE3x3 ( float  e)
inline

Definition at line 239 of file Photon.h.

References alignCSCRings::e, and e3x3_.

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

239 { e3x3_ = e;}
float e3x3_
Definition: Photon.h:347
void pat::Photon::setEBottom ( float  e)
inline

Definition at line 243 of file Photon.h.

References alignCSCRings::e, and eBottom_.

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

243 { eBottom_ = e;}
float eBottom_
Definition: Photon.h:349
void pat::Photon::setEcalIso ( float  caloIso)
inline

Sets ecal isolation variable.

Definition at line 183 of file Photon.h.

References pat::EcalIso, and setIsolation().

void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:168
float caloIso() const
Definition: Photon.h:125
void pat::Photon::setELeft ( float  e)
inline

Definition at line 245 of file Photon.h.

References alignCSCRings::e, and eLeft_.

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

245 { eLeft_ = e;}
float eLeft_
Definition: Photon.h:350
void pat::Photon::setEMax ( float  e)
inline

Definition at line 235 of file Photon.h.

References alignCSCRings::e, and eMax_.

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

235 { eMax_ = e;}
float eMax_
Definition: Photon.h:345
void pat::Photon::setERight ( float  e)
inline

Definition at line 247 of file Photon.h.

References alignCSCRings::e, and eRight_.

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

247 { eRight_ = e;}
float eRight_
Definition: Photon.h:351
void pat::Photon::setETop ( float  e)
inline

Definition at line 241 of file Photon.h.

References alignCSCRings::e, and eTop_.

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

241 { eTop_ = e;}
float eTop_
Definition: Photon.h:348
void pat::Photon::setGenPhoton ( const reco::GenParticleRef gp,
bool  embed = false 
)
inline

method to set the generated photon

Definition at line 97 of file Photon.h.

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

97 { setGenParticleRef(gp, embed); }
void setGenParticleRef(const reco::GenParticleRef &ref, bool embed=false)
Set the generator level particle reference.
#define embed
Definition: AMPTWrapper.h:178
void pat::Photon::setHasPixelSeed ( bool  flag)
inline

Definition at line 228 of file Photon.h.

References archive::flag, and hasPixelSeed_.

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

228 { hasPixelSeed_ = flag; }
bool hasPixelSeed_
Definition: Photon.h:341
void pat::Photon::setHcalIso ( float  caloIso)
inline

Sets hcal isolation variable.

Definition at line 185 of file Photon.h.

References pat::HcalIso, and setIsolation().

void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:168
float caloIso() const
Definition: Photon.h:125
void pat::Photon::setIEta ( float  i)
inline

Definition at line 294 of file Photon.h.

References i, and iEta_.

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

294 { iEta_ = i;}
int i
Definition: DBlmapReader.cc:9
float iEta_
Definition: Photon.h:376
void pat::Photon::setIPhi ( float  i)
inline

Definition at line 292 of file Photon.h.

References i, and iPhi_.

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

292 { iPhi_ = i;}
int i
Definition: DBlmapReader.cc:9
float iPhi_
Definition: Photon.h:377
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 208 of file Photon.h.

References isoDeposits_.

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

208  {
209  IsoDepositPairs::iterator it = isoDeposits_.begin(), ed = isoDeposits_.end();
210  for (; it != ed; ++it) {
211  if (it->first == key) { it->second = dep; return; }
212  }
213  isoDeposits_.push_back(std::make_pair(key,dep));
214  }
IsoDepositPairs isoDeposits_
Definition: Photon.h:336
list key
Definition: combine.py:13
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 168 of file Photon.h.

References edm::hlt::Exception, isolations_, combine::key, and relativeConstraints::value.

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

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

Definition at line 257 of file Photon.h.

References m, and maxDR_.

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

257 { maxDR_ = m;}
float maxDR_
Definition: Photon.h:357
void pat::Photon::setMaxDRDEta ( float  m)
inline

Definition at line 261 of file Photon.h.

References m, and maxDRDEta_.

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

261 { maxDRDEta_ = m;}
float maxDRDEta_
Definition: Photon.h:359
void pat::Photon::setMaxDRDPhi ( float  m)
inline

Definition at line 259 of file Photon.h.

References m, and maxDRDPhi_.

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

259 { maxDRDPhi_ = m;}
float maxDRDPhi_
Definition: Photon.h:358
void pat::Photon::setMaxDRRawEnergy ( float  m)
inline

Definition at line 263 of file Photon.h.

References m, and maxDRRawEnergy_.

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

263 { maxDRRawEnergy_ = m;}
float maxDRRawEnergy_
Definition: Photon.h:360
void Photon::setPackedPFCandidateCollection ( const edm::RefProd< pat::PackedCandidateCollection > &  refprod)

References to PFCandidates (e.g. to recompute isolation)

Definition at line 305 of file Photon.cc.

References associatedPackedFCandidateIndices_, and packedPFCandidates_.

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

305  {
306  if (!associatedPackedFCandidateIndices_.empty()) throw cms::Exception("Unsupported", "You can't call setPackedPFCandidateCollection _after_ having called setAssociatedPackedPFCandidates");
307  packedPFCandidates_ = refprod;
308 }
edm::RefProd< pat::PackedCandidateCollection > packedPFCandidates_
Definition: Photon.h:380
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:381
void pat::Photon::setPassElectronVeto ( bool  flag)
inline

Definition at line 225 of file Photon.h.

References archive::flag, and passElectronVeto_.

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

225 { passElectronVeto_ = flag; }
bool passElectronVeto_
-— conversion veto -—
Definition: Photon.h:340
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 110 of file Photon.h.

References photonIDs_.

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

110 { photonIDs_ = ids; }
std::vector< IdPair > photonIDs_
Definition: Photon.h:333
void pat::Photon::setSee ( float  s)
inline

Definition at line 250 of file Photon.h.

References alignCSCRings::s, and see_.

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

250 { see_ = s;}
float see_
Definition: Photon.h:353
void pat::Photon::setSeedEnergy ( float  e)
inline

Definition at line 232 of file Photon.h.

References alignCSCRings::e, and seedEnergy_.

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

232 { seedEnergy_ = e; }
float seedEnergy_
-— input variables for regression energy corrections -—
Definition: Photon.h:344
void pat::Photon::setSep ( float  s)
inline

Definition at line 254 of file Photon.h.

References alignCSCRings::s, and sep_.

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

254 { sep_ = s;}
float sep_
Definition: Photon.h:355
void pat::Photon::setSpp ( float  s)
inline

Definition at line 252 of file Photon.h.

References alignCSCRings::s, and spp_.

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

252 { spp_ = s;}
float spp_
Definition: Photon.h:354
void pat::Photon::setSubClusDEta1 ( float  s)
inline

Definition at line 280 of file Photon.h.

References alignCSCRings::s, and subClusDEta1_.

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

280 { subClusDEta1_ = s;}
float subClusDEta1_
Definition: Photon.h:370
void pat::Photon::setSubClusDEta2 ( float  s)
inline

Definition at line 282 of file Photon.h.

References alignCSCRings::s, and subClusDEta2_.

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

282 { subClusDEta2_ = s;}
float subClusDEta2_
Definition: Photon.h:371
void pat::Photon::setSubClusDEta3 ( float  s)
inline

Definition at line 284 of file Photon.h.

References alignCSCRings::s, and subClusDEta3_.

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

284 { subClusDEta3_ = s;}
float subClusDEta3_
Definition: Photon.h:372
void pat::Photon::setSubClusDPhi1 ( float  s)
inline

Definition at line 273 of file Photon.h.

References alignCSCRings::s, and subClusDPhi1_.

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

273 { subClusDPhi1_ = s;}
float subClusDPhi1_
Definition: Photon.h:366
void pat::Photon::setSubClusDPhi2 ( float  s)
inline

Definition at line 275 of file Photon.h.

References alignCSCRings::s, and subClusDPhi2_.

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

275 { subClusDPhi2_ = s;}
float subClusDPhi2_
Definition: Photon.h:367
void pat::Photon::setSubClusDPhi3 ( float  s)
inline

Definition at line 277 of file Photon.h.

References alignCSCRings::s, and subClusDPhi3_.

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

277 { subClusDPhi3_ = s;}
float subClusDPhi3_
Definition: Photon.h:368
void pat::Photon::setSubClusRawE1 ( float  s)
inline

Definition at line 266 of file Photon.h.

References alignCSCRings::s, and subClusRawE1_.

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

266 { subClusRawE1_ = s;}
float subClusRawE1_
Definition: Photon.h:362
void pat::Photon::setSubClusRawE2 ( float  s)
inline

Definition at line 268 of file Photon.h.

References alignCSCRings::s, and subClusRawE2_.

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

268 { subClusRawE2_ = s;}
float subClusRawE2_
Definition: Photon.h:363
void pat::Photon::setSubClusRawE3 ( float  s)
inline

Definition at line 270 of file Photon.h.

References alignCSCRings::s, and subClusRawE3_.

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

270 { subClusRawE3_ = s;}
float subClusRawE3_
Definition: Photon.h:364
void pat::Photon::setTrackIso ( float  trackIso)
inline

Sets tracker isolation variable.

Definition at line 181 of file Photon.h.

References setIsolation(), and pat::TrackIso.

float trackIso() const
Definition: Photon.h:116
void setIsolation(IsolationKeys key, float value)
Definition: Photon.h:168
void pat::Photon::setUserIso ( float  value,
uint8_t  index = 0 
)
inline

Sets user isolation variable index.

Definition at line 187 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:168
unsigned int index
Definition: LeafCandidate.h:36
reco::CandidatePtr Photon::sourceCandidatePtr ( size_type  i) const
virtual

get the source candidate pointer with index i

Returns the reference to the parent PF candidate with index i. For use in TopProjector.

Reimplemented from reco::LeafCandidate.

Definition at line 334 of file Photon.cc.

References associatedPackedFCandidateIndices_, packedPFCandidates_, and edm::refToPtr().

334  {
335  if (i >= associatedPackedFCandidateIndices_.size()) {
336  return reco::CandidatePtr();
337  } else {
339  }
340 }
int i
Definition: DBlmapReader.cc:9
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
Definition: RefToPtr.h:18
edm::RefProd< pat::PackedCandidateCollection > packedPFCandidates_
Definition: Photon.h:380
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Photon.h:381
float pat::Photon::spp ( ) const
inline

Definition at line 251 of file Photon.h.

References spp_.

251 { return spp_;}
float spp_
Definition: Photon.h:354
float pat::Photon::subClusDEta1 ( ) const
inline

Definition at line 279 of file Photon.h.

References subClusDEta1_.

279 { return subClusDEta1_;}
float subClusDEta1_
Definition: Photon.h:370
float pat::Photon::subClusDEta2 ( ) const
inline

Definition at line 281 of file Photon.h.

References subClusDEta2_.

281 { return subClusDEta2_;}
float subClusDEta2_
Definition: Photon.h:371
float pat::Photon::subClusDEta3 ( ) const
inline

Definition at line 283 of file Photon.h.

References subClusDEta3_.

283 { return subClusDEta3_;}
float subClusDEta3_
Definition: Photon.h:372
float pat::Photon::subClusDPhi1 ( ) const
inline

Definition at line 272 of file Photon.h.

References subClusDPhi1_.

272 { return subClusDPhi1_;}
float subClusDPhi1_
Definition: Photon.h:366
float pat::Photon::subClusDPhi2 ( ) const
inline

Definition at line 274 of file Photon.h.

References subClusDPhi2_.

274 { return subClusDPhi2_;}
float subClusDPhi2_
Definition: Photon.h:367
float pat::Photon::subClusDPhi3 ( ) const
inline

Definition at line 276 of file Photon.h.

References subClusDPhi3_.

276 { return subClusDPhi3_;}
float subClusDPhi3_
Definition: Photon.h:368
float pat::Photon::subClusRawE1 ( ) const
inline

Definition at line 265 of file Photon.h.

References subClusRawE1_.

265 { return subClusRawE1_;}
float subClusRawE1_
Definition: Photon.h:362
float pat::Photon::subClusRawE2 ( ) const
inline

Definition at line 267 of file Photon.h.

References subClusRawE2_.

267 { return subClusRawE2_;}
float subClusRawE2_
Definition: Photon.h:363
float pat::Photon::subClusRawE3 ( ) const
inline

Definition at line 269 of file Photon.h.

References subClusRawE3_.

269 { return subClusRawE3_;}
float subClusRawE3_
Definition: Photon.h:364
reco::SuperClusterRef Photon::superCluster ( ) const
virtual

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

override the superCluster method from CaloJet, to access the internal storage of the supercluster this returns a transient Ref which should never be persisted!

Reimplemented from reco::Photon.

Definition at line 190 of file Photon.cc.

References basicClusters_, embeddedSeedCluster_, embeddedSuperCluster_, edm::AtomicPtrCache< T >::isSet(), preshowerClusters_, edm::PtrVector< T >::push_back(), seed(), edm::AtomicPtrCache< T >::set(), reco::Photon::superCluster(), superCluster_, and superClusterRelinked_.

Referenced by PatPhotonSimpleAnalyzer::analyze(), and pat::PATPhotonSlimmer::produce().

190  {
191  if (embeddedSuperCluster_) {
192  if (embeddedSeedCluster_ || !basicClusters_.empty() || !preshowerClusters_.empty()) {
193  if (!superClusterRelinked_.isSet()) {
194  std::unique_ptr<std::vector<reco::SuperCluster> > sc(new std::vector<reco::SuperCluster>(superCluster_));
195  if (embeddedSeedCluster_ && !(*sc)[0].seed().isAvailable()) {
196  (*sc)[0].setSeed(seed());
197  }
198  if (basicClusters_.size() && !(*sc)[0].clusters().isAvailable()) {
200  for (unsigned int iclus=0; iclus<basicClusters_.size(); ++iclus) {
202  }
203  (*sc)[0].setClusters(clusters);
204  }
205  if (preshowerClusters_.size() && !(*sc)[0].preshowerClusters().isAvailable()) {
207  for (unsigned int iclus=0; iclus<preshowerClusters_.size(); ++iclus) {
209  }
210  (*sc)[0].setPreshowerClusters(clusters);
211  }
212  superClusterRelinked_.set(std::move(sc));
213  }
215  } else {
217  }
218  } else {
220  }
221 }
void push_back(Ptr< T > const &iPtr)
Definition: PtrVector.h:138
reco::CaloClusterPtr seed() const
direct access to the seed cluster
Definition: Photon.cc:224
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:58
std::vector< reco::SuperCluster > superCluster_
Definition: Photon.h:317
std::vector< reco::CaloCluster > preshowerClusters_
Place to store electron&#39;s preshower clusters internally.
Definition: Photon.h:323
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
bool isSet() const
bool embeddedSuperCluster_
Definition: Photon.h:316
edm::AtomicPtrCache< std::vector< reco::SuperCluster > > superClusterRelinked_
Place to temporarily store the electron&#39;s supercluster after relinking the seed to it...
Definition: Photon.h:319
bool set(std::unique_ptr< T > iNewValue) const
bool embeddedSeedCluster_
True if seed cluster is stored internally.
Definition: Photon.h:325
std::vector< reco::CaloCluster > basicClusters_
Place to store electron&#39;s basic clusters internally.
Definition: Photon.h:321
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 116 of file Photon.h.

References reco::Photon::trkSumPtSolidConeDR04().

Referenced by PatPhotonSimpleAnalyzer::analyze().

116 { return trkSumPtSolidConeDR04(); }
float trkSumPtSolidConeDR04() const
Definition: Photon.h:354
const IsoDeposit* pat::Photon::trackIsoDeposit ( ) const
inline

Return the tracker IsoDeposit.

Definition at line 200 of file Photon.h.

References isoDeposit(), and pat::TrackIso.

200 { 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:191
void pat::Photon::trackIsoDeposit ( const IsoDeposit dep)
inline

Sets tracker IsoDeposit.

Definition at line 216 of file Photon.h.

References setIsoDeposit(), and pat::TrackIso.

216 { 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:208
float pat::Photon::userIso ( uint8_t  index = 0) const
inline

Returns a user defined isolation value.

Definition at line 144 of file Photon.h.

References pat::UserBaseIso, and userIsolation().

IsolationKeys
Enum defining isolation keys.
Definition: Isolation.h:9
unsigned int index
Definition: LeafCandidate.h:36
float userIsolation(IsolationKeys key) const
Definition: Photon.h:147
const IsoDeposit* pat::Photon::userIsoDeposit ( uint8_t  index = 0) const
inline

Return a specified user-level IsoDeposit.

Definition at line 206 of file Photon.h.

References isoDeposit(), and pat::UserBaseIso.

IsolationKeys
Enum defining isolation keys.
Definition: Isolation.h:9
unsigned int index
Definition: LeafCandidate.h:36
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:191
void pat::Photon::userIsoDeposit ( const IsoDeposit dep,
uint8_t  index = 0 
)
inline

Sets user-level IsoDeposit.

Definition at line 222 of file Photon.h.

References setIsoDeposit(), and pat::UserBaseIso.

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:208
unsigned int index
Definition: LeafCandidate.h:36
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 147 of file Photon.h.

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

Referenced by chargedHadronIso(), neutralHadronIso(), particleIso(), photonIso(), puChargedHadronIso(), and userIso().

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

Friends And Related Function Documentation

friend class PATPhotonSlimmer
friend

Definition at line 311 of file Photon.h.

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

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

Member Data Documentation

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

Place to store electron's basic clusters internally.

Definition at line 321 of file Photon.h.

Referenced by basicClusters(), embedBasicClusters(), pat::PATPhotonSlimmer::produce(), and superCluster().

float pat::Photon::cryEta_
protected

Definition at line 374 of file Photon.h.

Referenced by cryEta(), and setCryEta().

float pat::Photon::cryPhi_
protected

Definition at line 375 of file Photon.h.

Referenced by cryPhi(), and setCryPhi().

float pat::Photon::e2nd_
protected

Definition at line 346 of file Photon.h.

Referenced by e2nd(), and setE2nd().

float pat::Photon::e3x3_
protected

Definition at line 347 of file Photon.h.

Referenced by e3x3(), and setE3x3().

float pat::Photon::eBottom_
protected

Definition at line 349 of file Photon.h.

Referenced by eBottom(), and setEBottom().

float pat::Photon::eLeft_
protected

Definition at line 350 of file Photon.h.

Referenced by eLeft(), and setELeft().

float pat::Photon::eMax_
protected

Definition at line 345 of file Photon.h.

Referenced by eMax(), and setEMax().

bool pat::Photon::embeddedRecHits_
protected

True if RecHits stored internally.

Definition at line 329 of file Photon.h.

Referenced by embedRecHits(), and pat::PATPhotonSlimmer::produce().

bool pat::Photon::embeddedSeedCluster_
protected

True if seed cluster is stored internally.

Definition at line 325 of file Photon.h.

Referenced by embedSeedCluster(), pat::PATPhotonSlimmer::produce(), seed(), and superCluster().

bool pat::Photon::embeddedSuperCluster_
protected

Definition at line 316 of file Photon.h.

Referenced by embedSuperCluster(), pat::PATPhotonSlimmer::produce(), and superCluster().

float pat::Photon::eRight_
protected

Definition at line 351 of file Photon.h.

Referenced by eRight(), and setERight().

float pat::Photon::eTop_
protected

Definition at line 348 of file Photon.h.

Referenced by eTop(), and setETop().

bool pat::Photon::hasPixelSeed_
protected

Definition at line 341 of file Photon.h.

Referenced by hasPixelSeed(), and setHasPixelSeed().

float pat::Photon::iEta_
protected

Definition at line 376 of file Photon.h.

Referenced by iEta(), and setIEta().

float pat::Photon::iPhi_
protected

Definition at line 377 of file Photon.h.

Referenced by iPhi(), and setIPhi().

IsoDepositPairs pat::Photon::isoDeposits_
protected

Definition at line 336 of file Photon.h.

Referenced by isoDeposit(), and setIsoDeposit().

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

Definition at line 337 of file Photon.h.

Referenced by setIsolation(), and userIsolation().

float pat::Photon::maxDR_
protected

Definition at line 357 of file Photon.h.

Referenced by maxDR(), and setMaxDR().

float pat::Photon::maxDRDEta_
protected

Definition at line 359 of file Photon.h.

Referenced by maxDRDEta(), and setMaxDRDEta().

float pat::Photon::maxDRDPhi_
protected

Definition at line 358 of file Photon.h.

Referenced by maxDRDPhi(), and setMaxDRDPhi().

float pat::Photon::maxDRRawEnergy_
protected

Definition at line 360 of file Photon.h.

Referenced by maxDRRawEnergy(), and setMaxDRRawEnergy().

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

-— conversion veto -—

Definition at line 340 of file Photon.h.

Referenced by passElectronVeto(), and setPassElectronVeto().

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

Definition at line 333 of file Photon.h.

Referenced by isPhotonIDAvailable(), photonID(), photonIDs(), and setPhotonIDs().

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

Place to store electron's preshower clusters internally.

Definition at line 323 of file Photon.h.

Referenced by embedPreshowerClusters(), preshowerClusters(), pat::PATPhotonSlimmer::produce(), and superCluster().

EcalRecHitCollection pat::Photon::recHits_
protected

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

Definition at line 331 of file Photon.h.

Referenced by embedRecHits(), pat::PATPhotonSlimmer::produce(), and recHits().

float pat::Photon::see_
protected

Definition at line 353 of file Photon.h.

Referenced by see(), and setSee().

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

Place to store electron's seed cluster internally.

Definition at line 327 of file Photon.h.

Referenced by embedSeedCluster(), pat::PATPhotonSlimmer::produce(), and seed().

float pat::Photon::seedEnergy_
protected

-— input variables for regression energy corrections -—

Definition at line 344 of file Photon.h.

Referenced by seedEnergy(), and setSeedEnergy().

float pat::Photon::sep_
protected

Definition at line 355 of file Photon.h.

Referenced by sep(), and setSep().

float pat::Photon::spp_
protected

Definition at line 354 of file Photon.h.

Referenced by setSpp(), and spp().

float pat::Photon::subClusDEta1_
protected

Definition at line 370 of file Photon.h.

Referenced by setSubClusDEta1(), and subClusDEta1().

float pat::Photon::subClusDEta2_
protected

Definition at line 371 of file Photon.h.

Referenced by setSubClusDEta2(), and subClusDEta2().

float pat::Photon::subClusDEta3_
protected

Definition at line 372 of file Photon.h.

Referenced by setSubClusDEta3(), and subClusDEta3().

float pat::Photon::subClusDPhi1_
protected

Definition at line 366 of file Photon.h.

Referenced by setSubClusDPhi1(), and subClusDPhi1().

float pat::Photon::subClusDPhi2_
protected

Definition at line 367 of file Photon.h.

Referenced by setSubClusDPhi2(), and subClusDPhi2().

float pat::Photon::subClusDPhi3_
protected

Definition at line 368 of file Photon.h.

Referenced by setSubClusDPhi3(), and subClusDPhi3().

float pat::Photon::subClusRawE1_
protected

Definition at line 362 of file Photon.h.

Referenced by setSubClusRawE1(), and subClusRawE1().

float pat::Photon::subClusRawE2_
protected

Definition at line 363 of file Photon.h.

Referenced by setSubClusRawE2(), and subClusRawE2().

float pat::Photon::subClusRawE3_
protected

Definition at line 364 of file Photon.h.

Referenced by setSubClusRawE3(), and subClusRawE3().

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

Definition at line 317 of file Photon.h.

Referenced by embedSuperCluster(), pat::PATPhotonSlimmer::produce(), and superCluster().

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

Referenced by superCluster().