CMS 3D CMS Logo

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

#include <GsfElectron.h>

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

Classes

struct  ChargeInfo
 
struct  ClosestCtfTrack
 
struct  ConversionRejection
 
struct  Corrections
 
struct  FiducialFlags
 
struct  IsolationVariables
 
struct  MvaInput
 
struct  MvaOutput
 
struct  PflowIsolationVariables
 
struct  ShowerShape
 
struct  TrackClusterMatching
 
struct  TrackExtrapolations
 

Public Types

enum  Classification {
  UNKNOWN =-1, GOLDEN =0, BIGBREM =1, OLDNARROW =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

void addAmbiguousGsfTrack (const reco::GsfTrackRef &t)
 
bool ambiguous () const
 
GsfTrackRefVector::const_iterator ambiguousGsfTracksBegin () const
 
GsfTrackRefVector::const_iterator ambiguousGsfTracksEnd () 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
 
void classifyElectron (Classification myclass)
 
void clearAmbiguousGsfTracks ()
 
GsfElectronclone () const
 returns a clone of the Candidate object More...
 
GsfElectronclone (const GsfElectronCoreRef &core, const CaloClusterPtr &electronCluster, const TrackRef &closestCtfTrack, const TrackBaseRef &conversionPartner, const GsfTrackRefVector &ambiguousTracks) const
 
ClosestCtfTrack closestCtfTrack () const
 
TrackRef closestCtfTrackRef () const
 
float convDcot () const
 
float convDist () const
 
const ConversionRejectionconversionRejectionVariables () const
 
int convFlags () const
 
TrackBaseRef convPartner () const
 
float convRadius () const
 
virtual GsfElectronCoreRef core () const
 
void correctEcalEnergy (float newEnergy, float newEnergyError)
 
const Correctionscorrections () const
 
void correctMomentum (const LorentzVector &p4, float trackMomentumError, float p4Error)
 
float deltaEtaEleClusterTrackAtCalo () const
 
float deltaEtaSeedClusterTrackAtCalo () const
 
float deltaEtaSuperClusterTrackAtVtx () const
 
float deltaPhiEleClusterTrackAtCalo () const
 
float deltaPhiSeedClusterTrackAtCalo () const
 
float deltaPhiSuperClusterTrackAtVtx () const
 
float dr03EcalRecHitSumEt () const
 
float dr03HcalDepth1TowerSumEt () const
 
float dr03HcalDepth2TowerSumEt () const
 
float dr03HcalTowerSumEt () const
 
const IsolationVariablesdr03IsolationVariables () const
 
float dr03TkSumPt () const
 
float dr04EcalRecHitSumEt () const
 
float dr04HcalDepth1TowerSumEt () const
 
float dr04HcalDepth2TowerSumEt () const
 
float dr04HcalTowerSumEt () const
 
const IsolationVariablesdr04IsolationVariables () const
 
float dr04TkSumPt () const
 
float e1x5 () const
 
float e2x5Max () const
 
float e5x5 () const
 
bool ecalDriven () const
 
bool ecalDrivenSeed () const
 
float ecalEnergy () const
 
float ecalEnergyError () const
 
float eEleClusterOverPout () const
 
CaloClusterPtr electronCluster () const
 
float eSeedClusterOverP () const
 
float eSeedClusterOverPout () const
 
float eSuperClusterOverP () const
 
float fbrem () const
 
const FiducialFlagsfiducialFlags () 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 &, float fbrem)
 
GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
float hadronicOverEm () const
 
float hadronicOverEm1 () const
 
float hadronicOverEm2 () const
 
float hcalDepth1OverEcal () const
 
float hcalDepth2OverEcal () const
 
float hcalOverEcal () 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
 
virtual bool isElectron () const
 
bool isEnergyScaleCorrected () const
 
bool isGap () const
 
bool isGsfCtfChargeConsistent () const
 
bool isGsfCtfScPixChargeConsistent () const
 
bool isGsfScPixChargeConsistent () const
 
const IsolationVariablesisolationVariables03 () const
 
const IsolationVariablesisolationVariables04 () const
 
float mva () const
 
const MvaInputmvaInput () const
 
const MvaOutputmvaOutput () const
 
int numberOfBrems () const
 
virtual bool overlap (const Candidate &) const
 check overlap with another candidate More...
 
const LorentzVectorp4 (P4Kind kind) const
 
float p4Error (P4Kind kind) const
 
bool passingCutBasedPreselection () const
 
bool passingMvaPreselection () const
 
const PflowIsolationVariablespfIsolationVariables () const
 
SuperClusterRef pflowSuperCluster () const
 
const ShowerShapepfShowerShape () const
 
float scE1x5 () const
 
float scE2x5Max () const
 
float scE5x5 () const
 
int scPixCharge () const
 
float scSigmaEtaEta () const
 
float scSigmaIEtaIEta () const
 
void setAmbiguous (bool flag)
 
void setCorrectedEcalEnergy (float newEnergy, float newEnergyError)
 
void setDeltaEtaSuperClusterAtVtx (float de)
 
void setDeltaPhiSuperClusterAtVtx (float dphi)
 
void setDr03Isolation (const IsolationVariables &dr03)
 
void setDr04Isolation (const IsolationVariables &dr04)
 
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 setPfIsolationVariables (const PflowIsolationVariables &iso)
 
void setPfShowerShape (const ShowerShape &shape)
 
void setTrackMomentumError (float trackMomentumError)
 
float shFracInnerHits () const
 
const ShowerShapeshowerShape () const
 
float sigmaEtaEta () const
 
float sigmaIetaIeta () const
 
SuperClusterRef superCluster () const
 reference to a SuperCluster More...
 
math::XYZPoint superClusterPosition () const
 
const TrackClusterMatchingtrackClusterMatching () const
 
bool trackerDrivenSeed () const
 
const TrackExtrapolationstrackExtrapolations () 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
 
virtual ~GsfElectron ()
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const
 best track pointer More...
 
TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
 RecoCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
 RecoCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
virtual reco::TrackRef standAloneMuon () const
 reference to a stand-alone muon Track More...
 
virtual reco::TrackRef track () const
 reference to a Track More...
 
virtual reco::TrackRef track (size_t) const
 reference to one of multiple Tracks More...
 
virtual ~RecoCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const
 
virtual int charge () const
 electric charge More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual double eta () const
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual double mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual double massSqr () const
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 PDG identifier. More...
 
virtual double phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual double pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setCharge (Charge q)
 set electric charge More...
 
virtual void setLongLived ()
 set long lived flag More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual void setMassConstraint ()
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)
 
virtual void setPz (double pz)
 
virtual void setStatus (int status)
 set status word More...
 
virtual void setThreeCharge (Charge qx3)
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const
 status word More...
 
virtual double theta () const
 momentum polar angle More...
 
virtual int threeCharge () const
 electric charge More...
 
virtual const Pointvertex () const
 vertex position More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

void init ()
 

Private Attributes

bool ambiguous_
 
GsfTrackRefVector ambiguousGsfTracks_
 
ChargeInfo chargeInfo_
 
Classification class_
 
ConversionRejection conversionRejection_
 
GsfElectronCoreRef core_
 
Corrections corrections_
 
IsolationVariables dr03_
 
IsolationVariables dr04_
 
float fbrem_
 
FiducialFlags fiducialFlags_
 
MvaInput mvaInput_
 
MvaOutput mvaOutput_
 
bool passCutBasedPreselection_
 
bool passMvaPreslection_
 
PflowIsolationVariables pfIso_
 
ShowerShape pfShowerShape_
 
ShowerShape showerShape_
 
TrackClusterMatching trackClusterMatching_
 
TrackExtrapolations trackExtrapolations_
 

Additional Inherited Members

- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 
- Protected Attributes inherited from reco::LeafCandidate
edm::BoolCache cacheCartesianFixed_
 
edm::BoolCache cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Detailed Description

Definition at line 37 of file GsfElectron.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
GOLDEN 
BIGBREM 
OLDNARROW 
SHOWERING 
GAP 

Definition at line 597 of file GsfElectron.h.

Enumerator
P4_UNKNOWN 
P4_FROM_SUPER_CLUSTER 
P4_COMBINATION 
P4_PFLOW_COMBINATION 

Definition at line 637 of file GsfElectron.h.

Constructor & Destructor Documentation

GsfElectron::GsfElectron ( )

Definition at line 19 of file GsfElectron.cc.

References init().

Referenced by clone().

20  { init() ; }
GsfElectron::GsfElectron ( const GsfElectronCoreRef core)

Definition at line 22 of file GsfElectron.cc.

References init().

23  : core_(core)
24  { init() ; }
GsfElectronCoreRef core_
Definition: GsfElectron.h:177
GsfElectron::GsfElectron ( const GsfElectron electron,
const GsfElectronCoreRef core 
)

Definition at line 52 of file GsfElectron.cc.

References core().

54  : RecoCandidate(electron),
55  chargeInfo_(electron.chargeInfo_),
56  core_(core),
59  //closestCtfTrack_(electron.closestCtfTrack_),
61  showerShape_(electron.showerShape_),
62  dr03_(electron.dr03_), dr04_(electron.dr04_),
66  ambiguous_(electron.ambiguous_),
68  //mva_(electron.mva_),
69  fbrem_(electron.fbrem_),
70  class_(electron.class_),
71  corrections_(electron.corrections_)
72  {
73  assert(electron.core()->ctfTrack()==core->ctfTrack()) ;
74  assert(electron.core()->ctfGsfOverlap()==core->ctfGsfOverlap()) ;
75  }
Classification class_
Definition: GsfElectron.h:611
ConversionRejection conversionRejection_
Definition: GsfElectron.h:492
Corrections corrections_
Definition: GsfElectron.h:695
GsfTrackRefVector ambiguousGsfTracks_
Definition: GsfElectron.h:586
ChargeInfo chargeInfo_
Definition: GsfElectron.h:151
FiducialFlags fiducialFlags_
Definition: GsfElectron.h:356
ShowerShape showerShape_
Definition: GsfElectron.h:407
IsolationVariables dr04_
Definition: GsfElectron.h:457
GsfElectronCoreRef core_
Definition: GsfElectron.h:177
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
RecoCandidate()
default constructor
Definition: RecoCandidate.h:24
TrackClusterMatching trackClusterMatching_
Definition: GsfElectron.h:235
bool passCutBasedPreselection_
Definition: GsfElectron.h:583
IsolationVariables dr03_
Definition: GsfElectron.h:456
TrackExtrapolations trackExtrapolations_
Definition: GsfElectron.h:273
GsfElectron::GsfElectron ( const GsfElectron electron,
const GsfElectronCoreRef core,
const CaloClusterPtr electronCluster,
const TrackRef closestCtfTrack,
const TrackBaseRef conversionPartner,
const GsfTrackRefVector ambiguousTracks 
)

Definition at line 78 of file GsfElectron.cc.

References core().

84  : RecoCandidate(electron),
85  chargeInfo_(electron.chargeInfo_),
86  core_(core),
89  //closestCtfTrack_(electron.closestCtfTrack_),
91  showerShape_(electron.showerShape_),
92  dr03_(electron.dr03_), dr04_(electron.dr04_),
96  ambiguous_(electron.ambiguous_),
97  ambiguousGsfTracks_(ambiguousTracks),
98  //mva_(electron.mva_),
99  fbrem_(electron.fbrem_),
100  class_(electron.class_),
101  corrections_(electron.corrections_)
102  {
104  //closestCtfTrack_.ctfTrack = closestCtfTrack ;
105  conversionRejection_.partner = conversionPartner ;
106  assert(closestCtfTrack==core->ctfTrack()) ;
107  assert(electron.core()->ctfGsfOverlap()==core->ctfGsfOverlap()) ;
108  // TO BE DONE
109  // Check that the new edm references are really
110  // the clones of the former references, and therefore other attributes
111  // stay valid :
112  // * electron.core_ ~ core ?
113  // * electron.trackClusterMatching_.electronCluster ~ electronCluster ?
114  // * electron.closestCtfTrack_.ctfTrack ~ closestCtfTrack ?
115  // * electron.ambiguousGsfTracks_ ~ ambiguousTracks ?
116  }
CaloClusterPtr electronCluster() const
Definition: GsfElectron.h:214
Classification class_
Definition: GsfElectron.h:611
ConversionRejection conversionRejection_
Definition: GsfElectron.h:492
Corrections corrections_
Definition: GsfElectron.h:695
GsfTrackRefVector ambiguousGsfTracks_
Definition: GsfElectron.h:586
ChargeInfo chargeInfo_
Definition: GsfElectron.h:151
FiducialFlags fiducialFlags_
Definition: GsfElectron.h:356
ShowerShape showerShape_
Definition: GsfElectron.h:407
IsolationVariables dr04_
Definition: GsfElectron.h:457
GsfElectronCoreRef core_
Definition: GsfElectron.h:177
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
RecoCandidate()
default constructor
Definition: RecoCandidate.h:24
TrackClusterMatching trackClusterMatching_
Definition: GsfElectron.h:235
bool passCutBasedPreselection_
Definition: GsfElectron.h:583
IsolationVariables dr03_
Definition: GsfElectron.h:456
TrackExtrapolations trackExtrapolations_
Definition: GsfElectron.h:273
GsfElectron::GsfElectron ( int  charge,
const ChargeInfo chargeInfo,
const GsfElectronCoreRef core,
const TrackClusterMatching tcm,
const TrackExtrapolations te,
const ClosestCtfTrack ctfInfo,
const FiducialFlags ff,
const ShowerShape ss,
const ConversionRejection crv,
float  fbrem 
)

Definition at line 27 of file GsfElectron.cc.

References core(), reco::GsfElectron::ClosestCtfTrack::ctfTrack, init, reco::GsfElectron::TrackExtrapolations::positionAtVtx, and reco::GsfElectron::ClosestCtfTrack::shFracInnerHits.

36  core_(core),
38  //closestCtfTrack_(ctfInfo),
40  {
41  init() ;
42  fbrem_ = fbrem ;
43  setCharge(charge) ;
44  setVertex(math::XYZPoint(te.positionAtVtx.x(),te.positionAtVtx.y(),te.positionAtVtx.z())) ;
45  setPdgId(-11*charge) ;
46  /*if (ecalDrivenSeed())*/ corrections_.ecalEnergy = superCluster()->energy() ;
47  assert(ctfInfo.ctfTrack==(GsfElectron::core()->ctfTrack())) ;
48  assert(ctfInfo.shFracInnerHits==(GsfElectron::core()->ctfGsfOverlap())) ;
49  }
virtual void setCharge(Charge q)
set electric charge
ConversionRejection conversionRejection_
Definition: GsfElectron.h:492
Corrections corrections_
Definition: GsfElectron.h:695
float fbrem() const
Definition: GsfElectron.h:600
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:168
ChargeInfo chargeInfo_
Definition: GsfElectron.h:151
FiducialFlags fiducialFlags_
Definition: GsfElectron.h:356
ShowerShape showerShape_
Definition: GsfElectron.h:407
virtual int charge() const
electric charge
virtual void setVertex(const Point &vertex)
set vertex
GsfElectronCoreRef core_
Definition: GsfElectron.h:177
const ChargeInfo & chargeInfo() const
Definition: GsfElectron.h:142
tuple ff
Definition: createTree.py:204
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
virtual void setPdgId(int pdgId)
TrackClusterMatching trackClusterMatching_
Definition: GsfElectron.h:235
TrackExtrapolations trackExtrapolations_
Definition: GsfElectron.h:273
virtual reco::GsfElectron::~GsfElectron ( )
inlinevirtual

Definition at line 99 of file GsfElectron.h.

99 {} ;

Member Function Documentation

void reco::GsfElectron::addAmbiguousGsfTrack ( const reco::GsfTrackRef t)
inline

Definition at line 578 of file GsfElectron.h.

References ambiguousGsfTracks_, and edm::RefVector< C, T, F >::push_back().

Referenced by PFElectronTranslator::createGsfElectrons().

GsfTrackRefVector ambiguousGsfTracks_
Definition: GsfElectron.h:586
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
bool reco::GsfElectron::ambiguous ( ) const
inline

Definition at line 568 of file GsfElectron.h.

References ambiguous_.

568 { return ambiguous_ ; }
GsfTrackRefVector::const_iterator reco::GsfElectron::ambiguousGsfTracksBegin ( ) const
inline

Definition at line 570 of file GsfElectron.h.

References ambiguousGsfTracks_, and edm::RefVector< C, T, F >::begin().

570 { return ambiguousGsfTracks_.begin() ; }
GsfTrackRefVector ambiguousGsfTracks_
Definition: GsfElectron.h:586
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:238
GsfTrackRefVector::const_iterator reco::GsfElectron::ambiguousGsfTracksEnd ( ) const
inline

Definition at line 571 of file GsfElectron.h.

References ambiguousGsfTracks_, and edm::RefVector< C, T, F >::end().

571 { return ambiguousGsfTracks_.end() ; }
GsfTrackRefVector ambiguousGsfTracks_
Definition: GsfElectron.h:586
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:243
GsfTrackRefVector::size_type reco::GsfElectron::ambiguousGsfTracksSize ( ) const
inline
CaloCluster_iterator reco::GsfElectron::basicClustersBegin ( ) const
inline

Definition at line 285 of file GsfElectron.h.

References superCluster().

285 { return superCluster()->clustersBegin() ; }
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:168
CaloCluster_iterator reco::GsfElectron::basicClustersEnd ( ) const
inline

Definition at line 286 of file GsfElectron.h.

References superCluster().

286 { return superCluster()->clustersEnd() ; }
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:168
int reco::GsfElectron::basicClustersSize ( ) const
inline

Definition at line 284 of file GsfElectron.h.

References superCluster().

Referenced by numberOfBrems().

284 { return superCluster()->clustersSize() ; } // number of basic clusters inside the supercluster
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:168
float reco::GsfElectron::caloEnergy ( ) const
inline
math::XYZPoint reco::GsfElectron::caloPosition ( ) const
inline
P4Kind reco::GsfElectron::candidateP4Kind ( ) const
inline
const ChargeInfo& reco::GsfElectron::chargeInfo ( ) const
inline

Definition at line 142 of file GsfElectron.h.

References chargeInfo_.

Referenced by WenuPlots::analyze().

142 { return chargeInfo_ ; }
ChargeInfo chargeInfo_
Definition: GsfElectron.h:151
Classification reco::GsfElectron::classification ( ) const
inline
void reco::GsfElectron::classifyElectron ( Classification  myclass)
inline

Definition at line 605 of file GsfElectron.h.

References class_.

Referenced by ElectronClassification::correct().

605 { class_ = myclass ; }
Classification class_
Definition: GsfElectron.h:611
void reco::GsfElectron::clearAmbiguousGsfTracks ( )
inline

Definition at line 577 of file GsfElectron.h.

References ambiguousGsfTracks_, and edm::RefVector< C, T, F >::clear().

GsfTrackRefVector ambiguousGsfTracks_
Definition: GsfElectron.h:586
void clear()
Clear the vector.
Definition: RefVector.h:128
GsfElectron * GsfElectron::clone ( void  ) const
virtual

returns a clone of the Candidate object

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Electron, and pat::Lepton< reco::GsfElectron >.

Definition at line 127 of file GsfElectron.cc.

References GsfElectron().

128  { return new GsfElectron(*this) ; }
GsfElectron * GsfElectron::clone ( const GsfElectronCoreRef core,
const CaloClusterPtr electronCluster,
const TrackRef closestCtfTrack,
const TrackBaseRef conversionPartner,
const GsfTrackRefVector ambiguousTracks 
) const

Definition at line 131 of file GsfElectron.cc.

138  { return new GsfElectron(*this,core,electronCluster,closestCtfTrack,conversionPartner,ambiguousTracks) ; }
ClosestCtfTrack reco::GsfElectron::closestCtfTrack ( ) const
inline

Definition at line 310 of file GsfElectron.h.

References core().

310 { return ClosestCtfTrack(core()->ctfTrack(),core()->ctfGsfOverlap()) ; }
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
TrackRef reco::GsfElectron::closestCtfTrackRef ( ) const
inline
float reco::GsfElectron::convDcot ( ) const
inline
float reco::GsfElectron::convDist ( ) const
inline
const ConversionRejection& reco::GsfElectron::conversionRejectionVariables ( ) const
inline

Definition at line 487 of file GsfElectron.h.

References conversionRejection_.

487 { return conversionRejection_ ; }
ConversionRejection conversionRejection_
Definition: GsfElectron.h:492
int reco::GsfElectron::convFlags ( ) const
inline
TrackBaseRef reco::GsfElectron::convPartner ( ) const
inline

Definition at line 483 of file GsfElectron.h.

References conversionRejection_, and reco::GsfElectron::ConversionRejection::partner.

483 { return conversionRejection_.partner ; }
ConversionRejection conversionRejection_
Definition: GsfElectron.h:492
float reco::GsfElectron::convRadius ( ) const
inline
GsfElectronCoreRef GsfElectron::core ( ) const
virtual
void reco::GsfElectron::correctEcalEnergy ( float  newEnergy,
float  newEnergyError 
)
inline

Definition at line 686 of file GsfElectron.h.

References setCorrectedEcalEnergy().

Referenced by ElectronEnergyCorrector::correct().

687  { setCorrectedEcalEnergy(newEnergy,newEnergyError) ; }
void setCorrectedEcalEnergy(float newEnergy, float newEnergyError)
Definition: GsfElectron.cc:151
const Corrections& reco::GsfElectron::corrections ( ) const
inline

Definition at line 678 of file GsfElectron.h.

References corrections_.

678 { return corrections_ ; }
Corrections corrections_
Definition: GsfElectron.h:695
void reco::GsfElectron::correctMomentum ( const LorentzVector p4,
float  trackMomentumError,
float  p4Error 
)
inline

Definition at line 688 of file GsfElectron.h.

References P4_COMBINATION, setP4(), and setTrackMomentumError().

Referenced by ElectronMomentumCorrector::correct().

void setP4(P4Kind kind, const LorentzVector &p4, float p4Error, bool setCandidate)
Definition: GsfElectron.cc:170
float trackMomentumError() const
Definition: GsfElectron.h:673
float p4Error(P4Kind kind) const
Definition: GsfElectron.cc:208
void setTrackMomentumError(float trackMomentumError)
Definition: GsfElectron.cc:166
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
float reco::GsfElectron::deltaEtaEleClusterTrackAtCalo ( ) const
inline
float reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo ( ) const
inline
float reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx ( ) const
inline
float reco::GsfElectron::deltaPhiEleClusterTrackAtCalo ( ) const
inline
float reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo ( ) const
inline
float reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx ( ) const
inline
float reco::GsfElectron::dr03EcalRecHitSumEt ( ) const
inline
float reco::GsfElectron::dr03HcalDepth1TowerSumEt ( ) const
inline
float reco::GsfElectron::dr03HcalDepth2TowerSumEt ( ) const
inline
float reco::GsfElectron::dr03HcalTowerSumEt ( ) const
inline
const IsolationVariables& reco::GsfElectron::dr03IsolationVariables ( ) const
inline

Definition at line 433 of file GsfElectron.h.

References dr03_.

Referenced by WenuPlots::analyze().

433 { return dr03_ ; }
IsolationVariables dr03_
Definition: GsfElectron.h:456
float reco::GsfElectron::dr03TkSumPt ( ) const
inline
float reco::GsfElectron::dr04EcalRecHitSumEt ( ) const
inline
float reco::GsfElectron::dr04HcalDepth1TowerSumEt ( ) const
inline
float reco::GsfElectron::dr04HcalDepth2TowerSumEt ( ) const
inline
float reco::GsfElectron::dr04HcalTowerSumEt ( ) const
inline
const IsolationVariables& reco::GsfElectron::dr04IsolationVariables ( ) const
inline

Definition at line 441 of file GsfElectron.h.

References dr04_.

441 { return dr04_ ; }
IsolationVariables dr04_
Definition: GsfElectron.h:457
float reco::GsfElectron::dr04TkSumPt ( ) const
inline
float reco::GsfElectron::e1x5 ( ) const
inline
float reco::GsfElectron::e2x5Max ( ) const
inline
float reco::GsfElectron::e5x5 ( ) const
inline
bool GsfElectron::ecalDriven ( ) const

Definition at line 140 of file GsfElectron.cc.

References ecalDrivenSeed(), passingCutBasedPreselection(), and passingMvaPreselection().

141  {
143  {
144  edm::LogWarning("GsfElectronAlgo|UndefinedPreselectionInfo")
145  <<"All preselection flags are false,"
146  <<" either the data is too old or electrons were not preselected." ;
147  }
149  }
bool passingCutBasedPreselection() const
Definition: GsfElectron.h:566
bool passingMvaPreselection() const
Definition: GsfElectron.h:567
bool ecalDrivenSeed() const
Definition: GsfElectron.h:170
bool reco::GsfElectron::ecalDrivenSeed ( ) const
inline
float reco::GsfElectron::ecalEnergy ( ) const
inline
float reco::GsfElectron::ecalEnergyError ( ) const
inline
float reco::GsfElectron::eEleClusterOverPout ( ) const
inline
CaloClusterPtr reco::GsfElectron::electronCluster ( ) const
inline
float reco::GsfElectron::eSeedClusterOverP ( ) const
inline
float reco::GsfElectron::eSeedClusterOverPout ( ) const
inline
float reco::GsfElectron::eSuperClusterOverP ( ) const
inline
float reco::GsfElectron::fbrem ( ) const
inline
const FiducialFlags& reco::GsfElectron::fiducialFlags ( ) const
inline

Definition at line 350 of file GsfElectron.h.

References fiducialFlags_.

350 { return fiducialFlags_ ; }
FiducialFlags fiducialFlags_
Definition: GsfElectron.h:356
GsfTrackRef reco::GsfElectron::gsfTrack ( ) const
inlinevirtual
float reco::GsfElectron::hadronicOverEm ( ) const
inline
float reco::GsfElectron::hadronicOverEm1 ( ) const
inline

Definition at line 400 of file GsfElectron.h.

References hcalDepth1OverEcal().

400 {return hcalDepth1OverEcal();}
float hcalDepth1OverEcal() const
Definition: GsfElectron.h:388
float reco::GsfElectron::hadronicOverEm2 ( ) const
inline

Definition at line 401 of file GsfElectron.h.

References hcalDepth2OverEcal().

401 {return hcalDepth2OverEcal();}
float hcalDepth2OverEcal() const
Definition: GsfElectron.h:389
float reco::GsfElectron::hcalDepth1OverEcal ( ) const
inline
float reco::GsfElectron::hcalDepth2OverEcal ( ) const
inline
float reco::GsfElectron::hcalOverEcal ( ) const
inline
void GsfElectron::init ( void  )
private
bool reco::GsfElectron::isEB ( ) const
inline
bool reco::GsfElectron::isEBEEGap ( ) const
inline
bool reco::GsfElectron::isEBEtaGap ( ) const
inline
bool reco::GsfElectron::isEBGap ( ) const
inline

Definition at line 344 of file GsfElectron.h.

References isEBEtaGap(), and isEBPhiGap().

Referenced by egHLT::OffEle::isGap(), and isGap().

344 { return (isEBEtaGap()||isEBPhiGap()) ; }
bool isEBEtaGap() const
Definition: GsfElectron.h:345
bool isEBPhiGap() const
Definition: GsfElectron.h:346
bool reco::GsfElectron::isEBPhiGap ( ) const
inline
bool reco::GsfElectron::isEcalEnergyCorrected ( ) const
inline
bool reco::GsfElectron::isEE ( ) const
inline
bool reco::GsfElectron::isEEDeeGap ( ) const
inline
bool reco::GsfElectron::isEEGap ( ) const
inline

Definition at line 347 of file GsfElectron.h.

References isEEDeeGap(), and isEERingGap().

Referenced by egHLT::OffEle::isGap(), and isGap().

347 { return (isEEDeeGap()||isEERingGap()) ; }
bool isEERingGap() const
Definition: GsfElectron.h:349
bool isEEDeeGap() const
Definition: GsfElectron.h:348
bool reco::GsfElectron::isEERingGap ( ) const
inline
virtual bool reco::GsfElectron::isElectron ( ) const
inlinevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 145 of file GsfElectron.h.

References funct::true.

145 { return true ; }
bool reco::GsfElectron::isEnergyScaleCorrected ( ) const
inline

Definition at line 684 of file GsfElectron.h.

References isEcalEnergyCorrected().

685  { return isEcalEnergyCorrected() ; }
bool isEcalEnergyCorrected() const
Definition: GsfElectron.h:670
bool reco::GsfElectron::isGap ( ) const
inline

Definition at line 342 of file GsfElectron.h.

References isEBEEGap(), isEBGap(), and isEEGap().

Referenced by ElectronEnergyCorrector::correct(), ElectronMomentumCorrector::correct(), and TopElectronHLTOfflineSource::fill().

342 { return ((isEBEEGap())||(isEBGap())||(isEEGap())) ; }
bool isEEGap() const
Definition: GsfElectron.h:347
bool isEBEEGap() const
Definition: GsfElectron.h:343
bool isEBGap() const
Definition: GsfElectron.h:344
bool reco::GsfElectron::isGsfCtfChargeConsistent ( ) const
inline
bool reco::GsfElectron::isGsfCtfScPixChargeConsistent ( ) const
inline
bool reco::GsfElectron::isGsfScPixChargeConsistent ( ) const
inline
const IsolationVariables& reco::GsfElectron::isolationVariables03 ( ) const
inline

Definition at line 450 of file GsfElectron.h.

References dr03_.

450 { return dr03_ ; }
IsolationVariables dr03_
Definition: GsfElectron.h:456
const IsolationVariables& reco::GsfElectron::isolationVariables04 ( ) const
inline

Definition at line 451 of file GsfElectron.h.

References dr04_.

451 { return dr04_ ; }
IsolationVariables dr04_
Definition: GsfElectron.h:457
float reco::GsfElectron::mva ( ) const
inline
const MvaInput& reco::GsfElectron::mvaInput ( ) const
inline

Definition at line 538 of file GsfElectron.h.

References mvaInput_.

538 { return mvaInput_ ; }
MvaInput mvaInput_
Definition: GsfElectron.h:554
const MvaOutput& reco::GsfElectron::mvaOutput ( ) const
inline

Definition at line 539 of file GsfElectron.h.

References mvaOutput_.

539 { return mvaOutput_ ; }
MvaOutput mvaOutput_
Definition: GsfElectron.h:555
int reco::GsfElectron::numberOfBrems ( ) const
inline

Definition at line 601 of file GsfElectron.h.

References basicClustersSize().

Referenced by ElectronClassification::classify(), and ElectronLikelihood::result().

601 { return basicClustersSize()-1 ; }
int basicClustersSize() const
Definition: GsfElectron.h:284
bool GsfElectron::overlap ( const Candidate ) const
virtual

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 118 of file GsfElectron.cc.

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

118  {
119  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
120  return ( o != 0 &&
121  ( checkOverlap( gsfTrack(), o->gsfTrack() ) ||
123  );
124  //?? return false;
125 }
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:168
GsfTrackRef gsfTrack() const
reference to a GsfTrack
Definition: GsfElectron.h:169
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
const Candidate::LorentzVector & GsfElectron::p4 ( P4Kind  kind) const

Definition at line 196 of file GsfElectron.cc.

References reco::GsfElectron::Corrections::combinedP4, corrections_, edm::hlt::Exception, reco::GsfElectron::Corrections::fromSuperClusterP4, P4_COMBINATION, P4_FROM_SUPER_CLUSTER, P4_PFLOW_COMBINATION, and reco::GsfElectron::Corrections::pflowP4.

Referenced by CutBasedElectronID::cicSelection(), ElectronAnalyzer::computeInvMass(), ElectronTagProbeAnalyzer::computeInvMass(), ElectronMomentumCorrector::correct(), GsfElectronAlgo::createElectron(), pat::ElectronSelector::customSelection_(), TopElectronHLTOfflineSource::fill(), pat::PATElectronProducer::fillElectron2(), EwkElecTauHistManager::fillHistograms(), TtSemiLRJetCombObservables::operator()(), egHLT::OffEle::p4(), WenuPlots::ReturnCandVar(), ZeePlots::ReturnCandVar(), CutBasedElectronID::robustSelection(), and SimpleCutBasedElectronIDSelectionFunctor::spring10Variables().

197  {
198  switch(kind)
199  {
201  case P4_COMBINATION: return corrections_.combinedP4 ;
203  default: throw cms::Exception("GsfElectron")<<"unexpected p4 kind: "<<kind ;
204  }
205  }
Corrections corrections_
Definition: GsfElectron.h:695
float GsfElectron::p4Error ( P4Kind  kind) const
bool reco::GsfElectron::passingCutBasedPreselection ( ) const
inline

Definition at line 566 of file GsfElectron.h.

References passCutBasedPreselection_.

Referenced by ecalDriven(), and GsfElectronAlgo::isPreselected().

566 { return passCutBasedPreselection_ ; }
bool passCutBasedPreselection_
Definition: GsfElectron.h:583
bool reco::GsfElectron::passingMvaPreselection ( ) const
inline
const PflowIsolationVariables& reco::GsfElectron::pfIsolationVariables ( ) const
inline

Definition at line 537 of file GsfElectron.h.

References pfIso_.

537 { return pfIso_ ; }
PflowIsolationVariables pfIso_
Definition: GsfElectron.h:553
SuperClusterRef reco::GsfElectron::pflowSuperCluster ( ) const
inline

Definition at line 172 of file GsfElectron.h.

References core().

Referenced by ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), and GsfElectronMCAnalyzer::analyze().

172 { return core()->pflowSuperCluster() ; }
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
const ShowerShape& reco::GsfElectron::pfShowerShape ( ) const
inline

Definition at line 536 of file GsfElectron.h.

References pfShowerShape_.

536 { return pfShowerShape_ ; }
ShowerShape pfShowerShape_
Definition: GsfElectron.h:552
float reco::GsfElectron::scE1x5 ( ) const
inline
float reco::GsfElectron::scE2x5Max ( ) const
inline
float reco::GsfElectron::scE5x5 ( ) const
inline
int reco::GsfElectron::scPixCharge ( ) const
inline

Definition at line 138 of file GsfElectron.h.

References chargeInfo_, and reco::GsfElectron::ChargeInfo::scPixCharge.

float reco::GsfElectron::scSigmaEtaEta ( ) const
inline

Definition at line 394 of file GsfElectron.h.

References sigmaEtaEta().

Referenced by ElectronMcSignalValidator::analyze(), ElectronTagProbeAnalyzer::analyze(), and GsfElectronMCAnalyzer::analyze().

394 { return sigmaEtaEta() ; }
float sigmaEtaEta() const
Definition: GsfElectron.h:383
float reco::GsfElectron::scSigmaIEtaIEta ( ) const
inline
void reco::GsfElectron::setAmbiguous ( bool  flag)
inline

Definition at line 576 of file GsfElectron.h.

References ambiguous_.

576 { ambiguous_ = flag ; }
long int flag
Definition: mlp_lapack.h:47
void GsfElectron::setCorrectedEcalEnergy ( float  newEnergy,
float  newEnergyError 
)

Definition at line 151 of file GsfElectron.cc.

References corrections_, reco::GsfElectron::Corrections::ecalEnergy, reco::GsfElectron::Corrections::ecalEnergyError, reco::GsfElectron::TrackClusterMatching::eEleClusterOverPout, reco::GsfElectron::TrackClusterMatching::eSeedClusterOverP, reco::GsfElectron::TrackClusterMatching::eSuperClusterOverP, reco::GsfElectron::ShowerShape::hcalDepth1OverEcal, reco::GsfElectron::ShowerShape::hcalDepth2OverEcal, reco::GsfElectron::Corrections::isEcalEnergyCorrected, reco::LeafCandidate::momentum(), reco::LeafCandidate::p4(), setP4(), showerShape_, trackClusterMatching_, and funct::true.

Referenced by correctEcalEnergy().

152  {
154  momentum *= newEnergy/momentum.e() ;
155  setP4(momentum) ;
161  corrections_.ecalEnergy = newEnergy ;
162  corrections_.ecalEnergyError = newEnergyError ;
164  }
void setP4(P4Kind kind, const LorentzVector &p4, float p4Error, bool setCandidate)
Definition: GsfElectron.cc:170
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:15
virtual Vector momentum() const
spatial momentum vector
Corrections corrections_
Definition: GsfElectron.h:695
ShowerShape showerShape_
Definition: GsfElectron.h:407
TrackClusterMatching trackClusterMatching_
Definition: GsfElectron.h:235
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
void reco::GsfElectron::setDeltaEtaSuperClusterAtVtx ( float  de)
inline
void reco::GsfElectron::setDeltaPhiSuperClusterAtVtx ( float  dphi)
inline
void reco::GsfElectron::setDr03Isolation ( const IsolationVariables dr03)
inline

Definition at line 444 of file GsfElectron.h.

References dr03_.

444 { dr03_ = dr03 ; }
IsolationVariables dr03_
Definition: GsfElectron.h:456
void reco::GsfElectron::setDr04Isolation ( const IsolationVariables dr04)
inline

Definition at line 445 of file GsfElectron.h.

References dr04_.

445 { dr04_ = dr04 ; }
IsolationVariables dr04_
Definition: GsfElectron.h:457
void reco::GsfElectron::setIsolation03 ( const IsolationVariables dr03)
inline

Definition at line 448 of file GsfElectron.h.

References dr03_.

Referenced by GsfElectronAlgo::createElectron().

448 { dr03_ = dr03 ; }
IsolationVariables dr03_
Definition: GsfElectron.h:456
void reco::GsfElectron::setIsolation04 ( const IsolationVariables dr04)
inline

Definition at line 449 of file GsfElectron.h.

References dr04_.

Referenced by GsfElectronAlgo::createElectron().

449 { dr04_ = dr04 ; }
IsolationVariables dr04_
Definition: GsfElectron.h:457
void reco::GsfElectron::setMvaInput ( const MvaInput mi)
inline

Definition at line 544 of file GsfElectron.h.

References mvaInput_.

Referenced by PFElectronTranslator::createGsfElectrons().

544 { mvaInput_ = mi ; }
MvaInput mvaInput_
Definition: GsfElectron.h:554
void reco::GsfElectron::setMvaOutput ( const MvaOutput mo)
inline

Definition at line 545 of file GsfElectron.h.

References mvaOutput_.

Referenced by PFElectronTranslator::createGsfElectrons().

545 { mvaOutput_ = mo ; }
MvaOutput mvaOutput_
Definition: GsfElectron.h:555
void GsfElectron::setP4 ( P4Kind  kind,
const LorentzVector p4,
float  p4Error,
bool  setCandidate 
)

Definition at line 170 of file GsfElectron.cc.

References error, edm::hlt::Exception, and p4.

Referenced by correctMomentum(), GsfElectronAlgo::createElectron(), PFElectronTranslator::createGsfElectrons(), pat::PATElectronProducer::fillElectron2(), ElectronRecalibSuperClusterAssociator::produce(), and setCorrectedEcalEnergy().

171  {
172  switch(kind)
173  {
177  break ;
178  case P4_COMBINATION:
181  break ;
185  break ;
186  default:
187  throw cms::Exception("GsfElectron")<<"unexpected p4 kind: "<<kind ;
188  }
189  if (setCandidate)
190  {
191  setP4(p4) ;
193  }
194  }
void setP4(P4Kind kind, const LorentzVector &p4, float p4Error, bool setCandidate)
Definition: GsfElectron.cc:170
Corrections corrections_
Definition: GsfElectron.h:695
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
void reco::GsfElectron::setPassCutBasedPreselection ( bool  flag)
inline

Definition at line 574 of file GsfElectron.h.

References passCutBasedPreselection_.

Referenced by GsfElectronAlgo::setCutBasedPreselectionFlag().

long int flag
Definition: mlp_lapack.h:47
bool passCutBasedPreselection_
Definition: GsfElectron.h:583
void reco::GsfElectron::setPassMvaPreselection ( bool  flag)
inline

Definition at line 575 of file GsfElectron.h.

References passMvaPreslection_.

Referenced by GsfElectronAlgo::setMvaPreselectionFlag().

long int flag
Definition: mlp_lapack.h:47
void reco::GsfElectron::setPfIsolationVariables ( const PflowIsolationVariables iso)
inline

Definition at line 543 of file GsfElectron.h.

References pfIso_.

Referenced by PFElectronTranslator::createGsfElectrons().

543 { pfIso_ = iso ; }
PflowIsolationVariables pfIso_
Definition: GsfElectron.h:553
void reco::GsfElectron::setPfShowerShape ( const ShowerShape shape)
inline

Definition at line 542 of file GsfElectron.h.

References pfShowerShape_.

542 { pfShowerShape_ = shape ; }
ShowerShape pfShowerShape_
Definition: GsfElectron.h:552
void GsfElectron::setTrackMomentumError ( float  trackMomentumError)

Definition at line 166 of file GsfElectron.cc.

References corrections_, and reco::GsfElectron::Corrections::trackMomentumError.

Referenced by correctMomentum().

167  { corrections_.trackMomentumError = trackErr ; }
Corrections corrections_
Definition: GsfElectron.h:695
float reco::GsfElectron::shFracInnerHits ( ) const
inline

Definition at line 308 of file GsfElectron.h.

References core().

Referenced by ConversionFinder::getConversionInfo(), and ConversionFinder::getElectronTrack().

308 { return core()->ctfGsfOverlap() ; } // measure the fraction of common hits between the GSF and CTF tracks
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
const ShowerShape& reco::GsfElectron::showerShape ( ) const
inline

Definition at line 391 of file GsfElectron.h.

References showerShape_.

391 { return showerShape_ ; }
ShowerShape showerShape_
Definition: GsfElectron.h:407
float reco::GsfElectron::sigmaEtaEta ( ) const
inline
float reco::GsfElectron::sigmaIetaIeta ( ) const
inline
SuperClusterRef reco::GsfElectron::superCluster ( ) const
inlinevirtual

reference to a SuperCluster

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Electron.

Definition at line 168 of file GsfElectron.h.

References core().

Referenced by ZIterativeAlgorithmWithFit::addEvent(), FWElectronDetailView::addSceneInfo(), FWElectronDetailView::addTrackPointsInCaloData(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), ElectronTagProbeAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), basicClustersBegin(), basicClustersEnd(), basicClustersSize(), FWElectronDetailView::build(), FWElectronProxyBuilder::buildViewType(), caloPosition(), CutBasedElectronID::cicSelection(), CutBasedElectronID::classify(), ElectronClassification::classify(), helper::GsfElectronCollectionStoreManager::cloneAndStore(), ElectronEnergyCorrector::correct(), FWElectronDetailView::drawCrossHair(), pat::Electron::embedSuperCluster(), egHLT::OffEle::etaSC(), egHLT::OffEle::etSC(), egHLT::OffHelper::fillClusShapeData(), ZeeCalibration::fillEleInfo(), egHLT::OffHelper::fillHLTData(), calib::CalibElectron::getCalibModulesWeights(), ZeeCalibration::getEtaCorrection(), ElectronLikelihood::getInputVar(), ZIterativeAlgorithmWithFit::getWeight(), SoftPFElectronProducer::isClean(), RecoSelector::isSelected(), overlap(), egHLT::OffEle::phiSC(), PTDRElectronID::result(), ElectronLikelihood::result(), CutBasedElectronID::robustSelection(), GsfElectronAlgo::setCutBasedPreselectionFlag(), FWElectronDetailView::setTextInfo(), pat::Electron::superCluster(), and superClusterPosition().

168 { return core()->superCluster() ; }
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
math::XYZPoint reco::GsfElectron::superClusterPosition ( ) const
inline

Definition at line 283 of file GsfElectron.h.

References superCluster().

283 { return superCluster()->position() ; } // the super cluster position
SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:168
const TrackClusterMatching& reco::GsfElectron::trackClusterMatching ( ) const
inline

Definition at line 225 of file GsfElectron.h.

References trackClusterMatching_.

225 { return trackClusterMatching_ ; }
TrackClusterMatching trackClusterMatching_
Definition: GsfElectron.h:235
bool reco::GsfElectron::trackerDrivenSeed ( ) const
inline
const TrackExtrapolations& reco::GsfElectron::trackExtrapolations ( ) const
inline

Definition at line 263 of file GsfElectron.h.

References trackExtrapolations_.

263 { return trackExtrapolations_ ; }
TrackExtrapolations trackExtrapolations_
Definition: GsfElectron.h:273
math::XYZVectorF reco::GsfElectron::trackMomentumAtCalo ( ) const
inline
math::XYZVectorF reco::GsfElectron::trackMomentumAtEleClus ( ) const
inline
math::XYZVectorF reco::GsfElectron::trackMomentumAtVtx ( ) const
inline
math::XYZVectorF reco::GsfElectron::trackMomentumAtVtxWithConstraint ( ) const
inline
float reco::GsfElectron::trackMomentumError ( ) const
inline
math::XYZVectorF reco::GsfElectron::trackMomentumOut ( ) const
inline
math::XYZPointF reco::GsfElectron::trackPositionAtCalo ( ) const
inline

Definition at line 257 of file GsfElectron.h.

References reco::GsfElectron::TrackExtrapolations::positionAtCalo, and trackExtrapolations_.

Referenced by TrackPositionAtCalo().

TrackExtrapolations trackExtrapolations_
Definition: GsfElectron.h:273
math::XYZPointF reco::GsfElectron::TrackPositionAtCalo ( ) const
inline

Definition at line 267 of file GsfElectron.h.

References trackPositionAtCalo().

267 { return trackPositionAtCalo() ; }
math::XYZPointF trackPositionAtCalo() const
Definition: GsfElectron.h:257
math::XYZPointF reco::GsfElectron::trackPositionAtVtx ( ) const
inline

Definition at line 256 of file GsfElectron.h.

References reco::GsfElectron::TrackExtrapolations::positionAtVtx, and trackExtrapolations_.

Referenced by TrackPositionAtVtx().

TrackExtrapolations trackExtrapolations_
Definition: GsfElectron.h:273
math::XYZPointF reco::GsfElectron::TrackPositionAtVtx ( ) const
inline

Definition at line 266 of file GsfElectron.h.

References trackPositionAtVtx().

Referenced by egHLT::OffEle::zVtx().

266 { return trackPositionAtVtx() ; }
math::XYZPointF trackPositionAtVtx() const
Definition: GsfElectron.h:256

Member Data Documentation

bool reco::GsfElectron::ambiguous_
private

Definition at line 585 of file GsfElectron.h.

Referenced by ambiguous(), init(), and setAmbiguous().

GsfTrackRefVector reco::GsfElectron::ambiguousGsfTracks_
private
ChargeInfo reco::GsfElectron::chargeInfo_
private
Classification reco::GsfElectron::class_
private

Definition at line 611 of file GsfElectron.h.

Referenced by classification(), classifyElectron(), and init().

ConversionRejection reco::GsfElectron::conversionRejection_
private
GsfElectronCoreRef reco::GsfElectron::core_
private

Definition at line 177 of file GsfElectron.h.

Referenced by core().

Corrections reco::GsfElectron::corrections_
private
IsolationVariables reco::GsfElectron::dr03_
private
IsolationVariables reco::GsfElectron::dr04_
private
float reco::GsfElectron::fbrem_
private

Definition at line 610 of file GsfElectron.h.

Referenced by fbrem(), and init().

FiducialFlags reco::GsfElectron::fiducialFlags_
private
MvaInput reco::GsfElectron::mvaInput_
private

Definition at line 554 of file GsfElectron.h.

Referenced by mvaInput(), and setMvaInput().

MvaOutput reco::GsfElectron::mvaOutput_
private

Definition at line 555 of file GsfElectron.h.

Referenced by mva(), mvaOutput(), and setMvaOutput().

bool reco::GsfElectron::passCutBasedPreselection_
private

Definition at line 583 of file GsfElectron.h.

Referenced by init(), passingCutBasedPreselection(), and setPassCutBasedPreselection().

bool reco::GsfElectron::passMvaPreslection_
private

Definition at line 584 of file GsfElectron.h.

Referenced by init(), passingMvaPreselection(), and setPassMvaPreselection().

PflowIsolationVariables reco::GsfElectron::pfIso_
private

Definition at line 553 of file GsfElectron.h.

Referenced by pfIsolationVariables(), and setPfIsolationVariables().

ShowerShape reco::GsfElectron::pfShowerShape_
private

Definition at line 552 of file GsfElectron.h.

Referenced by pfShowerShape(), and setPfShowerShape().

ShowerShape reco::GsfElectron::showerShape_
private
TrackClusterMatching reco::GsfElectron::trackClusterMatching_
private
TrackExtrapolations reco::GsfElectron::trackExtrapolations_
private