CMS 3D CMS Logo

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

Analysis-level electron class. More...

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

Inheritance diagram for pat::Electron:
pat::Lepton< reco::GsfElectron > pat::PATObject< reco::GsfElectron > reco::GsfElectron reco::RecoCandidate reco::LeafCandidate reco::Candidate

Public Types

typedef std::pair< std::string, float > IdPair
 
enum  IPTYPE {
  PV2D = 0, PV3D = 1, BS2D = 2, BS3D = 3,
  PVDZ = 4, IpTypeSize = 5
}
 
typedef enum pat::Electron::IPTYPE IpType
 
- Public Types inherited from pat::PATObject< reco::GsfElectron >
typedef reco::GsfElectron base_type
 
- Public Types inherited from reco::GsfElectron
enum  Classification {
  UNKNOWN = -1, GOLDEN = 0, BIGBREM = 1, BADTRACK = 2,
  SHOWERING = 3, GAP = 4
}
 
enum  P4Kind { P4_UNKNOWN = -1, P4_FROM_SUPER_CLUSTER = 0, P4_COMBINATION = 1, P4_PFLOW_COMBINATION = 2 }
 
- Public Types inherited from reco::RecoCandidate
enum  TrackType { noTrackType, recoTrackType, gsfTrackType }
 track type More...
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1) / 2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

edm::RefVector< pat::PackedCandidateCollectionassociatedPackedPFCandidates () const
 References to PFCandidates linked to this object (e.g. for isolation vetos or masking before jet reclustering) More...
 
const std::vector< reco::CaloCluster > & basicClusters () const
 
float caloIso () const
 Overload of pat::Lepton::caloIso(); returns the sum of ecalIso() and hcalIso. More...
 
Electronclone () const override
 required reimplementation of the Candidate's clone method More...
 
reco::TrackRef closestCtfTrackRef () const override
 override the reco::GsfElectron::closestCtfTrackRef method, to access the internal storage of the track More...
 
reco::GsfElectronCoreRef core () const override
 override the virtual reco::GsfElectron::core method, so that the embedded core can be used by GsfElectron client methods More...
 
double dB (IPTYPE type) const
 Impact parameter wrt primary vertex or beamspot. More...
 
double dB () const
 the version without arguments returns PD2D, but with an absolute value (for backwards compatibility) More...
 
const LorentzVectorecalDrivenMomentum () const
 
float ecalIso () const
 Overload of pat::Lepton::ecalIso(); returns the value of the summed Et of all recHits in the ecal in a cone of deltaR<0.4. More...
 
double ecalRegressionEnergy () const
 
double ecalRegressionError () const
 
double ecalRegressionScale () const
 
double ecalRegressionSmear () const
 
double ecalScale () const
 get scale corrections /smearings More...
 
double ecalSmear () const
 
double ecalTrackRegressionEnergy () const
 regression2 More...
 
double ecalTrackRegressionError () const
 
double ecalTrackRegressionScale () const
 
double ecalTrackRegressionSmear () const
 
double edB (IPTYPE type) const
 Uncertainty on the corresponding impact parameter. More...
 
double edB () const
 the version without arguments returns PD2D, but with an absolute value (for backwards compatibility) More...
 
 Electron ()
 default constructor More...
 
 Electron (const reco::GsfElectron &anElectron)
 constructor from reco::GsfElectron More...
 
 Electron (const edm::RefToBase< reco::GsfElectron > &anElectronRef)
 constructor from a RefToBase to a reco::GsfElectron (to be superseded by Ptr counterpart) More...
 
 Electron (const edm::Ptr< reco::GsfElectron > &anElectronRef)
 constructor from a Ptr to a reco::GsfElectron More...
 
float electronID (const std::string &name) const
 Returns a specific electron ID associated to the pat::Electron given its name. More...
 
float electronID (const char *name) const
 
const std::vector< IdPair > & electronIDs () const
 Returns all the electron IDs in the form of <name,value> pairs. The 'default' ID is the first in the list. More...
 
void embedBasicClusters ()
 method to store the electron's basic clusters More...
 
void embedGsfElectronCore ()
 method to store the electron's core internally More...
 
void embedGsfTrack ()
 method to store the electron's GsfTrack internally More...
 
void embedPFCandidate ()
 embed the PFCandidate pointed to by pfCandidateRef_ More...
 
void embedPflowBasicClusters ()
 method to store the electron's pflow basic clusters More...
 
void embedPflowPreshowerClusters ()
 method to store the electron's pflow preshower clusters More...
 
void embedPflowSuperCluster ()
 method to store the electron's PflowSuperCluster internally 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 electron's SuperCluster internally More...
 
void embedTrack ()
 method to store the electron's Track internally More...
 
void full5x5_setSigmaIetaIphi (float sigmaIetaIphi)
 
float full5x5_sigmaIetaIphi () const
 sigmaIEtaIPhi (from full 5x5 non-ZS clusters without fractions, a la 5.3.X) More...
 
reco::GsfTrackRef gsfTrack () const override
 override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster More...
 
float hcalIso () const
 Overload of pat::Lepton::hcalIso(); returns the value of the summed Et of all caloTowers in the hcal in a cone of deltaR<0.4. More...
 
double ip3d () const
 ip3d More...
 
bool isElectronIDAvailable (const std::string &name) const
 Returns true if a specific ID is available in this pat::Electron. More...
 
bool isElectronIDAvailable (const char *name) const
 
bool isPF () const
 
size_t numberOfSourceCandidatePtrs () const override
 get the number of non-null PFCandidates More...
 
reco::SuperClusterRef parentSuperCluster () const override
 override the reco::GsfElectron::pflowSuperCluster method, to access the internal storage of the pflowSuperCluster More...
 
bool passConversionVeto () const
 vertex fit combined with missing number of hits method More...
 
reco::PFCandidateRef pfCandidateRef () const
 reference to the source PFCandidates; null if this has been built from a standard electron More...
 
const std::vector< reco::CaloCluster > & pflowBasicClusters () const
 
const std::vector< reco::CaloCluster > & pflowPreshowerClusters () const
 
const std::vector< reco::CaloCluster > & preshowerClusters () const
 
float puppiChargedHadronIso () const
 returns PUPPI isolations More...
 
float puppiNeutralHadronIso () const
 
float puppiNoLeptonsChargedHadronIso () const
 returns PUPPINoLeptons isolations More...
 
float puppiNoLeptonsNeutralHadronIso () const
 
float puppiNoLeptonsPhotonIso () const
 
float puppiPhotonIso () const
 
const EcalRecHitCollectionrecHits () const
 
reco::CaloClusterPtr seed () const
 direct access to the seed cluster More...
 
template<typename T >
void setAssociatedPackedPFCandidates (const edm::RefProd< pat::PackedCandidateCollection > &refprod, T beginIndexItr, T endIndexItr)
 References to PFCandidates linked to this object (e.g. for isolation vetos or masking before jet reclustering) More...
 
void setDB (double dB, double edB, IPTYPE type)
 Set impact parameter of a certain type and its uncertainty. More...
 
void setEcalDrivenMomentum (const Candidate::LorentzVector &mom)
 
void setEcalRegressionEnergy (double val, double err)
 set regression1 More...
 
void setEcalRegressionScale (double val)
 
void setEcalRegressionSmear (double val)
 
void setEcalScale (double val)
 set scale corrections / smearings More...
 
void setEcalSmear (double val)
 
void setEcalTrackRegressionEnergy (double val, double err)
 set regression2 More...
 
void setEcalTrackRegressionScale (double val)
 
void setEcalTrackRegressionSmear (double val)
 
void setElectronIDs (const std::vector< IdPair > &ids)
 Store multiple electron ID values, discarding existing ones. The first one in the list becomes the 'default' electron id. More...
 
void setIsolationPUPPI (float chargedhadrons_, float neutralhadrons_, float photons_)
 sets PUPPI isolations More...
 
void setIsolationPUPPINoLeptons (float chargedhadrons_, float neutralhadrons_, float photons_)
 sets PUPPINoLeptons isolations More...
 
void setIsPF (bool hasPFCandidate)
 
void setMvaVariables (double sigmaIetaIphi, double ip3d)
 set missing mva input variables More...
 
void setPassConversionVeto (bool flag)
 
void setPFCandidateRef (const reco::PFCandidateRef &ref)
 add a reference to the source IsolatedPFCandidate More...
 
float sigmaIetaIphi () const
 
reco::CandidatePtr sourceCandidatePtr (size_type i) const override
 get the source candidate pointer with index i More...
 
reco::SuperClusterRef superCluster () const override
 override the reco::GsfElectron::superCluster method, to access the internal storage of the supercluster More...
 
reco::TrackRef track () const override
 returns nothing. Use either gsfTrack or closestCtfTrack More...
 
float trackIso () const
 Overload of pat::Lepton::trackIso(); returns the value of the summed track pt in a cone of deltaR<0.4. More...
 
 ~Electron () override
 destructor More...
 
- Public Member Functions inherited from pat::Lepton< reco::GsfElectron >
float caloIso () const
 
float chargedHadronIso () const
 
Lepton< reco::GsfElectron > * clone () const override
 
float ecalIso () const
 
const IsoDepositecalIsoDeposit () const
 
void ecalIsoDeposit (const IsoDeposit &dep)
 
const reco::GenParticlegenLepton () const
 
float hcalIso () const
 
const IsoDeposithcalIsoDeposit () const
 
void hcalIsoDeposit (const IsoDeposit &dep)
 
const IsoDepositisoDeposit (IsolationKeys key) const
 Returns the IsoDeposit associated with some key, or a null pointer if it is not available. More...
 
 Lepton ()
 default constructor More...
 
 Lepton (const reco::GsfElectron &aLepton)
 constructor from LeptonType More...
 
 Lepton (const edm::RefToBase< reco::GsfElectron > &aLeptonRef)
 constructor from ref to LeptonType More...
 
 Lepton (const edm::Ptr< reco::GsfElectron > &aLeptonRef)
 constructor from ref to LeptonType More...
 
const PFIsolationminiPFIsolation () const
 
float neutralHadronIso () const
 
float particleIso () const
 
float photonIso () const
 
float puChargedHadronIso () const
 
void setEcalIso (float caloIso)
 Sets ecal isolation variable. More...
 
void setGenLepton (const reco::GenParticleRef &gl, bool embed=false)
 
void setHcalIso (float caloIso)
 Sets hcal isolation variable. More...
 
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 setMiniPFIsolation (PFIsolation const &iso)
 
void setTrackIso (float trackIso)
 Sets tracker isolation variable. More...
 
void setUserIso (float value, uint8_t index=0)
 Sets user isolation variable index. More...
 
float trackIso () const
 
const IsoDeposittrackIsoDeposit () const
 
void trackIsoDeposit (const IsoDeposit &dep)
 
float userIso (uint8_t index=0) const
 
const IsoDeposituserIsoDeposit (uint8_t index=0) const
 
void userIsoDeposit (const IsoDeposit &dep, uint8_t index=0)
 
float userIsolation (IsolationKeys key) const
 
float userIsolation (const std::string &key) const
 
 ~Lepton () override
 destructor More...
 
- Public Member Functions inherited from pat::PATObject< reco::GsfElectron >
void addGenParticleRef (const reco::GenParticleRef &ref)
 
void addTriggerObjectMatch (const TriggerObjectStandAlone &trigObj)
 add a trigger match More...
 
void addUserCand (const std::string &label, const reco::CandidatePtr &data, const bool overwrite=false)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false, bool overwrite=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data, bool overwrite=false)
 
void addUserFloat (const std::string &label, float data, const bool overwrite=false)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data, const bool overwrite=false)
 Set user-defined int. More...
 
std::vector< std::pair< std::string, pat::LookupTableRecord > > efficiencies () const
 Returns the efficiencies as <name,value> pairs (by value) More...
 
const pat::LookupTableRecordefficiency (const std::string &name) const
 Returns an efficiency given its name. More...
 
const std::vector< std::string > & efficiencyNames () const
 Returns the list of the names of the stored efficiencies. More...
 
const std::vector< pat::LookupTableRecord > & efficiencyValues () const
 Returns the list of the values of the stored efficiencies (the ordering is the same as in efficiencyNames()) More...
 
void embedGenParticle ()
 
const reco::GenParticlegenParticle (size_t idx=0) const
 
reco::GenParticleRef genParticleById (int pdgId, int status, uint8_t autoCharge=0) const
 
reco::GenParticleRef genParticleRef (size_t idx=0) const
 
std::vector< reco::GenParticleRefgenParticleRefs () const
 
size_t genParticlesSize () const
 Number of generator level particles stored as ref or embedded. More...
 
const pat::CandKinResolutiongetKinResolution (const std::string &label="") const
 
bool hasKinResolution (const std::string &label="") const
 Check if the kinematic resolutions are stored into this object (possibly specifying a label for them) More...
 
bool hasOverlaps (const std::string &label) const
 Returns true if there was at least one overlap for this test label. More...
 
bool hasUserCand (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
bool hasUserData (const std::string &key) const
 Check if user data with a specific type is present. More...
 
bool hasUserFloat (const std::string &key) const
 Return true if there is a user-defined float with a given name. More...
 
bool hasUserFloat (const char *key) const
 a CINT-friendly interface More...
 
bool hasUserInt (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
const reco::CandidateoriginalObject () const
 access to the original object; returns zero for null Ref and throws for unavailable collection More...
 
const edm::Ptr< reco::Candidate > & originalObjectRef () const
 reference to original object. Returns a null reference if not available More...
 
const std::vector< std::string > & overlapLabels () const
 Returns the labels of the overlap tests that found at least one overlap. More...
 
const reco::CandidatePtrVectoroverlaps (const std::string &label) const
 
 PATObject ()
 default constructor More...
 
 PATObject (const reco::GsfElectron &obj)
 constructor from a base object (leaves invalid reference to original object!) More...
 
 PATObject (const edm::RefToBase< reco::GsfElectron > &ref)
 constructor from reference More...
 
 PATObject (const edm::Ptr< reco::GsfElectron > &ref)
 constructor from reference More...
 
double resolE (const std::string &label="") const
 Resolution on energy, possibly with a label to specify which resolution to use. More...
 
double resolEt (const std::string &label="") const
 Resolution on et, possibly with a label to specify which resolution to use. More...
 
double resolEta (const std::string &label="") const
 Resolution on eta, possibly with a label to specify which resolution to use. More...
 
double resolM (const std::string &label="") const
 
double resolP (const std::string &label="") const
 Resolution on p, possibly with a label to specify which resolution to use. More...
 
double resolPhi (const std::string &label="") const
 Resolution on phi, possibly with a label to specify which resolution to use. More...
 
double resolPInv (const std::string &label="") const
 Resolution on 1/p, possibly with a label to specify which resolution to use. More...
 
double resolPt (const std::string &label="") const
 Resolution on pt, possibly with a label to specify which resolution to use. More...
 
double resolPx (const std::string &label="") const
 Resolution on px, possibly with a label to specify which resolution to use. More...
 
double resolPy (const std::string &label="") const
 Resolution on py, possibly with a label to specify which resolution to use. More...
 
double resolPz (const std::string &label="") const
 Resolution on pz, possibly with a label to specify which resolution to use. More...
 
double resolTheta (const std::string &label="") const
 Resolution on theta, possibly with a label to specify which resolution to use. More...
 
void setEfficiency (const std::string &name, const pat::LookupTableRecord &value)
 
void setGenParticle (const reco::GenParticle &particle)
 Set the generator level particle from a particle not in the Event (embedding it, of course) More...
 
void setGenParticleRef (const reco::GenParticleRef &ref, bool embed=false)
 Set the generator level particle reference. More...
 
void setKinResolution (const pat::CandKinResolution &resol, const std::string &label="")
 Add a kinematic resolution to this object (possibly with a label) More...
 
void setOverlaps (const std::string &label, const reco::CandidatePtrVector &overlaps)
 
const TriggerObjectStandAlonetriggerObjectMatch (const size_t idx=0) const
 get one matched trigger object by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const
 get one matched trigger object from a certain collection by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const char *coll, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const std::string &nameCondition, const size_t idx=0) const
 get one matched L1 object used in a succeeding object combination of a certain L1 condition by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const std::string &labelFilter, const size_t idx=0) const
 get one matched HLT object used in a certain HLT filter by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const
 get one matched trigger object of a certain type by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAloneCollectiontriggerObjectMatches () const
 get all matched trigger objects More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const std::string &coll) const
 get all matched trigger objects from a certain collection More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const char *coll) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const std::string &nameCondition) const
 get all matched L1 objects used in a succeeding object combination of a certain L1 condition More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const char *nameCondition) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const std::string &labelFilter) const
 get all matched HLT objects used in a certain HLT filter More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const char *labelFilter) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const unsigned triggerObjectType) const
 
void unpackTriggerObjectPathNames (const edm::TriggerNames &names)
 unpack path names of matched trigger objects (if they were packed before embedding, which is not normally the case) More...
 
reco::CandidatePtr userCand (const std::string &key) const
 
const std::vector< std::string > & userCandNames () const
 Get list of user-defined cand names. More...
 
const TuserData (const std::string &key) const
 Returns user-defined data. Returns NULL if the data is not present, or not of type T. More...
 
const void * userDataBare (const std::string &key) const
 
const std::vector< std::string > & userDataNames () const
 Get list of user data object names. More...
 
const std::string & userDataObjectType (const std::string &key) const
 Get human-readable type of user data object, for debugging. More...
 
float userFloat (const std::string &key) const
 
float userFloat (const char *key) const
 a CINT-friendly interface More...
 
const std::vector< std::string > & userFloatNames () const
 Get list of user-defined float names. More...
 
std::vector< float > userFloatRange (const std::string &key) const
 return a range of values corresponding to key More...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
std::vector< int > userIntRange (const std::string &key) const
 returns a range of values corresponding to key More...
 
 ~PATObject () override
 destructor More...
 
- Public Member Functions inherited from reco::GsfElectron
void addAmbiguousGsfTrack (const reco::GsfTrackRef &t)
 
bool ambiguous () const
 
auto const & ambiguousGsfTracks () const
 
GsfTrackRefVector::size_type ambiguousGsfTracksSize () const
 
CaloCluster_iterator basicClustersBegin () const
 
CaloCluster_iterator basicClustersEnd () const
 
int basicClustersSize () const
 
float caloEnergy () const
 
math::XYZPoint caloPosition () const
 
P4Kind candidateP4Kind () const
 
const ChargeInfochargeInfo () const
 
Classification classification () const
 
const ClassificationVariablesclassificationVariables () const
 
void clearAmbiguousGsfTracks ()
 
GsfElectronclone (const GsfElectronCoreRef &core, const CaloClusterPtr &electronCluster, const TrackRef &closestCtfTrack, const TrackBaseRef &conversionPartner, const GsfTrackRefVector &ambiguousTracks) const
 
virtual ClosestCtfTrack closestCtfTrack () const
 
int closestCtfTrackNLayers () const
 
float closestCtfTrackNormChi2 () const
 
bool closestCtfTrackRefValid () const
 
float convDcot () const
 
float convDist () const
 
const ConversionRejectionconversionRejectionVariables () const
 
int convFlags () const
 
TrackBaseRef convPartner () const
 
float convRadius () const
 
float convVtxFitProb () const
 
void correctEcalEnergy (float newEnergy, float newEnergyError, bool corrEovP=true)
 
float correctedEcalEnergy () const
 
float correctedEcalEnergyError () const
 
const Correctionscorrections () const
 
void correctMomentum (const LorentzVector &p4, float trackMomentumError, float p4Error)
 
float ctfGsfOverlap () const
 
float deltaEtaEleClusterTrackAtCalo () const
 
float deltaEtaSeedClusterTrackAtCalo () const
 
float deltaEtaSeedClusterTrackAtVtx () const
 
float deltaEtaSuperClusterTrackAtVtx () const
 
float deltaPhiEleClusterTrackAtCalo () const
 
float deltaPhiSeedClusterTrackAtCalo () const
 
float deltaPhiSuperClusterTrackAtVtx () const
 
float dnn_bkg_nonIsolated () const
 
float dnn_bkg_Photon () const
 
float dnn_bkg_Tau () const
 
float dnn_signal_Isolated () const
 
float dnn_signal_nonIsolated () const
 
float dr03EcalRecHitSumEt () const
 
float dr03HcalTowerSumEt (int depth=0) const
 
float dr03HcalTowerSumEtBc (int depth=0) const
 
const IsolationVariablesdr03IsolationVariables () const
 
float dr03TkSumPt () const
 
float dr03TkSumPtHEEP () const
 
float dr04EcalRecHitSumEt () const
 
float dr04HcalTowerSumEt (int depth=0) const
 
float dr04HcalTowerSumEtBc (int depth=0) const
 
const IsolationVariablesdr04IsolationVariables () const
 
float dr04TkSumPt () const
 
float dr04TkSumPtHEEP () const
 
float e1x5 () const
 
float e2x5Max () const
 
float e5x5 () const
 
float eBottom () const
 
bool ecalDriven () const
 
bool ecalDrivenSeed () const
 
float ecalEnergy () const
 
float ecalEnergyError () const
 
float ecalPFClusterIso () const
 
float eEleClusterOverPout () const
 
CaloClusterPtr electronCluster () const
 
float eLeft () const
 
float eRight () const
 
float eSeedClusterOverP () const
 
float eSeedClusterOverPout () const
 
float eSuperClusterOverP () const
 
float eTop () const
 
float fbrem () const
 
const FiducialFlagsfiducialFlags () const
 
float full5x5_e1x5 () const
 
float full5x5_e2x5Bottom () const
 
float full5x5_e2x5Left () const
 
float full5x5_e2x5Max () const
 
float full5x5_e2x5Right () const
 
float full5x5_e2x5Top () const
 
float full5x5_e5x5 () const
 
float full5x5_eBottom () const
 
float full5x5_eLeft () const
 
float full5x5_eRight () const
 
float full5x5_eTop () const
 
float full5x5_hcalOverEcal (int depth=0) const
 
float full5x5_hcalOverEcalBc (int depth=0) const
 
bool full5x5_hcalOverEcalValid () const
 
float full5x5_r9 () const
 
void full5x5_setShowerShape (const ShowerShape &s)
 
const ShowerShapefull5x5_showerShape () const
 
float full5x5_sigmaEtaEta () const
 
float full5x5_sigmaIetaIeta () const
 
float full5x5_sigmaIphiIphi () const
 
 GsfElectron ()
 
 GsfElectron (const GsfElectronCoreRef &)
 
 GsfElectron (const GsfElectron &, const GsfElectronCoreRef &)
 
 GsfElectron (const GsfElectron &electron, const GsfElectronCoreRef &core, const CaloClusterPtr &electronCluster, const TrackRef &closestCtfTrack, const TrackBaseRef &conversionPartner, const GsfTrackRefVector &ambiguousTracks)
 
 GsfElectron (int charge, const ChargeInfo &, const GsfElectronCoreRef &, const TrackClusterMatching &, const TrackExtrapolations &, const ClosestCtfTrack &, const FiducialFlags &, const ShowerShape &, const ConversionRejection &)
 
 GsfElectron (int charge, const ChargeInfo &, const GsfElectronCoreRef &, const TrackClusterMatching &, const TrackExtrapolations &, const ClosestCtfTrack &, const FiducialFlags &, const ShowerShape &, const ShowerShape &, const ConversionRejection &, const SaturationInfo &)
 
float hadronicOverEm () const
 
float hcalOverEcal (const ShowerShape &ss, int depth) const
 
float hcalOverEcal (int depth=0) const
 
float hcalOverEcalBc (const ShowerShape &ss, int depth) const
 
float hcalOverEcalBc (int depth=0) const
 
bool hcalOverEcalValid () const
 
float hcalPFClusterIso () const
 
void hcalToRun2EffDepth ()
 
const std::vector< CaloTowerDetId > & hcalTowersBehindClusters () const
 
float hcalTowerSumEt (const IsolationVariables &iv, int depth) const
 
float hcalTowerSumEtBc (const IsolationVariables &iv, int depth) const
 
bool isEB () const
 
bool isEBEEGap () const
 
bool isEBEtaGap () const
 
bool isEBGap () const
 
bool isEBPhiGap () const
 
bool isEcalEnergyCorrected () const
 
bool isEE () const
 
bool isEEDeeGap () const
 
bool isEEGap () const
 
bool isEERingGap () const
 
bool isElectron () const override
 
bool isEnergyScaleCorrected () const
 
bool isGap () const
 
bool isGsfCtfChargeConsistent () const
 
bool isGsfCtfScPixChargeConsistent () const
 
bool isGsfScPixChargeConsistent () const
 
const IsolationVariablesisolationVariables03 () const
 
const IsolationVariablesisolationVariables04 () const
 
float isSeedSaturated () const
 
float mva_e_pi () const
 
float mva_Isolated () const
 
const MvaInputmvaInput () const
 
const MvaOutputmvaOutput () const
 
float nSaturatedXtals () const
 
int numberOfBrems () const
 
bool overlap (const Candidate &) const override
 check overlap with another candidate More...
 
const LorentzVectorp4 (P4Kind kind) const
 
float p4Error (P4Kind kind) const
 
bool passingCutBasedPreselection () const
 
bool passingMvaPreselection () const
 
bool passingPflowPreselection () const
 
const PflowIsolationVariablespfIsolationVariables () const
 
float pixelMatchDPhi1 () const
 
float pixelMatchDPhi2 () const
 
float pixelMatchDRz1 () const
 
float pixelMatchDRz2 () const
 
int pixelMatchSubdetector1 () const
 
int pixelMatchSubdetector2 () const
 
float r9 () const
 
const SaturationInfosaturationInfo () const
 
float scE1x5 () const
 
float scE2x5Max () const
 
float scE5x5 () const
 
int scPixCharge () const
 
float scSigmaEtaEta () const
 
float scSigmaIEtaIEta () const
 
void setAmbiguous (bool flag)
 
void setClassification (Classification myclass)
 
void setClassificationVariables (const ClassificationVariables &cv)
 
void setConversionRejectionVariables (const ConversionRejection &convRej)
 
void setCore (const reco::GsfElectronCoreRef &core)
 
void setCorrectedEcalEnergy (float newEnergy)
 
void setCorrectedEcalEnergy (float newEnergy, bool rescaleDependentValues)
 
void setCorrectedEcalEnergyError (float newEnergyError)
 
void setCorrections (const Corrections &c)
 
void setDeltaEtaSuperClusterAtVtx (float de)
 
void setDeltaPhiSuperClusterAtVtx (float dphi)
 
void setDr03Isolation (const IsolationVariables &dr03)
 
void setDr04Isolation (const IsolationVariables &dr04)
 
void setEcalEnergyError (float energyError)
 
void setFFlagIsEB (const bool b)
 
void setFFlagIsEBEEGap (const bool b)
 
void setFFlagIsEBEtaGap (const bool b)
 
void setFFlagIsEBPhiGap (const bool b)
 
void setFFlagIsEE (const bool b)
 
void setFFlagIsEEDeeGap (const bool b)
 
void setFFlagIsEERingGap (const bool b)
 
void setIsolation03 (const IsolationVariables &dr03)
 
void setIsolation04 (const IsolationVariables &dr04)
 
void setMvaInput (const MvaInput &mi)
 
void setMvaOutput (const MvaOutput &mo)
 
void setP4 (P4Kind kind, const LorentzVector &p4, float p4Error, bool setCandidate)
 
void setPassCutBasedPreselection (bool flag)
 
void setPassMvaPreselection (bool flag)
 
void setPassPflowPreselection (bool flag)
 
void setPfIsolationVariables (const PflowIsolationVariables &iso)
 
void setPixelMatchDPhi1 (float dPhi1)
 
void setPixelMatchDPhi2 (float dPhi2)
 
void setPixelMatchDRz1 (float dRz1)
 
void setPixelMatchDRz2 (float dRz2)
 
void setPixelMatchSubdetectors (int sd1, int sd2)
 
void setSaturationInfo (const SaturationInfo &s)
 
void setShowerShape (const ShowerShape &s)
 
void setSuperClusterFbrem (float fbrem)
 
void setTrackExtrapolations (const TrackExtrapolations &te)
 
void setTrackFbrem (float fbrem)
 
void setTrackMomentumError (float trackMomentumError)
 
float shFracInnerHits () const
 
const ShowerShapeshowerShape () const
 
float sigmaEtaEta () const
 
float sigmaIetaIeta () const
 
float sigmaIphiIphi () const
 
float superClusterFbrem () const
 
math::XYZPoint superClusterPosition () const
 
const TrackClusterMatchingtrackClusterMatching () const
 
bool trackerDrivenSeed () const
 
const TrackExtrapolationstrackExtrapolations () const
 
float trackFbrem () const
 
math::XYZVectorF trackMomentumAtCalo () const
 
math::XYZVectorF trackMomentumAtEleClus () const
 
math::XYZVectorF trackMomentumAtVtx () const
 
math::XYZVectorF trackMomentumAtVtxWithConstraint () const
 
float trackMomentumError () const
 
math::XYZVectorF trackMomentumOut () const
 
math::XYZPointF trackPositionAtCalo () const
 
math::XYZPointF TrackPositionAtCalo () const
 
math::XYZPointF trackPositionAtVtx () const
 
math::XYZPointF TrackPositionAtVtx () const
 
 ~GsfElectron () override
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const override
 best track pointer More...
 
virtual TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
virtual TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
float dxyError () const override
 uncertainty on dxy More...
 
float dzError () const override
 uncertainty on dz More...
 
virtual 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 (size_t) const
 reference to one of multiple Tracks More...
 
 ~RecoCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isGlobalMuon () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isPhoton () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&... args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
 Candidate ()
 default constructor More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Protected Member Functions

void initImpactParameters ()
 init impact parameter defaults (for use in a constructor) More...
 
- Protected Member Functions inherited from pat::PATObject< reco::GsfElectron >
void addUserDataObject_ (const std::string &label, std::unique_ptr< pat::UserData > value, bool overwrite=false)
 
- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 

Protected Attributes

std::vector< uint16_t > associatedPackedFCandidateIndices_
 
std::vector< reco::CaloClusterbasicClusters_
 Place to store electron's basic clusters internally. More...
 
uint8_t cachedIP_
 True if the IP (former dB) has been cached. More...
 
LorentzVector ecalDrivenMomentum_
 ECAL-driven momentum. More...
 
double ecalRegressionEnergy_
 output of regression More...
 
double ecalRegressionError_
 
double ecalRegressionScale_
 
double ecalRegressionSmear_
 
double ecalScale_
 scale corrections and smearing applied or to be be applied. Initialized to -99999. More...
 
double ecalSmear_
 
double ecalTrackRegressionEnergy_
 
double ecalTrackRegressionError_
 
double ecalTrackRegressionScale_
 
double ecalTrackRegressionSmear_
 
float eip_ [IpTypeSize]
 Impact parameter uncertainty as recommended by the tracking group. More...
 
std::vector< IdPairelectronIDs_
 Electron IDs. More...
 
bool embeddedGsfElectronCore_
 True if electron's gsfElectronCore is stored internally. More...
 
bool embeddedGsfTrack_
 True if electron's gsfTrack is stored internally. More...
 
bool embeddedPFCandidate_
 true if the IsolatedPFCandidate is embedded More...
 
bool embeddedPflowSuperCluster_
 True if electron's pflowsupercluster is stored internally. More...
 
bool embeddedRecHits_
 True if RecHits stored internally. More...
 
bool embeddedSeedCluster_
 True if seed cluster is stored internally. More...
 
bool embeddedSuperCluster_
 True if electron's supercluster is stored internally. More...
 
bool embeddedTrack_
 True if electron's track is stored internally. More...
 
float full5x5_sigmaIetaIphi_
 
std::vector< reco::GsfElectronCoregsfElectronCore_
 Place to store electron's gsfElectronCore internally. More...
 
std::vector< reco::GsfTrackgsfTrack_
 Place to store electron's gsfTrack internally. More...
 
double ip3d_
 
float ip_ [IpTypeSize]
 Impact parameter at the primary vertex,. More...
 
bool isPF_
 
edm::RefProd< pat::PackedCandidateCollectionpackedPFCandidates_
 
bool passConversionVeto_
 conversion veto More...
 
reco::PFCandidateCollection pfCandidate_
 A copy of the source IsolatedPFCandidate is stored in this vector if embeddedPFCandidate_ if True. More...
 
reco::PFCandidateRef pfCandidateRef_
 reference to the IsolatedPFCandidate this has been built from; null if this has been built from a standard electron More...
 
std::vector< reco::CaloClusterpflowBasicClusters_
 Place to store electron's pflow basic clusters internally. More...
 
std::vector< reco::CaloClusterpflowPreshowerClusters_
 Place to store electron's pflow preshower clusters internally. More...
 
std::vector< reco::SuperClusterpflowSuperCluster_
 Place to store electron's pflow supercluster internally. More...
 
std::vector< reco::CaloClusterpreshowerClusters_
 Place to store electron's preshower clusters internally. More...
 
float puppiChargedHadronIso_
 PUPPI isolations. More...
 
float puppiNeutralHadronIso_
 
float puppiNoLeptonsChargedHadronIso_
 PUPPINoLeptons isolations. More...
 
float puppiNoLeptonsNeutralHadronIso_
 
float puppiNoLeptonsPhotonIso_
 
float puppiPhotonIso_
 
EcalRecHitCollection recHits_
 Place to store electron's RecHits internally (5x5 around seed+ all RecHits) More...
 
std::vector< reco::CaloClusterseedCluster_
 Place to store electron's seed cluster internally. More...
 
float sigmaIetaIphi_
 additional missing mva variables : 14/04/2012 More...
 
std::vector< reco::SuperClustersuperCluster_
 Place to store electron's supercluster internally. More...
 
edm::AtomicPtrCache< std::vector< reco::SuperCluster > > superClusterRelinked_
 Place to temporarily store the electron's supercluster after relinking the seed to it. More...
 
std::vector< reco::Tracktrack_
 Place to store electron's track internally. More...
 
- Protected Attributes inherited from pat::Lepton< reco::GsfElectron >
IsoDepositPairs isoDeposits_
 
std::vector< float > isolations_
 
PFIsolation miniPFIsolation_
 
- Protected Attributes inherited from pat::PATObject< reco::GsfElectron >
std::vector< std::string > efficiencyNames_
 vector of the efficiencies (names) More...
 
std::vector< pat::LookupTableRecordefficiencyValues_
 vector of the efficiencies (values) More...
 
std::vector< reco::GenParticlegenParticleEmbedded_
 vector to hold an embedded generator level particle More...
 
std::vector< reco::GenParticleRefgenParticleRef_
 Reference to a generator level particle. More...
 
std::vector< std::string > kinResolutionLabels_
 
std::vector< pat::CandKinResolutionkinResolutions_
 Kinematic resolutions. More...
 
std::vector< reco::CandidatePtrVectoroverlapItems_
 Overlapping items (sorted by distance) More...
 
std::vector< std::string > overlapLabels_
 Overlapping test labels (only if there are any overlaps) More...
 
edm::Ptr< reco::CandidaterefToOrig_
 
TriggerObjectStandAloneCollection triggerObjectMatchesEmbedded_
 vector of trigger matches More...
 
std::vector< std::string > userCandLabels_
 
std::vector< reco::CandidatePtruserCands_
 
std::vector< std::string > userDataLabels_
 User data object. More...
 
pat::UserDataCollection userDataObjects_
 
std::vector< std::string > userFloatLabels_
 
std::vector< float > userFloats_
 
std::vector< std::string > userIntLabels_
 
std::vector< int32_t > userInts_
 

Friends

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

Additional Inherited Members

- Static Public Attributes inherited from reco::GsfElectron
static constexpr float mvaPlaceholder = -999999999.
 
- Protected Types inherited from pat::Lepton< reco::GsfElectron >
typedef std::vector< std::pair< IsolationKeys, pat::IsoDeposit > > IsoDepositPairs
 

Detailed Description

Analysis-level electron class.

pat::Electron implements the analysis-level electron 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 51 of file Electron.h.

Member Typedef Documentation

◆ IdPair

typedef std::pair<std::string, float> pat::Electron::IdPair

Definition at line 53 of file Electron.h.

◆ IpType

Member Enumeration Documentation

◆ IPTYPE

Enumerator
PV2D 
PV3D 
BS2D 
BS3D 
PVDZ 
IpTypeSize 

Definition at line 190 of file Electron.h.

Constructor & Destructor Documentation

◆ Electron() [1/4]

pat::Electron::Electron ( )

default constructor

Referenced by clone().

◆ Electron() [2/4]

pat::Electron::Electron ( const reco::GsfElectron anElectron)

constructor from reco::GsfElectron

◆ Electron() [3/4]

pat::Electron::Electron ( const edm::RefToBase< reco::GsfElectron > &  anElectronRef)

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

◆ Electron() [4/4]

pat::Electron::Electron ( const edm::Ptr< reco::GsfElectron > &  anElectronRef)

constructor from a Ptr to a reco::GsfElectron

◆ ~Electron()

pat::Electron::~Electron ( )
override

destructor

Member Function Documentation

◆ associatedPackedPFCandidates()

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

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

Referenced by ElectronPFIsolationWithMapBasedVeto::isInIsolationCone(), and PuppiPhoton::produce().

◆ basicClusters()

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

Definition at line 86 of file Electron.h.

References basicClusters_.

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

◆ caloIso()

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

Overload of pat::Lepton::caloIso(); returns the sum of ecalIso() and hcalIso.

Definition at line 151 of file Electron.h.

References ecalIso(), and hcalIso().

151 { return ecalIso() + hcalIso(); }
float ecalIso() const
Overload of pat::Lepton::ecalIso(); returns the value of the summed Et of all recHits in the ecal in ...
Definition: Electron.h:147
float hcalIso() const
Overload of pat::Lepton::hcalIso(); returns the value of the summed Et of all caloTowers in the hcal ...
Definition: Electron.h:149

◆ clone()

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

required reimplementation of the Candidate's clone method

Reimplemented from reco::GsfElectron.

Definition at line 67 of file Electron.h.

References Electron().

67 { return new Electron(*this); }
Electron()
default constructor

◆ closestCtfTrackRef()

reco::TrackRef pat::Electron::closestCtfTrackRef ( ) const
overridevirtual

override the reco::GsfElectron::closestCtfTrackRef method, to access the internal storage of the track

Reimplemented from reco::GsfElectron.

Referenced by BPHTrackReference::getElecTC(), EGammaMvaEleEstimatorCSA14::mvaValue(), and EGammaMvaEleEstimator::mvaValue().

◆ core()

reco::GsfElectronCoreRef pat::Electron::core ( ) const
overridevirtual

override the virtual reco::GsfElectron::core method, so that the embedded core can be used by GsfElectron client methods

Reimplemented from reco::GsfElectron.

Referenced by LowPtConversion::match().

◆ dB() [1/2]

double pat::Electron::dB ( IPTYPE  type) const

Impact parameter wrt primary vertex or beamspot.

Referenced by Lepton.Lepton::ip3D(), EGammaMvaEleEstimator::mvaValue(), and Lepton.Lepton::sip3D().

◆ dB() [2/2]

double pat::Electron::dB ( ) const
inline

the version without arguments returns PD2D, but with an absolute value (for backwards compatibility)

Definition at line 196 of file Electron.h.

References funct::abs(), dB(), and PV2D.

Referenced by dB(), Lepton.Lepton::ip3D(), and Lepton.Lepton::sip3D().

196 { return std::abs(dB(PV2D)); }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double dB() const
the version without arguments returns PD2D, but with an absolute value (for backwards compatibility) ...
Definition: Electron.h:196

◆ ecalDrivenMomentum()

const LorentzVector& pat::Electron::ecalDrivenMomentum ( ) const
inline

Definition at line 203 of file Electron.h.

References ecalDrivenMomentum_.

203 { return ecalDrivenMomentum_; }
LorentzVector ecalDrivenMomentum_
ECAL-driven momentum.
Definition: Electron.h:332

◆ ecalIso()

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

Overload of pat::Lepton::ecalIso(); returns the value of the summed Et of all recHits in the ecal in a cone of deltaR<0.4.

Definition at line 147 of file Electron.h.

References reco::GsfElectron::dr04EcalRecHitSumEt().

Referenced by caloIso().

147 { return dr04EcalRecHitSumEt(); }
float dr04EcalRecHitSumEt() const
Definition: GsfElectron.h:599

◆ ecalRegressionEnergy()

double pat::Electron::ecalRegressionEnergy ( ) const
inline

additional regression variables regression1

Definition at line 224 of file Electron.h.

References ecalRegressionEnergy_.

224 { return ecalRegressionEnergy_; }
double ecalRegressionEnergy_
output of regression
Definition: Electron.h:339

◆ ecalRegressionError()

double pat::Electron::ecalRegressionError ( ) const
inline

Definition at line 225 of file Electron.h.

References ecalRegressionError_.

225 { return ecalRegressionError_; }
double ecalRegressionError_
Definition: Electron.h:341

◆ ecalRegressionScale()

double pat::Electron::ecalRegressionScale ( ) const
inline

Definition at line 251 of file Electron.h.

References ecalRegressionScale_.

251 { return ecalRegressionScale_; }
double ecalRegressionScale_
Definition: Electron.h:348

◆ ecalRegressionSmear()

double pat::Electron::ecalRegressionSmear ( ) const
inline

Definition at line 252 of file Electron.h.

References ecalRegressionSmear_.

252 { return ecalRegressionSmear_; }
double ecalRegressionSmear_
Definition: Electron.h:349

◆ ecalScale()

double pat::Electron::ecalScale ( ) const
inline

get scale corrections /smearings

Definition at line 249 of file Electron.h.

References ecalScale_.

249 { return ecalScale_; }
double ecalScale_
scale corrections and smearing applied or to be be applied. Initialized to -99999.
Definition: Electron.h:345

◆ ecalSmear()

double pat::Electron::ecalSmear ( ) const
inline

Definition at line 250 of file Electron.h.

References ecalSmear_.

250 { return ecalSmear_; }
double ecalSmear_
Definition: Electron.h:346

◆ ecalTrackRegressionEnergy()

double pat::Electron::ecalTrackRegressionEnergy ( ) const
inline

regression2

Definition at line 227 of file Electron.h.

References ecalTrackRegressionEnergy_.

227 { return ecalTrackRegressionEnergy_; }
double ecalTrackRegressionEnergy_
Definition: Electron.h:340

◆ ecalTrackRegressionError()

double pat::Electron::ecalTrackRegressionError ( ) const
inline

Definition at line 228 of file Electron.h.

References ecalTrackRegressionError_.

228 { return ecalTrackRegressionError_; }
double ecalTrackRegressionError_
Definition: Electron.h:342

◆ ecalTrackRegressionScale()

double pat::Electron::ecalTrackRegressionScale ( ) const
inline

Definition at line 253 of file Electron.h.

References ecalTrackRegressionScale_.

253 { return ecalTrackRegressionScale_; }
double ecalTrackRegressionScale_
Definition: Electron.h:351

◆ ecalTrackRegressionSmear()

double pat::Electron::ecalTrackRegressionSmear ( ) const
inline

Definition at line 254 of file Electron.h.

References ecalTrackRegressionSmear_.

254 { return ecalTrackRegressionSmear_; }
double ecalTrackRegressionSmear_
Definition: Electron.h:352

◆ edB() [1/2]

double pat::Electron::edB ( IPTYPE  type) const

Uncertainty on the corresponding impact parameter.

Referenced by EGammaMvaEleEstimator::mvaValue(), and Lepton.Lepton::sip3D().

◆ edB() [2/2]

double pat::Electron::edB ( ) const
inline

the version without arguments returns PD2D, but with an absolute value (for backwards compatibility)

Definition at line 198 of file Electron.h.

References funct::abs(), edB(), and PV2D.

Referenced by edB(), and Lepton.Lepton::sip3D().

198 { return std::abs(edB(PV2D)); }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double edB() const
the version without arguments returns PD2D, but with an absolute value (for backwards compatibility) ...
Definition: Electron.h:198

◆ electronID() [1/2]

float pat::Electron::electronID ( const std::string &  name) const

Returns a specific electron ID associated to the pat::Electron given its name.

◆ electronID() [2/2]

float pat::Electron::electronID ( const char *  name) const
inline

Definition at line 134 of file Electron.h.

References electronID(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by electronID().

134 { return electronID(std::string(name)); }
float electronID(const std::string &name) const
Returns a specific electron ID associated to the pat::Electron given its name.

◆ electronIDs()

const std::vector<IdPair>& pat::Electron::electronIDs ( ) const
inline

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

Definition at line 139 of file Electron.h.

References electronIDs_.

Referenced by Electron.Electron::electronID().

139 { return electronIDs_; }
std::vector< IdPair > electronIDs_
Electron IDs.
Definition: Electron.h:319

◆ embedBasicClusters()

void pat::Electron::embedBasicClusters ( )

method to store the electron's basic clusters

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedGsfElectronCore()

void pat::Electron::embedGsfElectronCore ( )

method to store the electron's core internally

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedGsfTrack()

void pat::Electron::embedGsfTrack ( )

method to store the electron's GsfTrack internally

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedPFCandidate()

void pat::Electron::embedPFCandidate ( )

embed the PFCandidate pointed to by pfCandidateRef_

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

◆ embedPflowBasicClusters()

void pat::Electron::embedPflowBasicClusters ( )

method to store the electron's pflow basic clusters

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedPflowPreshowerClusters()

void pat::Electron::embedPflowPreshowerClusters ( )

method to store the electron's pflow preshower clusters

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedPflowSuperCluster()

void pat::Electron::embedPflowSuperCluster ( )

method to store the electron's PflowSuperCluster internally

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedPreshowerClusters()

void pat::Electron::embedPreshowerClusters ( )

method to store the electron's preshower clusters

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedRecHits()

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

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

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

◆ embedSeedCluster()

void pat::Electron::embedSeedCluster ( )

method to store the electron's seedcluster internally

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedSuperCluster()

void pat::Electron::embedSuperCluster ( )

method to store the electron's SuperCluster internally

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ embedTrack()

void pat::Electron::embedTrack ( )

method to store the electron's Track internally

Referenced by pat::PATElectronProducer::fillElectron(), and pat::PATElectronProducer::fillElectron2().

◆ full5x5_setSigmaIetaIphi()

void pat::Electron::full5x5_setSigmaIetaIphi ( float  sigmaIetaIphi)
inline

Definition at line 218 of file Electron.h.

References full5x5_sigmaIetaIphi_, and sigmaIetaIphi().

float full5x5_sigmaIetaIphi_
Definition: Electron.h:335
float sigmaIetaIphi() const
Definition: Electron.h:211

◆ full5x5_sigmaIetaIphi()

float pat::Electron::full5x5_sigmaIetaIphi ( ) const
inline

sigmaIEtaIPhi (from full 5x5 non-ZS clusters without fractions, a la 5.3.X)

Definition at line 213 of file Electron.h.

References full5x5_sigmaIetaIphi_.

213 { return full5x5_sigmaIetaIphi_; }
float full5x5_sigmaIetaIphi_
Definition: Electron.h:335

◆ gsfTrack()

reco::GsfTrackRef pat::Electron::gsfTrack ( ) const
overridevirtual

◆ hcalIso()

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

Overload of pat::Lepton::hcalIso(); returns the value of the summed Et of all caloTowers in the hcal in a cone of deltaR<0.4.

Definition at line 149 of file Electron.h.

References reco::GsfElectron::dr04HcalTowerSumEt().

Referenced by caloIso().

149 { return dr04HcalTowerSumEt(); }
float dr04HcalTowerSumEt(int depth=0) const
Definition: GsfElectron.h:600

◆ initImpactParameters()

void pat::Electron::initImpactParameters ( )
protected

init impact parameter defaults (for use in a constructor)

◆ ip3d()

double pat::Electron::ip3d ( ) const
inline

ip3d

Definition at line 215 of file Electron.h.

References ip3d_.

215 { return ip3d_; }
double ip3d_
Definition: Electron.h:336

◆ isElectronIDAvailable() [1/2]

bool pat::Electron::isElectronIDAvailable ( const std::string &  name) const

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

◆ isElectronIDAvailable() [2/2]

bool pat::Electron::isElectronIDAvailable ( const char *  name) const
inline

Definition at line 137 of file Electron.h.

References isElectronIDAvailable(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by isElectronIDAvailable().

bool isElectronIDAvailable(const std::string &name) const
Returns true if a specific ID is available in this pat::Electron.

◆ isPF()

bool pat::Electron::isPF ( ) const
inline

Definition at line 173 of file Electron.h.

References isPF_.

173 { return isPF_; }

◆ numberOfSourceCandidatePtrs()

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

get the number of non-null PFCandidates

Reimplemented from reco::LeafCandidate.

Definition at line 183 of file Electron.h.

References associatedPackedFCandidateIndices_, edm::Ref< C, T, F >::isNonnull(), and pfCandidateRef_.

183  {
185  }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Electron.h:377
reco::PFCandidateRef pfCandidateRef_
reference to the IsolatedPFCandidate this has been built from; null if this has been built from a sta...
Definition: Electron.h:328

◆ parentSuperCluster()

reco::SuperClusterRef pat::Electron::parentSuperCluster ( ) const
overridevirtual

override the reco::GsfElectron::pflowSuperCluster method, to access the internal storage of the pflowSuperCluster

Reimplemented from reco::GsfElectron.

◆ passConversionVeto()

bool pat::Electron::passConversionVeto ( ) const
inline

vertex fit combined with missing number of hits method

Definition at line 256 of file Electron.h.

References passConversionVeto_.

Referenced by SoftPFElectronTagInfoProducer::produce().

256 { return passConversionVeto_; }
bool passConversionVeto_
conversion veto
Definition: Electron.h:365

◆ pfCandidateRef()

reco::PFCandidateRef pat::Electron::pfCandidateRef ( ) const

reference to the source PFCandidates; null if this has been built from a standard electron

Referenced by pat::PATElectronProducer::fillElectron(), pat::PATElectronProducer::fillElectron2(), and BPHTrackReference::getElecPF().

◆ pflowBasicClusters()

const std::vector<reco::CaloCluster>& pat::Electron::pflowBasicClusters ( ) const
inline

Definition at line 90 of file Electron.h.

References pflowBasicClusters_.

90 { return pflowBasicClusters_; }
std::vector< reco::CaloCluster > pflowBasicClusters_
Place to store electron&#39;s pflow basic clusters internally.
Definition: Electron.h:299

◆ pflowPreshowerClusters()

const std::vector<reco::CaloCluster>& pat::Electron::pflowPreshowerClusters ( ) const
inline

Definition at line 92 of file Electron.h.

References pflowPreshowerClusters_.

92 { return pflowPreshowerClusters_; }
std::vector< reco::CaloCluster > pflowPreshowerClusters_
Place to store electron&#39;s pflow preshower clusters internally.
Definition: Electron.h:301

◆ preshowerClusters()

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

Definition at line 88 of file Electron.h.

References preshowerClusters_.

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

◆ puppiChargedHadronIso()

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

returns PUPPI isolations

Definition at line 153 of file Electron.h.

References puppiChargedHadronIso_.

153 { return puppiChargedHadronIso_; }
float puppiChargedHadronIso_
PUPPI isolations.
Definition: Electron.h:355

◆ puppiNeutralHadronIso()

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

Definition at line 154 of file Electron.h.

References puppiNeutralHadronIso_.

154 { return puppiNeutralHadronIso_; }
float puppiNeutralHadronIso_
Definition: Electron.h:356

◆ puppiNoLeptonsChargedHadronIso()

float pat::Electron::puppiNoLeptonsChargedHadronIso ( ) const
inline

returns PUPPINoLeptons isolations

Definition at line 157 of file Electron.h.

References puppiNoLeptonsChargedHadronIso_.

float puppiNoLeptonsChargedHadronIso_
PUPPINoLeptons isolations.
Definition: Electron.h:360

◆ puppiNoLeptonsNeutralHadronIso()

float pat::Electron::puppiNoLeptonsNeutralHadronIso ( ) const
inline

Definition at line 158 of file Electron.h.

References puppiNoLeptonsNeutralHadronIso_.

float puppiNoLeptonsNeutralHadronIso_
Definition: Electron.h:361

◆ puppiNoLeptonsPhotonIso()

float pat::Electron::puppiNoLeptonsPhotonIso ( ) const
inline

Definition at line 159 of file Electron.h.

References puppiNoLeptonsPhotonIso_.

159 { return puppiNoLeptonsPhotonIso_; }
float puppiNoLeptonsPhotonIso_
Definition: Electron.h:362

◆ puppiPhotonIso()

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

Definition at line 155 of file Electron.h.

References puppiPhotonIso_.

155 { return puppiPhotonIso_; }
float puppiPhotonIso_
Definition: Electron.h:357

◆ recHits()

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

Definition at line 220 of file Electron.h.

References recHits_.

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

◆ seed()

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

direct access to the seed cluster

◆ setAssociatedPackedPFCandidates()

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

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

Definition at line 263 of file Electron.h.

References associatedPackedFCandidateIndices_, and packedPFCandidates_.

265  {
266  packedPFCandidates_ = refprod;
268  associatedPackedFCandidateIndices_.insert(associatedPackedFCandidateIndices_.end(), beginIndexItr, endIndexItr);
269  }
edm::RefProd< pat::PackedCandidateCollection > packedPFCandidates_
Definition: Electron.h:376
std::vector< uint16_t > associatedPackedFCandidateIndices_
Definition: Electron.h:377

◆ setDB()

void pat::Electron::setDB ( double  dB,
double  edB,
IPTYPE  type 
)

Set impact parameter of a certain type and its uncertainty.

Referenced by pat::PATElectronProducer::embedHighLevel(), LowPtElectronModifier::modifyObject(), and pat::LeptonUpdater< T >::setDZ().

◆ setEcalDrivenMomentum()

void pat::Electron::setEcalDrivenMomentum ( const Candidate::LorentzVector mom)
inline

Definition at line 204 of file Electron.h.

References ecalDrivenMomentum_.

Referenced by pat::PATElectronProducer::fillElectron2().

204 { ecalDrivenMomentum_ = mom; }
LorentzVector ecalDrivenMomentum_
ECAL-driven momentum.
Definition: Electron.h:332

◆ setEcalRegressionEnergy()

void pat::Electron::setEcalRegressionEnergy ( double  val,
double  err 
)
inline

set regression1

Definition at line 230 of file Electron.h.

References ecalRegressionEnergy_, ecalRegressionError_, submitPVResolutionJobs::err, and heppy_batch::val.

Referenced by RegressionEnergyPatElectronProducer::produce().

230  {
233  }
double ecalRegressionEnergy_
output of regression
Definition: Electron.h:339
double ecalRegressionError_
Definition: Electron.h:341

◆ setEcalRegressionScale()

void pat::Electron::setEcalRegressionScale ( double  val)
inline

Definition at line 243 of file Electron.h.

References ecalRegressionScale_, and heppy_batch::val.

double ecalRegressionScale_
Definition: Electron.h:348

◆ setEcalRegressionSmear()

void pat::Electron::setEcalRegressionSmear ( double  val)
inline

Definition at line 244 of file Electron.h.

References ecalRegressionSmear_, and heppy_batch::val.

double ecalRegressionSmear_
Definition: Electron.h:349

◆ setEcalScale()

void pat::Electron::setEcalScale ( double  val)
inline

set scale corrections / smearings

Definition at line 241 of file Electron.h.

References ecalScale_, and heppy_batch::val.

241 { ecalScale_ = val; }
double ecalScale_
scale corrections and smearing applied or to be be applied. Initialized to -99999.
Definition: Electron.h:345

◆ setEcalSmear()

void pat::Electron::setEcalSmear ( double  val)
inline

Definition at line 242 of file Electron.h.

References ecalSmear_, and heppy_batch::val.

242 { ecalSmear_ = val; }
double ecalSmear_
Definition: Electron.h:346

◆ setEcalTrackRegressionEnergy()

void pat::Electron::setEcalTrackRegressionEnergy ( double  val,
double  err 
)
inline

◆ setEcalTrackRegressionScale()

void pat::Electron::setEcalTrackRegressionScale ( double  val)
inline

Definition at line 245 of file Electron.h.

References ecalTrackRegressionScale_, and heppy_batch::val.

◆ setEcalTrackRegressionSmear()

void pat::Electron::setEcalTrackRegressionSmear ( double  val)
inline

Definition at line 246 of file Electron.h.

References ecalTrackRegressionSmear_, and heppy_batch::val.

◆ setElectronIDs()

void pat::Electron::setElectronIDs ( const std::vector< IdPair > &  ids)
inline

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

Definition at line 141 of file Electron.h.

References electronIDs_.

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

141 { electronIDs_ = ids; }
std::vector< IdPair > electronIDs_
Electron IDs.
Definition: Electron.h:319

◆ setIsolationPUPPI()

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

sets PUPPI isolations

Definition at line 161 of file Electron.h.

References puppiChargedHadronIso_, puppiNeutralHadronIso_, and puppiPhotonIso_.

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

161  {
162  puppiChargedHadronIso_ = chargedhadrons_;
163  puppiNeutralHadronIso_ = neutralhadrons_;
164  puppiPhotonIso_ = photons_;
165  }
float puppiChargedHadronIso_
PUPPI isolations.
Definition: Electron.h:355
float puppiPhotonIso_
Definition: Electron.h:357
float puppiNeutralHadronIso_
Definition: Electron.h:356

◆ setIsolationPUPPINoLeptons()

void pat::Electron::setIsolationPUPPINoLeptons ( float  chargedhadrons_,
float  neutralhadrons_,
float  photons_ 
)
inline

sets PUPPINoLeptons isolations

Definition at line 167 of file Electron.h.

References puppiNoLeptonsChargedHadronIso_, puppiNoLeptonsNeutralHadronIso_, and puppiNoLeptonsPhotonIso_.

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

167  {
168  puppiNoLeptonsChargedHadronIso_ = chargedhadrons_;
169  puppiNoLeptonsNeutralHadronIso_ = neutralhadrons_;
170  puppiNoLeptonsPhotonIso_ = photons_;
171  }
float puppiNoLeptonsChargedHadronIso_
PUPPINoLeptons isolations.
Definition: Electron.h:360
float puppiNoLeptonsPhotonIso_
Definition: Electron.h:362
float puppiNoLeptonsNeutralHadronIso_
Definition: Electron.h:361

◆ setIsPF()

void pat::Electron::setIsPF ( bool  hasPFCandidate)
inline

Definition at line 174 of file Electron.h.

References isPF_.

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

174 { isPF_ = hasPFCandidate; }

◆ setMvaVariables()

void pat::Electron::setMvaVariables ( double  sigmaIetaIphi,
double  ip3d 
)

set missing mva input variables

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

◆ setPassConversionVeto()

void pat::Electron::setPassConversionVeto ( bool  flag)
inline

Definition at line 257 of file Electron.h.

References RemoveAddSevLevel::flag, and passConversionVeto_.

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

bool passConversionVeto_
conversion veto
Definition: Electron.h:365

◆ setPFCandidateRef()

void pat::Electron::setPFCandidateRef ( const reco::PFCandidateRef ref)
inline

add a reference to the source IsolatedPFCandidate

Definition at line 179 of file Electron.h.

References pfCandidateRef_.

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

179 { pfCandidateRef_ = ref; }
reco::PFCandidateRef pfCandidateRef_
reference to the IsolatedPFCandidate this has been built from; null if this has been built from a sta...
Definition: Electron.h:328

◆ sigmaIetaIphi()

float pat::Electron::sigmaIetaIphi ( ) const
inline

additional mva input variables sigmaIEtaIPhi

Definition at line 211 of file Electron.h.

References sigmaIetaIphi_.

Referenced by full5x5_setSigmaIetaIphi().

211 { return sigmaIetaIphi_; }
float sigmaIetaIphi_
additional missing mva variables : 14/04/2012
Definition: Electron.h:335

◆ sourceCandidatePtr()

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

get the source candidate pointer with index i

Reimplemented from reco::LeafCandidate.

◆ superCluster()

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

◆ track()

reco::TrackRef pat::Electron::track ( ) const
overridevirtual

returns nothing. Use either gsfTrack or closestCtfTrack

Reimplemented from reco::RecoCandidate.

◆ trackIso()

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

Overload of pat::Lepton::trackIso(); returns the value of the summed track pt in a cone of deltaR<0.4.

Definition at line 145 of file Electron.h.

References reco::GsfElectron::dr04TkSumPt().

145 { return dr04TkSumPt(); }
float dr04TkSumPt() const
Definition: GsfElectron.h:597

Friends And Related Function Documentation

◆ PATElectronSlimmer

friend class PATElectronSlimmer
friend

Definition at line 271 of file Electron.h.

◆ reco::operator<<

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

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

Member Data Documentation

◆ associatedPackedFCandidateIndices_

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

Definition at line 377 of file Electron.h.

Referenced by numberOfSourceCandidatePtrs(), and setAssociatedPackedPFCandidates().

◆ basicClusters_

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

Place to store electron's basic clusters internally.

Definition at line 295 of file Electron.h.

Referenced by basicClusters().

◆ cachedIP_

uint8_t pat::Electron::cachedIP_
protected

True if the IP (former dB) has been cached.

Definition at line 369 of file Electron.h.

◆ ecalDrivenMomentum_

LorentzVector pat::Electron::ecalDrivenMomentum_
protected

ECAL-driven momentum.

Definition at line 332 of file Electron.h.

Referenced by ecalDrivenMomentum(), and setEcalDrivenMomentum().

◆ ecalRegressionEnergy_

double pat::Electron::ecalRegressionEnergy_
protected

output of regression

Definition at line 339 of file Electron.h.

Referenced by ecalRegressionEnergy(), and setEcalRegressionEnergy().

◆ ecalRegressionError_

double pat::Electron::ecalRegressionError_
protected

Definition at line 341 of file Electron.h.

Referenced by ecalRegressionError(), and setEcalRegressionEnergy().

◆ ecalRegressionScale_

double pat::Electron::ecalRegressionScale_
protected

Definition at line 348 of file Electron.h.

Referenced by ecalRegressionScale(), and setEcalRegressionScale().

◆ ecalRegressionSmear_

double pat::Electron::ecalRegressionSmear_
protected

Definition at line 349 of file Electron.h.

Referenced by ecalRegressionSmear(), and setEcalRegressionSmear().

◆ ecalScale_

double pat::Electron::ecalScale_
protected

scale corrections and smearing applied or to be be applied. Initialized to -99999.

Definition at line 345 of file Electron.h.

Referenced by ecalScale(), and setEcalScale().

◆ ecalSmear_

double pat::Electron::ecalSmear_
protected

Definition at line 346 of file Electron.h.

Referenced by ecalSmear(), and setEcalSmear().

◆ ecalTrackRegressionEnergy_

double pat::Electron::ecalTrackRegressionEnergy_
protected

Definition at line 340 of file Electron.h.

Referenced by ecalTrackRegressionEnergy(), and setEcalTrackRegressionEnergy().

◆ ecalTrackRegressionError_

double pat::Electron::ecalTrackRegressionError_
protected

Definition at line 342 of file Electron.h.

Referenced by ecalTrackRegressionError(), and setEcalTrackRegressionEnergy().

◆ ecalTrackRegressionScale_

double pat::Electron::ecalTrackRegressionScale_
protected

Definition at line 351 of file Electron.h.

Referenced by ecalTrackRegressionScale(), and setEcalTrackRegressionScale().

◆ ecalTrackRegressionSmear_

double pat::Electron::ecalTrackRegressionSmear_
protected

Definition at line 352 of file Electron.h.

Referenced by ecalTrackRegressionSmear(), and setEcalTrackRegressionSmear().

◆ eip_

float pat::Electron::eip_[IpTypeSize]
protected

Impact parameter uncertainty as recommended by the tracking group.

Definition at line 373 of file Electron.h.

◆ electronIDs_

std::vector<IdPair> pat::Electron::electronIDs_
protected

Electron IDs.

Definition at line 319 of file Electron.h.

Referenced by electronIDs(), and setElectronIDs().

◆ embeddedGsfElectronCore_

bool pat::Electron::embeddedGsfElectronCore_
protected

True if electron's gsfElectronCore is stored internally.

Definition at line 279 of file Electron.h.

◆ embeddedGsfTrack_

bool pat::Electron::embeddedGsfTrack_
protected

True if electron's gsfTrack is stored internally.

Definition at line 283 of file Electron.h.

◆ embeddedPFCandidate_

bool pat::Electron::embeddedPFCandidate_
protected

true if the IsolatedPFCandidate is embedded

Definition at line 324 of file Electron.h.

◆ embeddedPflowSuperCluster_

bool pat::Electron::embeddedPflowSuperCluster_
protected

True if electron's pflowsupercluster is stored internally.

Definition at line 289 of file Electron.h.

◆ embeddedRecHits_

bool pat::Electron::embeddedRecHits_
protected

True if RecHits stored internally.

Definition at line 313 of file Electron.h.

◆ embeddedSeedCluster_

bool pat::Electron::embeddedSeedCluster_
protected

True if seed cluster is stored internally.

Definition at line 309 of file Electron.h.

◆ embeddedSuperCluster_

bool pat::Electron::embeddedSuperCluster_
protected

True if electron's supercluster is stored internally.

Definition at line 287 of file Electron.h.

◆ embeddedTrack_

bool pat::Electron::embeddedTrack_
protected

True if electron's track is stored internally.

Definition at line 305 of file Electron.h.

◆ full5x5_sigmaIetaIphi_

float pat::Electron::full5x5_sigmaIetaIphi_
protected

Definition at line 335 of file Electron.h.

Referenced by full5x5_setSigmaIetaIphi(), and full5x5_sigmaIetaIphi().

◆ gsfElectronCore_

std::vector<reco::GsfElectronCore> pat::Electron::gsfElectronCore_
protected

Place to store electron's gsfElectronCore internally.

Definition at line 281 of file Electron.h.

◆ gsfTrack_

std::vector<reco::GsfTrack> pat::Electron::gsfTrack_
protected

Place to store electron's gsfTrack internally.

Definition at line 285 of file Electron.h.

◆ ip3d_

double pat::Electron::ip3d_
protected

Definition at line 336 of file Electron.h.

Referenced by ip3d().

◆ ip_

float pat::Electron::ip_[IpTypeSize]
protected

Impact parameter at the primary vertex,.

Definition at line 371 of file Electron.h.

◆ isPF_

bool pat::Electron::isPF_
protected

Definition at line 322 of file Electron.h.

Referenced by isPF(), and setIsPF().

◆ packedPFCandidates_

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

Definition at line 376 of file Electron.h.

Referenced by setAssociatedPackedPFCandidates().

◆ passConversionVeto_

bool pat::Electron::passConversionVeto_
protected

conversion veto

Definition at line 365 of file Electron.h.

Referenced by passConversionVeto(), and setPassConversionVeto().

◆ pfCandidate_

reco::PFCandidateCollection pat::Electron::pfCandidate_
protected

A copy of the source IsolatedPFCandidate is stored in this vector if embeddedPFCandidate_ if True.

Definition at line 326 of file Electron.h.

◆ pfCandidateRef_

reco::PFCandidateRef pat::Electron::pfCandidateRef_
protected

reference to the IsolatedPFCandidate this has been built from; null if this has been built from a standard electron

Definition at line 328 of file Electron.h.

Referenced by numberOfSourceCandidatePtrs(), and setPFCandidateRef().

◆ pflowBasicClusters_

std::vector<reco::CaloCluster> pat::Electron::pflowBasicClusters_
protected

Place to store electron's pflow basic clusters internally.

Definition at line 299 of file Electron.h.

Referenced by pflowBasicClusters().

◆ pflowPreshowerClusters_

std::vector<reco::CaloCluster> pat::Electron::pflowPreshowerClusters_
protected

Place to store electron's pflow preshower clusters internally.

Definition at line 301 of file Electron.h.

Referenced by pflowPreshowerClusters().

◆ pflowSuperCluster_

std::vector<reco::SuperCluster> pat::Electron::pflowSuperCluster_
protected

Place to store electron's pflow supercluster internally.

Definition at line 303 of file Electron.h.

◆ preshowerClusters_

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

Place to store electron's preshower clusters internally.

Definition at line 297 of file Electron.h.

Referenced by preshowerClusters().

◆ puppiChargedHadronIso_

float pat::Electron::puppiChargedHadronIso_
protected

PUPPI isolations.

Definition at line 355 of file Electron.h.

Referenced by puppiChargedHadronIso(), and setIsolationPUPPI().

◆ puppiNeutralHadronIso_

float pat::Electron::puppiNeutralHadronIso_
protected

Definition at line 356 of file Electron.h.

Referenced by puppiNeutralHadronIso(), and setIsolationPUPPI().

◆ puppiNoLeptonsChargedHadronIso_

float pat::Electron::puppiNoLeptonsChargedHadronIso_
protected

PUPPINoLeptons isolations.

Definition at line 360 of file Electron.h.

Referenced by puppiNoLeptonsChargedHadronIso(), and setIsolationPUPPINoLeptons().

◆ puppiNoLeptonsNeutralHadronIso_

float pat::Electron::puppiNoLeptonsNeutralHadronIso_
protected

Definition at line 361 of file Electron.h.

Referenced by puppiNoLeptonsNeutralHadronIso(), and setIsolationPUPPINoLeptons().

◆ puppiNoLeptonsPhotonIso_

float pat::Electron::puppiNoLeptonsPhotonIso_
protected

Definition at line 362 of file Electron.h.

Referenced by puppiNoLeptonsPhotonIso(), and setIsolationPUPPINoLeptons().

◆ puppiPhotonIso_

float pat::Electron::puppiPhotonIso_
protected

Definition at line 357 of file Electron.h.

Referenced by puppiPhotonIso(), and setIsolationPUPPI().

◆ recHits_

EcalRecHitCollection pat::Electron::recHits_
protected

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

Definition at line 315 of file Electron.h.

Referenced by recHits().

◆ seedCluster_

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

Place to store electron's seed cluster internally.

Definition at line 311 of file Electron.h.

◆ sigmaIetaIphi_

float pat::Electron::sigmaIetaIphi_
protected

additional missing mva variables : 14/04/2012

Definition at line 335 of file Electron.h.

Referenced by sigmaIetaIphi().

◆ superCluster_

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

Place to store electron's supercluster internally.

Definition at line 291 of file Electron.h.

◆ superClusterRelinked_

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

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

Definition at line 293 of file Electron.h.

◆ track_

std::vector<reco::Track> pat::Electron::track_
protected

Place to store electron's track internally.

Definition at line 307 of file Electron.h.