CMS 3D CMS Logo

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

List of all members.

Classes

struct  ChargeInfo
struct  ClassificationVariables
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, BADTRACK = 2,
  SHOWERING = 3, GAP = 4
}
enum  P4Kind { P4_UNKNOWN = -1, P4_FROM_SUPER_CLUSTER = 0, P4_COMBINATION = 1, P4_PFLOW_COMBINATION = 2 }

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
const ClassificationVariablesclassificationVariables () const
void clearAmbiguousGsfTracks ()
GsfElectronclone (const GsfElectronCoreRef &core, const CaloClusterPtr &electronCluster, const TrackRef &closestCtfTrack, const TrackBaseRef &conversionPartner, const GsfTrackRefVector &ambiguousTracks) const
GsfElectronclone () const
 returns a clone of the Candidate object
ClosestCtfTrack closestCtfTrack () const
TrackRef closestCtfTrackRef () const
virtual TrackRef closestTrack () 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)
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 deltaEtaSuperClusterTrackAtVtx () const
float deltaPhiEleClusterTrackAtCalo () const
float deltaPhiSeedClusterTrackAtCalo () const
float deltaPhiSuperClusterTrackAtVtx () const
float dr03EcalRecHitSumEt () const
float dr03HcalDepth1TowerSumEt () const
float dr03HcalDepth1TowerSumEtBc () const
float dr03HcalDepth2TowerSumEt () const
float dr03HcalDepth2TowerSumEtBc () const
float dr03HcalTowerSumEt () const
float dr03HcalTowerSumEtBc () const
const IsolationVariablesdr03IsolationVariables () const
float dr03TkSumPt () const
float dr04EcalRecHitSumEt () const
float dr04HcalDepth1TowerSumEt () const
float dr04HcalDepth1TowerSumEtBc () const
float dr04HcalDepth2TowerSumEt () const
float dr04HcalDepth2TowerSumEtBc () const
float dr04HcalTowerSumEt () const
float dr04HcalTowerSumEtBc () 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 (const GsfElectron &electron, const GsfElectronCoreRef &core, const CaloClusterPtr &electronCluster, const TrackRef &closestCtfTrack, const TrackBaseRef &conversionPartner, const GsfTrackRefVector &ambiguousTracks)
 GsfElectron (const GsfElectronCoreRef &)
 GsfElectron (int charge, const ChargeInfo &, const GsfElectronCoreRef &, const TrackClusterMatching &, const TrackExtrapolations &, const ClosestCtfTrack &, const FiducialFlags &, const ShowerShape &, const ConversionRejection &)
 GsfElectron (const GsfElectron &, const GsfElectronCoreRef &)
 GsfElectron ()
virtual GsfTrackRef gsfTrack () const
 reference to a GsfTrack
float hadronicOverEm () const
float hadronicOverEm1 () const
float hadronicOverEm2 () const
float hcalDepth1OverEcal () const
float hcalDepth1OverEcalBc () const
float hcalDepth2OverEcal () const
float hcalDepth2OverEcalBc () const
float hcalOverEcal () const
float hcalOverEcalBc () const
const std::vector
< CaloTowerDetId > & 
hcalTowersBehindClusters () 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
const LorentzVectorp4 (P4Kind kind) const
float p4Error (P4Kind kind) const
bool passingCutBasedPreselection () const
bool passingMvaPreselection () const
bool passingPflowPreselection () const
const PflowIsolationVariablespfIsolationVariables () const
SuperClusterRef pflowSuperCluster () const
const ShowerShapepfShowerShape () const
float pfSuperClusterFbrem () const
float r9 () 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 setCorrectedEcalEnergy (float newEnergy)
void setCorrectedEcalEnergyError (float newEnergyError)
void setDeltaEtaSuperClusterAtVtx (float de)
void setDeltaPhiSuperClusterAtVtx (float dphi)
void setDr03Isolation (const IsolationVariables &dr03)
void setDr04Isolation (const IsolationVariables &dr04)
void setEcalEnergyError (float energyError)
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 setPfShowerShape (const ShowerShape &shape)
void setPfSuperClusterFbrem (float fbrem)
void setSuperClusterFbrem (float fbrem)
void setTrackFbrem (float fbrem)
void setTrackMomentumError (float trackMomentumError)
float shFracInnerHits () const
const ShowerShapeshowerShape () const
float sigmaEtaEta () const
float sigmaIetaIeta () const
float sigmaIphiIphi () const
virtual SuperClusterRef superCluster () const
 reference to a SuperCluster
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
virtual ~GsfElectron ()

Private Member Functions

void init ()

Private Attributes

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

Detailed Description

Definition at line 37 of file GsfElectron.h.


Member Enumeration Documentation

Enumerator:
UNKNOWN 
GOLDEN 
BIGBREM 
BADTRACK 
SHOWERING 
GAP 

Definition at line 628 of file GsfElectron.h.

{ UNKNOWN=-1, GOLDEN=0, BIGBREM=1, BADTRACK=2, SHOWERING=3, GAP=4 } ;
Enumerator:
P4_UNKNOWN 
P4_FROM_SUPER_CLUSTER 
P4_COMBINATION 
P4_PFLOW_COMBINATION 

Definition at line 678 of file GsfElectron.h.


Constructor & Destructor Documentation

GsfElectron::GsfElectron ( )

Definition at line 19 of file GsfElectron.cc.

References init().

Referenced by clone().

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

Definition at line 22 of file GsfElectron.cc.

References init().

 : core_(core)
 { init() ; }
GsfElectron::GsfElectron ( const GsfElectron electron,
const GsfElectronCoreRef core 
)

Definition at line 50 of file GsfElectron.cc.

References core().

 : RecoCandidate(electron),
   chargeInfo_(electron.chargeInfo_),
   core_(core),
   trackClusterMatching_(electron.trackClusterMatching_),
   trackExtrapolations_(electron.trackExtrapolations_),
   //closestCtfTrack_(electron.closestCtfTrack_),
   fiducialFlags_(electron.fiducialFlags_),
   showerShape_(electron.showerShape_),
   dr03_(electron.dr03_), dr04_(electron.dr04_),
   conversionRejection_(electron.conversionRejection_),
   pfShowerShape_(electron.pfShowerShape_),
   pfIso_(electron.pfIso_),
   mvaInput_(electron.mvaInput_),
   mvaOutput_(electron.mvaOutput_),
   passCutBasedPreselection_(electron.passCutBasedPreselection_),
   passPflowPreselection_(electron.passPflowPreselection_),
   passMvaPreslection_(electron.passMvaPreslection_),
   ambiguous_(electron.ambiguous_),
   ambiguousGsfTracks_(electron.ambiguousGsfTracks_),
   classVariables_(electron.classVariables_),
   class_(electron.class_),
   corrections_(electron.corrections_)
 {
  assert(electron.core()->ctfTrack()==core->ctfTrack()) ;
  assert(electron.core()->ctfGsfOverlap()==core->ctfGsfOverlap()) ;
 }
GsfElectron::GsfElectron ( const GsfElectron electron,
const GsfElectronCoreRef core,
const CaloClusterPtr electronCluster,
const TrackRef closestCtfTrack,
const TrackBaseRef conversionPartner,
const GsfTrackRefVector ambiguousTracks 
)

Definition at line 80 of file GsfElectron.cc.

References core().

 : RecoCandidate(electron),
   chargeInfo_(electron.chargeInfo_),
   core_(core),
   trackClusterMatching_(electron.trackClusterMatching_),
   trackExtrapolations_(electron.trackExtrapolations_),
   //closestCtfTrack_(electron.closestCtfTrack_),
   fiducialFlags_(electron.fiducialFlags_),
   showerShape_(electron.showerShape_),
   dr03_(electron.dr03_), dr04_(electron.dr04_),
   conversionRejection_(electron.conversionRejection_),
   pfShowerShape_(electron.pfShowerShape_),
   pfIso_(electron.pfIso_),
   mvaInput_(electron.mvaInput_),
   mvaOutput_(electron.mvaOutput_),
   passCutBasedPreselection_(electron.passCutBasedPreselection_),
   passPflowPreselection_(electron.passPflowPreselection_),
   passMvaPreslection_(electron.passMvaPreslection_),
   ambiguous_(electron.ambiguous_),
   ambiguousGsfTracks_(ambiguousTracks),
   //mva_(electron.mva_),
   classVariables_(electron.classVariables_),
   class_(electron.class_),
   corrections_(electron.corrections_)
 {
  trackClusterMatching_.electronCluster = electronCluster ;
  //closestCtfTrack_.ctfTrack = closestCtfTrack ;
  conversionRejection_.partner = conversionPartner ;
  assert(closestCtfTrack==core->ctfTrack()) ;
  assert(electron.core()->ctfGsfOverlap()==core->ctfGsfOverlap()) ;
  // TO BE DONE
  // Check that the new edm references are really
  // the clones of the former references, and therefore other attributes
  // stay valid :
  // * electron.core_ ~ core ?
  // * electron.trackClusterMatching_.electronCluster ~ electronCluster ?
  // * electron.closestCtfTrack_.ctfTrack ~ closestCtfTrack ?
  // * electron.ambiguousGsfTracks_ ~ ambiguousTracks ?
 }
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 
)

Definition at line 27 of file GsfElectron.cc.

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

 : chargeInfo_(chargeInfo),
   core_(core),
   trackClusterMatching_(tcm), trackExtrapolations_(te),
   //closestCtfTrack_(ctfInfo),
   fiducialFlags_(ff), showerShape_(ss), conversionRejection_(crv)
 {
  init() ;
  setCharge(charge) ;
  setVertex(math::XYZPoint(te.positionAtVtx.x(),te.positionAtVtx.y(),te.positionAtVtx.z())) ;
  setPdgId(-11*charge) ;
  /*if (ecalDrivenSeed())*/ corrections_.correctedEcalEnergy = superCluster()->energy() ;
  assert(ctfInfo.ctfTrack==(GsfElectron::core()->ctfTrack())) ;
  assert(ctfInfo.shFracInnerHits==(GsfElectron::core()->ctfGsfOverlap())) ;
 }
virtual reco::GsfElectron::~GsfElectron ( ) [inline, virtual]

Definition at line 99 of file GsfElectron.h.

{} ;

Member Function Documentation

void reco::GsfElectron::addAmbiguousGsfTrack ( const reco::GsfTrackRef t) [inline]
bool reco::GsfElectron::ambiguous ( ) const [inline]

Definition at line 587 of file GsfElectron.h.

References ambiguous_.

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

Definition at line 589 of file GsfElectron.h.

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

{ return ambiguousGsfTracks_.begin() ; }
GsfTrackRefVector::const_iterator reco::GsfElectron::ambiguousGsfTracksEnd ( ) const [inline]

Definition at line 590 of file GsfElectron.h.

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

{ return ambiguousGsfTracks_.end() ; }
GsfTrackRefVector::size_type reco::GsfElectron::ambiguousGsfTracksSize ( ) const [inline]
CaloCluster_iterator reco::GsfElectron::basicClustersBegin ( ) const [inline]

Definition at line 299 of file GsfElectron.h.

References superCluster().

{ return superCluster()->clustersBegin() ; }
CaloCluster_iterator reco::GsfElectron::basicClustersEnd ( ) const [inline]

Definition at line 300 of file GsfElectron.h.

References superCluster().

{ return superCluster()->clustersEnd() ; }
int reco::GsfElectron::basicClustersSize ( ) const [inline]

Definition at line 298 of file GsfElectron.h.

References superCluster().

Referenced by numberOfBrems().

{ return superCluster()->clustersSize() ; } // number of basic clusters inside the supercluster
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().

{ return chargeInfo_ ; }
Classification reco::GsfElectron::classification ( ) const [inline]
const ClassificationVariables& reco::GsfElectron::classificationVariables ( ) const [inline]

Definition at line 634 of file GsfElectron.h.

References classVariables_.

{ return classVariables_ ; }
void reco::GsfElectron::clearAmbiguousGsfTracks ( ) [inline]

Definition at line 596 of file GsfElectron.h.

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

{ ambiguousGsfTracks_.clear() ; }
GsfElectron * GsfElectron::clone ( const GsfElectronCoreRef core,
const CaloClusterPtr electronCluster,
const TrackRef closestCtfTrack,
const TrackBaseRef conversionPartner,
const GsfTrackRefVector ambiguousTracks 
) const

Definition at line 138 of file GsfElectron.cc.

 { return new GsfElectron(*this,core,electronCluster,closestCtfTrack,conversionPartner,ambiguousTracks) ; }
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 134 of file GsfElectron.cc.

References GsfElectron().

 { return new GsfElectron(*this) ; }
ClosestCtfTrack reco::GsfElectron::closestCtfTrack ( ) const [inline]

Definition at line 186 of file GsfElectron.h.

References core(), and ctfGsfOverlap().

{ return ClosestCtfTrack(core()->ctfTrack(),core()->ctfGsfOverlap()) ; }
TrackRef reco::GsfElectron::closestCtfTrackRef ( ) const [inline]
virtual TrackRef reco::GsfElectron::closestTrack ( ) const [inline, virtual]

Definition at line 170 of file GsfElectron.h.

References core().

{ return core()->ctfTrack() ; }
float reco::GsfElectron::convDcot ( ) const [inline]
float reco::GsfElectron::convDist ( ) const [inline]
const ConversionRejection& reco::GsfElectron::conversionRejectionVariables ( ) const [inline]

Definition at line 501 of file GsfElectron.h.

References conversionRejection_.

{ return conversionRejection_ ; }
int reco::GsfElectron::convFlags ( ) const [inline]
TrackBaseRef reco::GsfElectron::convPartner ( ) const [inline]
float reco::GsfElectron::convRadius ( ) const [inline]
GsfElectronCoreRef GsfElectron::core ( ) const [virtual]
void reco::GsfElectron::correctEcalEnergy ( float  newEnergy,
float  newEnergyError 
) [inline]

Definition at line 729 of file GsfElectron.h.

References setCorrectedEcalEnergy(), and setEcalEnergyError().

     {
      setCorrectedEcalEnergy(newEnergy) ;
      setEcalEnergyError(newEnergyError) ;
     }
float reco::GsfElectron::correctedEcalEnergy ( ) const [inline]
float reco::GsfElectron::correctedEcalEnergyError ( ) const [inline]
const Corrections& reco::GsfElectron::corrections ( ) const [inline]

Definition at line 720 of file GsfElectron.h.

References corrections_.

{ return corrections_ ; }
void reco::GsfElectron::correctMomentum ( const LorentzVector p4,
float  trackMomentumError,
float  p4Error 
) [inline]
float reco::GsfElectron::ctfGsfOverlap ( ) const [inline]

Definition at line 171 of file GsfElectron.h.

References core().

Referenced by closestCtfTrack().

{ return core()->ctfGsfOverlap() ; }
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::dr03HcalDepth1TowerSumEtBc ( ) const [inline]
float reco::GsfElectron::dr03HcalDepth2TowerSumEt ( ) const [inline]
float reco::GsfElectron::dr03HcalDepth2TowerSumEtBc ( ) const [inline]
float reco::GsfElectron::dr03HcalTowerSumEt ( ) const [inline]
float reco::GsfElectron::dr03HcalTowerSumEtBc ( ) const [inline]
const IsolationVariables& reco::GsfElectron::dr03IsolationVariables ( ) const [inline]

Definition at line 444 of file GsfElectron.h.

References dr03_.

Referenced by WenuPlots::analyze().

{ return dr03_ ; }
float reco::GsfElectron::dr03TkSumPt ( ) const [inline]
float reco::GsfElectron::dr04EcalRecHitSumEt ( ) const [inline]
float reco::GsfElectron::dr04HcalDepth1TowerSumEt ( ) const [inline]
float reco::GsfElectron::dr04HcalDepth1TowerSumEtBc ( ) const [inline]
float reco::GsfElectron::dr04HcalDepth2TowerSumEt ( ) const [inline]
float reco::GsfElectron::dr04HcalDepth2TowerSumEtBc ( ) const [inline]
float reco::GsfElectron::dr04HcalTowerSumEt ( ) const [inline]
float reco::GsfElectron::dr04HcalTowerSumEtBc ( ) const [inline]
const IsolationVariables& reco::GsfElectron::dr04IsolationVariables ( ) const [inline]

Definition at line 455 of file GsfElectron.h.

References dr04_.

{ return dr04_ ; }
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 147 of file GsfElectron.cc.

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

 {
  if (!passingCutBasedPreselection()&&!passingMvaPreselection())
   {
    edm::LogWarning("GsfElectronAlgo|UndefinedPreselectionInfo")
      <<"All preselection flags are false,"
      <<" either the data is too old or electrons were not preselected." ;
   }
  return (ecalDrivenSeed()&&passingCutBasedPreselection()) ;
 }
bool reco::GsfElectron::ecalDrivenSeed ( ) const [inline]
float reco::GsfElectron::ecalEnergy ( ) const [inline]

Definition at line 724 of file GsfElectron.h.

References correctedEcalEnergy().

Referenced by ElectronMcSignalValidator::analyze(), and egHLT::OffHelper::fillHLTData().

{ return correctedEcalEnergy() ; }
float reco::GsfElectron::ecalEnergyError ( ) const [inline]

Definition at line 725 of file GsfElectron.h.

References correctedEcalEnergyError().

{ return correctedEcalEnergyError() ; }
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 340 of file GsfElectron.h.

References fiducialFlags_.

{ return fiducialFlags_ ; }
virtual GsfTrackRef reco::GsfElectron::gsfTrack ( ) const [inline, virtual]
float reco::GsfElectron::hadronicOverEm ( ) const [inline]
float reco::GsfElectron::hadronicOverEm1 ( ) const [inline]

Definition at line 404 of file GsfElectron.h.

References hcalDepth1OverEcal().

{return hcalDepth1OverEcal();}
float reco::GsfElectron::hadronicOverEm2 ( ) const [inline]

Definition at line 405 of file GsfElectron.h.

References hcalDepth2OverEcal().

{return hcalDepth2OverEcal();}
float reco::GsfElectron::hcalDepth1OverEcal ( ) const [inline]
float reco::GsfElectron::hcalDepth1OverEcalBc ( ) const [inline]
float reco::GsfElectron::hcalDepth2OverEcal ( ) const [inline]
float reco::GsfElectron::hcalDepth2OverEcalBc ( ) const [inline]
float reco::GsfElectron::hcalOverEcal ( ) const [inline]
float reco::GsfElectron::hcalOverEcalBc ( ) const [inline]
const std::vector<CaloTowerDetId>& reco::GsfElectron::hcalTowersBehindClusters ( ) 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 334 of file GsfElectron.h.

References isEBEtaGap(), and isEBPhiGap().

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

{ return (isEBEtaGap()||isEBPhiGap()) ; }
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 337 of file GsfElectron.h.

References isEEDeeGap(), and isEERingGap().

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

{ return (isEEDeeGap()||isEERingGap()) ; }
bool reco::GsfElectron::isEERingGap ( ) const [inline]
virtual bool reco::GsfElectron::isElectron ( ) const [inline, virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 145 of file GsfElectron.h.

References funct::true.

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

Definition at line 728 of file GsfElectron.h.

References isEcalEnergyCorrected().

{ return isEcalEnergyCorrected() ; }
bool reco::GsfElectron::isGap ( ) const [inline]

Definition at line 332 of file GsfElectron.h.

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

Referenced by TopElectronHLTOfflineSource::fill().

{ return ((isEBEEGap())||(isEBGap())||(isEEGap())) ; }
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 464 of file GsfElectron.h.

References dr03_.

{ return dr03_ ; }
const IsolationVariables& reco::GsfElectron::isolationVariables04 ( ) const [inline]

Definition at line 465 of file GsfElectron.h.

References dr04_.

{ return dr04_ ; }
float reco::GsfElectron::mva ( ) const [inline]
const MvaInput& reco::GsfElectron::mvaInput ( ) const [inline]

Definition at line 557 of file GsfElectron.h.

References mvaInput_.

{ return mvaInput_ ; }
const MvaOutput& reco::GsfElectron::mvaOutput ( ) const [inline]

Definition at line 558 of file GsfElectron.h.

References mvaOutput_.

Referenced by GsfElectronAlgo::setPflowPreselectionFlag().

{ return mvaOutput_ ; }
int reco::GsfElectron::numberOfBrems ( ) const [inline]
bool GsfElectron::overlap ( const Candidate ) const [virtual]

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 125 of file GsfElectron.cc.

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

                                                     {
  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
  return ( o != 0 &&
           ( checkOverlap( gsfTrack(), o->gsfTrack() ) ||
             checkOverlap( superCluster(), o->superCluster() ) )
           );
  //?? return false;
}
const Candidate::LorentzVector & GsfElectron::p4 ( P4Kind  kind) const
float GsfElectron::p4Error ( P4Kind  kind) const
bool reco::GsfElectron::passingCutBasedPreselection ( ) const [inline]

Definition at line 585 of file GsfElectron.h.

References passCutBasedPreselection_.

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

bool reco::GsfElectron::passingMvaPreselection ( ) const [inline]

Definition at line 601 of file GsfElectron.h.

References passMvaPreslection_.

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

{ return passMvaPreslection_ ; }
bool reco::GsfElectron::passingPflowPreselection ( ) const [inline]

Definition at line 586 of file GsfElectron.h.

References passPflowPreselection_.

Referenced by GsfElectronAlgo::isPreselected().

const PflowIsolationVariables& reco::GsfElectron::pfIsolationVariables ( ) const [inline]

Definition at line 556 of file GsfElectron.h.

References pfIso_.

Referenced by ElectronMcFakeValidator::analyze(), and ElectronMcSignalValidator::analyze().

{ return pfIso_ ; }
SuperClusterRef reco::GsfElectron::pflowSuperCluster ( ) const [inline]
const ShowerShape& reco::GsfElectron::pfShowerShape ( ) const [inline]

Definition at line 555 of file GsfElectron.h.

References pfShowerShape_.

{ return pfShowerShape_ ; }
float reco::GsfElectron::pfSuperClusterFbrem ( ) const [inline]
float reco::GsfElectron::r9 ( ) const [inline]

Reimplemented in pat::Electron.

Definition at line 387 of file GsfElectron.h.

References reco::GsfElectron::ShowerShape::r9, and showerShape_.

{ return showerShape_.r9 ; }
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.

{ return chargeInfo_.scPixCharge ; }
float reco::GsfElectron::scSigmaEtaEta ( ) const [inline]
float reco::GsfElectron::scSigmaIEtaIEta ( ) const [inline]
void reco::GsfElectron::setAmbiguous ( bool  flag) [inline]

Definition at line 595 of file GsfElectron.h.

References ambiguous_.

{ ambiguous_ = flag ; }
void reco::GsfElectron::setClassification ( Classification  myclass) [inline]

Definition at line 646 of file GsfElectron.h.

References class_.

Referenced by ElectronClassification::classify(), and ElectronClassification::refineWithPflow().

{ class_ = myclass ; }
void reco::GsfElectron::setClassificationVariables ( const ClassificationVariables cv) [inline]

Definition at line 645 of file GsfElectron.h.

References classVariables_.

{ classVariables_ = cv ; }
void GsfElectron::setCorrectedEcalEnergy ( float  newEnergy)
void GsfElectron::setCorrectedEcalEnergyError ( float  newEnergyError)
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 458 of file GsfElectron.h.

References dr03_.

{ dr03_ = dr03 ; }
void reco::GsfElectron::setDr04Isolation ( const IsolationVariables dr04) [inline]

Definition at line 459 of file GsfElectron.h.

References dr04_.

{ dr04_ = dr04 ; }
void reco::GsfElectron::setEcalEnergyError ( float  energyError) [inline]

Definition at line 723 of file GsfElectron.h.

References setCorrectedEcalEnergyError().

Referenced by correctEcalEnergy().

void reco::GsfElectron::setIsolation03 ( const IsolationVariables dr03) [inline]

Definition at line 462 of file GsfElectron.h.

References dr03_.

Referenced by GsfElectronAlgo::createElectron().

{ dr03_ = dr03 ; }
void reco::GsfElectron::setIsolation04 ( const IsolationVariables dr04) [inline]

Definition at line 463 of file GsfElectron.h.

References dr04_.

Referenced by GsfElectronAlgo::createElectron().

{ dr04_ = dr04 ; }
void reco::GsfElectron::setMvaInput ( const MvaInput mi) [inline]

Definition at line 563 of file GsfElectron.h.

References mvaInput_.

Referenced by PFElectronTranslator::createGsfElectrons().

{ mvaInput_ = mi ; }
void reco::GsfElectron::setMvaOutput ( const MvaOutput mo) [inline]

Definition at line 564 of file GsfElectron.h.

References mvaOutput_.

Referenced by PFElectronTranslator::createGsfElectrons().

{ mvaOutput_ = mo ; }
void GsfElectron::setP4 ( P4Kind  kind,
const LorentzVector p4,
float  p4Error,
bool  setCandidate 
)
void reco::GsfElectron::setPassCutBasedPreselection ( bool  flag) [inline]
void reco::GsfElectron::setPassMvaPreselection ( bool  flag) [inline]

Definition at line 600 of file GsfElectron.h.

References passMvaPreslection_.

Referenced by GsfElectronAlgo::setPflowPreselectionFlag().

void reco::GsfElectron::setPassPflowPreselection ( bool  flag) [inline]
void reco::GsfElectron::setPfIsolationVariables ( const PflowIsolationVariables iso) [inline]

Definition at line 562 of file GsfElectron.h.

References pfIso_.

Referenced by PFElectronTranslator::createGsfElectrons().

{ pfIso_ = iso ; }
void reco::GsfElectron::setPfShowerShape ( const ShowerShape shape) [inline]

Definition at line 561 of file GsfElectron.h.

References pfShowerShape_.

{ pfShowerShape_ = shape ; }
void reco::GsfElectron::setPfSuperClusterFbrem ( float  fbrem) [inline]
void reco::GsfElectron::setSuperClusterFbrem ( float  fbrem) [inline]
void reco::GsfElectron::setTrackFbrem ( float  fbrem) [inline]
void GsfElectron::setTrackMomentumError ( float  trackMomentumError)

Definition at line 174 of file GsfElectron.cc.

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

Referenced by correctMomentum().

 { corrections_.trackMomentumError = trackErr ; }
float reco::GsfElectron::shFracInnerHits ( ) const [inline]

Definition at line 184 of file GsfElectron.h.

References core().

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

{ return core()->ctfGsfOverlap() ; }
const ShowerShape& reco::GsfElectron::showerShape ( ) const [inline]

Definition at line 395 of file GsfElectron.h.

References showerShape_.

{ return showerShape_ ; }
float reco::GsfElectron::sigmaEtaEta ( ) const [inline]
float reco::GsfElectron::sigmaIetaIeta ( ) const [inline]
float reco::GsfElectron::sigmaIphiIphi ( ) const [inline]

Reimplemented in pat::Electron.

Definition at line 383 of file GsfElectron.h.

References showerShape_, and reco::GsfElectron::ShowerShape::sigmaIphiIphi.

virtual SuperClusterRef reco::GsfElectron::superCluster ( ) const [inline, virtual]

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(), GsfElectronDataAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), GsfElectronMCFakeAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), basicClustersBegin(), basicClustersEnd(), basicClustersSize(), FWElectronDetailView::build(), FWElectronProxyBuilder::buildViewType(), caloPosition(), CutBasedElectronID::cicSelection(), ElectronEnergyCorrector::classBasedParameterizationEnergy(), ElectronEnergyCorrector::classBasedParameterizationUncertainty(), CutBasedElectronID::classify(), helper::GsfElectronCollectionStoreManager::cloneAndStore(), EGEnergyCorrector::CorrectedEnergyWithError(), GsfElectronAlgo::createElectron(), PFCandWithSuperClusterExtractor::depositFromObject(), 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(), ElectronLikelihood::result(), PTDRElectronID::result(), ElectronLikelihood::resultLog(), CutBasedElectronID::robustSelection(), GsfElectronAlgo::setCutBasedPreselectionFlag(), FWElectronDetailView::setTextInfo(), and superClusterPosition().

{ return core()->superCluster() ; }
float reco::GsfElectron::superClusterFbrem ( ) const [inline]
math::XYZPoint reco::GsfElectron::superClusterPosition ( ) const [inline]

Definition at line 297 of file GsfElectron.h.

References superCluster().

{ return superCluster()->position() ; } // the super cluster position
const TrackClusterMatching& reco::GsfElectron::trackClusterMatching ( ) const [inline]

Definition at line 239 of file GsfElectron.h.

References trackClusterMatching_.

{ return trackClusterMatching_ ; }
bool reco::GsfElectron::trackerDrivenSeed ( ) const [inline]
const TrackExtrapolations& reco::GsfElectron::trackExtrapolations ( ) const [inline]

Definition at line 277 of file GsfElectron.h.

References trackExtrapolations_.

{ return trackExtrapolations_ ; }
float reco::GsfElectron::trackFbrem ( ) const [inline]
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]
math::XYZPointF reco::GsfElectron::TrackPositionAtCalo ( ) const [inline]

Definition at line 281 of file GsfElectron.h.

References trackPositionAtCalo().

{ return trackPositionAtCalo() ; }
math::XYZPointF reco::GsfElectron::trackPositionAtVtx ( ) const [inline]
math::XYZPointF reco::GsfElectron::TrackPositionAtVtx ( ) const [inline]

Definition at line 280 of file GsfElectron.h.

References trackPositionAtVtx().

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

{ return trackPositionAtVtx() ; }

Member Data Documentation

Definition at line 609 of file GsfElectron.h.

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

Definition at line 652 of file GsfElectron.h.

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

Definition at line 191 of file GsfElectron.h.

Referenced by core().

Definition at line 573 of file GsfElectron.h.

Referenced by mvaInput(), and setMvaInput().

Definition at line 574 of file GsfElectron.h.

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

Definition at line 606 of file GsfElectron.h.

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

Definition at line 608 of file GsfElectron.h.

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

Definition at line 607 of file GsfElectron.h.

Referenced by init(), passingPflowPreselection(), and setPassPflowPreselection().

Definition at line 572 of file GsfElectron.h.

Referenced by pfIsolationVariables(), and setPfIsolationVariables().

Definition at line 571 of file GsfElectron.h.

Referenced by pfShowerShape(), and setPfShowerShape().