CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

pat::Electron Class Reference

Analysis-level electron class. More...

#include <DataFormats/PatCandidates/interface/Electron.h>

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

List of all members.

Public Types

typedef std::pair< std::string,
float > 
IdPair
enum  IPTYPE {
  None = 0, PV2D = 1, PV3D = 2, BS2D = 3,
  BS3D = 4
}
typedef enum pat::Electron::IPTYPE IpType

Public Member Functions

float caloIso () const
 Overload of pat::Lepton::caloIso(); returns the sum of ecalIso() and hcalIso.
virtual Electronclone () const
 required reimplementation of the Candidate's clone method
reco::TrackRef closestCtfTrackRef () const
 override the reco::GsfElectron::closestCtfTrackRef method, to access the internal storage of the track
virtual reco::GsfElectronCoreRef core () const
 override the virtual reco::GsfElectron::core method, so that the embedded core can be used by GsfElectron client methods
double dB (IpType type=None) const
 Impact parameter wrt primary vertex or beamspot.
const LorentzVectorecalDrivenMomentum () const
float ecalIso () const
 Overload of pat::Lepton::ecalIso(); returns the value of the summed Et of all recHits in the ecal in a cone of deltaR<0.4.
double edB (IpType type=None) const
 Uncertainty on the corresponding impact parameter.
 Electron (const edm::Ptr< reco::GsfElectron > &anElectronRef)
 constructor from a Ptr to a reco::GsfElectron
 Electron (const reco::GsfElectron &anElectron)
 constructor from reco::GsfElectron
 Electron (const edm::RefToBase< reco::GsfElectron > &anElectronRef)
 constructor from a RefToBase to a reco::GsfElectron (to be superseded by Ptr counterpart)
 Electron ()
 default constructor
float electronID (const std::string &name) const
 Returns a specific electron ID associated to the pat::Electron given its name.
float electronID (const char *name) const
const std::vector< IdPair > & electronIDs () const
 Returns all the electron IDs in the form of <name,value> pairs. The 'default' ID is the first in the list.
void embedGsfElectronCore ()
 method to store the electron's core internally
void embedGsfTrack ()
 method to store the electron's GsfTrack internally
void embedPFCandidate ()
 embed the PFCandidate pointed to by pfCandidateRef_
void embedSuperCluster ()
 method to store the electron's SuperCluster internally
void embedTrack ()
 method to store the electron's Track internally
reco::GsfTrackRef gsfTrack () const
 override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster
float hcalIso () const
 Overload of pat::Lepton::hcalIso(); returns the value of the summed Et of all caloTowers in the hcal in a cone of deltaR<0.4.
double ip3d () const
 ip3d
bool isElectronIDAvailable (const std::string &name) const
 Returns true if a specific ID is available in this pat::Electron.
bool isElectronIDAvailable (const char *name) const
bool isPF () const
size_t numberOfSourceCandidatePtrs () const
 get the number of non-null PFCandidates
bool passConversionVeto () const
 vertex fit combined with missing number of hits method
reco::PFCandidateRef pfCandidateRef () const
 reference to the source PFCandidates; null if this has been built from a standard electron
double r9 () const
void setDB (double dB, double edB, IpType type=None)
 Set impact parameter of a certain type and its uncertainty.
void setEcalDrivenMomentum (const Candidate::LorentzVector &mom)
void setElectronIDs (const std::vector< IdPair > &ids)
 Store multiple electron ID values, discarding existing ones. The first one in the list becomes the 'default' electron id.
void setIsPF (bool hasPFCandidate)
void setMvaVariables (double r9, double sigmaIphiIphi, double sigmaIetaIphi, double ip3d)
 set missing mva input variables
void setPassConversionVeto (bool flag)
void setPFCandidateRef (const reco::PFCandidateRef &ref)
 add a reference to the source IsolatedPFCandidate
double sigmaIetaIphi () const
 sigmaIEtaIPhi
double sigmaIphiIphi () const
 sigmaIPhiPhi
reco::CandidatePtr sourceCandidatePtr (size_type i) const
 get the source candidate pointer with index i
reco::SuperClusterRef superCluster () const
 override the reco::GsfElectron::superCluster method, to access the internal storage of the supercluster
reco::TrackRef track () const
 returns nothing. Use either gsfTrack or closestCtfTrack
float trackIso () const
 Overload of pat::Lepton::trackIso(); returns the value of the summed track pt in a cone of deltaR<0.4.
virtual ~Electron ()
 destructor

Protected Member Functions

void initImpactParameters ()
 init impact parameter defaults (for use in a constructor)

Protected Attributes

bool cachedDB_
 True if impact parameter has been cached.
std::vector< bool > cachedIP_
 True if the IP (former dB) has been cached.
double dB_
 Impact parameter at the primary vertex.
LorentzVector ecalDrivenMomentum_
 ECAL-driven momentum.
double edB_
 Impact paramater uncertainty at the primary vertex.
std::vector< double > eip_
 Impact parameter uncertainty as recommended by the tracking group.
std::vector< IdPairelectronIDs_
 Electron IDs.
bool embeddedGsfElectronCore_
 True if electron's gsfElectronCore is stored internally.
bool embeddedGsfTrack_
 True if electron's gsfTrack is stored internally.
bool embeddedPFCandidate_
 true if the IsolatedPFCandidate is embedded
bool embeddedSuperCluster_
 True if electron's supercluster is stored internally.
bool embeddedTrack_
 True if electron's track is stored internally.
std::vector
< reco::GsfElectronCore
gsfElectronCore_
 Place to store electron's gsfElectronCore internally.
std::vector< reco::GsfTrackgsfTrack_
 Place to store electron's gsfTrack internally.
double ip3d_
std::vector< double > ip_
 Impact parameter at the primary vertex,.
bool isPF_
bool passConversionVeto_
 conversion veto
reco::PFCandidateCollection pfCandidate_
 A copy of the source IsolatedPFCandidate is stored in this vector if embeddedPFCandidate_ if True.
reco::PFCandidateRef pfCandidateRef_
 reference to the IsolatedPFCandidate this has been built from; null if this has been built from a standard electron
double r9_
 additional missing mva variables : 14/04/2012
double sigmaIetaIphi_
double sigmaIphiIphi_
std::vector< reco::SuperClustersuperCluster_
 Place to store electron's supercluster internally.
std::vector< reco::Tracktrack_
 Place to store electron's track internally.

Friends

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

Detailed Description

Analysis-level electron class.

pat::Electron implements the analysis-level electron class within the 'pat' namespace.

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

Author:
Steven Lowette, Giovanni Petrucciani, Frederic Ronga
Version:
Id:
Electron.h,v 1.41 2012/08/30 00:19:27 tjkim Exp

Definition at line 50 of file Electron.h.


Member Typedef Documentation

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

Definition at line 54 of file Electron.h.


Member Enumeration Documentation

Enumerator:
None 
PV2D 
PV3D 
BS2D 
BS3D 

Definition at line 149 of file Electron.h.

{ None = 0, PV2D = 1, PV3D = 2, BS2D = 3, BS3D = 4 } IpType;

Constructor & Destructor Documentation

Electron::Electron ( )

default constructor

Definition at line 13 of file Electron.cc.

References initImpactParameters().

Referenced by clone().

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

constructor from reco::GsfElectron

Definition at line 29 of file Electron.cc.

References initImpactParameters().

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

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

Definition at line 45 of file Electron.cc.

References initImpactParameters().

                                                                      :
    Lepton<reco::GsfElectron>(anElectronRef),
    embeddedGsfElectronCore_(false),
    embeddedGsfTrack_(false),
    embeddedSuperCluster_(false),
    embeddedTrack_(false),
    embeddedPFCandidate_(false),
    ecalDrivenMomentum_(anElectronRef->p4()),
    cachedDB_(false),
    dB_(0.0),
    edB_(0.0)
{
  initImpactParameters();
}
Electron::Electron ( const edm::Ptr< reco::GsfElectron > &  anElectronRef)

constructor from a Ptr to a reco::GsfElectron

Definition at line 61 of file Electron.cc.

References initImpactParameters().

                                                                :
    Lepton<reco::GsfElectron>(anElectronRef),
    embeddedGsfElectronCore_(false),
    embeddedGsfTrack_(false),
    embeddedSuperCluster_(false),
    embeddedTrack_(false),
    embeddedPFCandidate_(false),
    ecalDrivenMomentum_(anElectronRef->p4()),
    cachedDB_(false),
    dB_(0.0),
    edB_(0.0)
{
  initImpactParameters();
}
Electron::~Electron ( ) [virtual]

destructor

Definition at line 77 of file Electron.cc.

                    {
}

Member Function Documentation

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

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

Reimplemented from pat::Lepton< reco::GsfElectron >.

Definition at line 127 of file Electron.h.

References ecalIso(), and hcalIso().

{ return ecalIso()+hcalIso(); }
virtual Electron* pat::Electron::clone ( void  ) const [inline, virtual]

required reimplementation of the Candidate's clone method

Reimplemented from pat::Lepton< reco::GsfElectron >.

Definition at line 68 of file Electron.h.

References Electron().

{ return new Electron(*this); }
reco::TrackRef Electron::closestCtfTrackRef ( ) const

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

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

Reimplemented from reco::GsfElectron.

Definition at line 137 of file Electron.cc.

References embeddedTrack_, and track_.

Referenced by WenuPlots::analyze().

                                                {
  if (embeddedTrack_) {
    return reco::TrackRef(&track_, 0);
  } else {
    return reco::GsfElectron::closestCtfTrackRef();
  }
}
reco::GsfElectronCoreRef Electron::core ( ) const [virtual]

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

Reimplemented from reco::GsfElectron.

Definition at line 118 of file Electron.cc.

References embeddedGsfElectronCore_, and gsfElectronCore_.

double Electron::dB ( IpType  type_ = None) const

Impact parameter wrt primary vertex or beamspot.

dB gives the impact parameter wrt the beamline. If this is not cached it is not meaningful, since it relies on the distance to the beamline.

IpType defines the type of the impact parameter None is default and reverts to the old functionality.

Example: electron->dB(pat::Electron::PV2D) will return the electron transverse impact parameter relative to the primary vertex.

Definition at line 264 of file Electron.cc.

References cachedDB_, cachedIP_, dB_, ip_, max(), and None.

Referenced by WenuPlots::analyze(), ElectronVPlusJetsIDSelectionFunctor::firstDataCuts(), ZeePlots::ReturnCandVar(), setDB(), and PFElectronSelector::spring11Cuts().

                                      {
  // preserve old functionality exactly
  if (type_ == None){
    if ( cachedDB_ ) {
      return dB_;
    } else {
      return std::numeric_limits<double>::max();
    }
  }
  // more IP types (new)
  else if ( cachedIP_[type_] ) {
    return ip_[type_];
  } else {
    return std::numeric_limits<double>::max();
  }
}
const LorentzVector& pat::Electron::ecalDrivenMomentum ( ) const [inline]

Definition at line 158 of file Electron.h.

References ecalDrivenMomentum_.

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

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

Reimplemented from pat::Lepton< reco::GsfElectron >.

Definition at line 123 of file Electron.h.

References reco::GsfElectron::dr04EcalRecHitSumEt().

Referenced by caloIso().

{ return dr04EcalRecHitSumEt(); }
double Electron::edB ( IpType  type_ = None) const

Uncertainty on the corresponding impact parameter.

edB gives the uncertainty on the impact parameter wrt the beamline. If this is not cached it is not meaningful, since it relies on the distance to the beamline.

IpType defines the type of the impact parameter None is default and reverts to the old functionality.

Example: electron->edB(pat::Electron::PV2D) will return the electron transverse impact parameter uncertainty relative to the primary vertex.

Definition at line 291 of file Electron.cc.

References cachedDB_, cachedIP_, edB_, eip_, max(), and None.

Referenced by ElectronVPlusJetsIDSelectionFunctor::firstDataCuts(), and setDB().

                                       {
  // preserve old functionality exactly
  if (type_ == None) {
    if ( cachedDB_ ) {
      return edB_;
    } else {
      return std::numeric_limits<double>::max();
    }
  }
  // more IP types (new)
  else if ( cachedIP_[type_] ) {
    return eip_[type_];
  } else {
    return std::numeric_limits<double>::max();
  }

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

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

Returns a specific electron ID associated to the pat::Electron given its name For cut-based IDs, the value map has the following meaning: 0: fails, 1: passes electron ID only, 2: passes electron Isolation only, 3: passes electron ID and Isolation only, 4: passes conversion rejection, 5: passes conversion rejection and ID, 6: passes conversion rejection and Isolation, 7: passes the whole selection. For more details have a look at: https://twiki.cern.ch/twiki/bin/view/CMS/SimpleCutBasedEleID https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCategoryBasedElectronID Note: an exception is thrown if the specified ID is not available

Definition at line 201 of file Electron.cc.

References electronIDs_.

Referenced by WenuPlots::analyze(), WenuPlots::CheckCuts(), ZeePlots::CheckCuts1(), ZeePlots::CheckCuts2(), and PFElectronSelector::spring11Cuts().

                                                      {
    for (std::vector<IdPair>::const_iterator it = electronIDs_.begin(), ed = electronIDs_.end(); it != ed; ++it) {
        if (it->first == name) return it->second;
    }
    cms::Exception ex("Key not found");
    ex << "pat::Electron: the ID " << name << " can't be found in this pat::Electron.\n";
    ex << "The available IDs are: ";
    for (std::vector<IdPair>::const_iterator it = electronIDs_.begin(), ed = electronIDs_.end(); it != ed; ++it) {
        ex << "'" << it->first << "' ";
    }
    ex << ".\n";
    throw ex;
}
float pat::Electron::electronID ( const char *  name) const [inline]

Definition at line 108 of file Electron.h.

References electronID().

Referenced by electronID().

{ return electronID( std::string(name) );}
const std::vector<IdPair>& pat::Electron::electronIDs ( ) const [inline]

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

Definition at line 115 of file Electron.h.

References electronIDs_.

{ return electronIDs_; }
void Electron::embedGsfElectronCore ( )

method to store the electron's core internally

Stores the electron's core (reco::GsfElectronCoreRef) internally.

Definition at line 151 of file Electron.cc.

References reco::GsfElectron::core(), embeddedGsfElectronCore_, and gsfElectronCore_.

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

void Electron::embedGsfTrack ( )

method to store the electron's GsfTrack internally

Stores the electron's gsfTrack (reco::GsfTrackRef) internally.

Definition at line 160 of file Electron.cc.

References embeddedGsfTrack_, reco::GsfElectron::gsfTrack(), and gsfTrack_.

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

                             {
  gsfTrack_.clear();
  if (reco::GsfElectron::gsfTrack().isNonnull()) {
      gsfTrack_.push_back(*reco::GsfElectron::gsfTrack());
      embeddedGsfTrack_ = true;
  }
}
void Electron::embedPFCandidate ( )

embed the PFCandidate pointed to by pfCandidateRef_

Stores the PFCandidate pointed to by pfCandidateRef_ internally.

Definition at line 234 of file Electron.cc.

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

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

void Electron::embedSuperCluster ( )

method to store the electron's SuperCluster internally

Stores the electron's SuperCluster (reco::SuperClusterRef) internally.

Definition at line 170 of file Electron.cc.

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

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

void Electron::embedTrack ( )

method to store the electron's Track internally

method to store the electron's track internally

Definition at line 179 of file Electron.cc.

References reco::GsfElectron::closestCtfTrackRef(), embeddedTrack_, and track_.

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

reco::GsfTrackRef Electron::gsfTrack ( ) const [virtual]
float pat::Electron::hcalIso ( ) const [inline]

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

Reimplemented from pat::Lepton< reco::GsfElectron >.

Definition at line 125 of file Electron.h.

References reco::GsfElectron::dr04HcalTowerSumEt().

Referenced by caloIso().

{ return dr04HcalTowerSumEt(); }
void Electron::initImpactParameters ( ) [protected]

init impact parameter defaults (for use in a constructor)

initializes the impact parameter container vars

Definition at line 99 of file Electron.cc.

References cachedIP_, eip_, and ip_.

Referenced by Electron().

                                    {
  for (int i_ = 0; i_<5; ++i_){
    ip_.push_back(0.0);
    eip_.push_back(0.0);
    cachedIP_.push_back(false);
  }
}
double pat::Electron::ip3d ( ) const [inline]

ip3d

Definition at line 172 of file Electron.h.

References ip3d_.

Referenced by setMvaVariables().

{ return ip3d_; }
bool Electron::isElectronIDAvailable ( const std::string &  name) const

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

Checks if a specific electron ID is associated to the pat::Electron.

Definition at line 216 of file Electron.cc.

References electronIDs_.

Referenced by WenuPlots::analyze(), and isElectronIDAvailable().

                                                                {
    for (std::vector<IdPair>::const_iterator it = electronIDs_.begin(), ed = electronIDs_.end(); it != ed; ++it) {
        if (it->first == name) return true;
    }
    return false;
}
bool pat::Electron::isElectronIDAvailable ( const char *  name) const [inline]

Definition at line 111 of file Electron.h.

References isElectronIDAvailable().

                                                         {
        return isElectronIDAvailable(std::string(name));
      }
bool pat::Electron::isPF ( ) const [inline]

Definition at line 130 of file Electron.h.

References isPF_.

{ return isPF_; }
size_t pat::Electron::numberOfSourceCandidatePtrs ( ) const [inline, virtual]

get the number of non-null PFCandidates

Reimplemented from reco::LeafCandidate.

Definition at line 142 of file Electron.h.

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

                                                 {
        return pfCandidateRef_.isNonnull() ? 1 : 0;
      }
bool pat::Electron::passConversionVeto ( ) const [inline]

vertex fit combined with missing number of hits method

Definition at line 177 of file Electron.h.

References passConversionVeto_.

{ return passConversionVeto_; }
reco::PFCandidateRef Electron::pfCandidateRef ( ) const

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

reference to the source PFCandidates

Definition at line 225 of file Electron.cc.

References embeddedPFCandidate_, pfCandidate_, and pfCandidateRef_.

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

                                                  {
  if (embeddedPFCandidate_) {
    return reco::PFCandidateRef(&pfCandidate_, 0);
  } else {
    return pfCandidateRef_;
  }
}
double pat::Electron::r9 ( ) const [inline]

additional mva input variables R9 variable

Reimplemented from reco::GsfElectron.

Definition at line 166 of file Electron.h.

References r9_.

Referenced by setMvaVariables().

{ return r9_; };
void Electron::setDB ( double  dB,
double  edB,
IpType  type = None 
)

Set impact parameter of a certain type and its uncertainty.

Sets the impact parameter and its error wrt the beamline and caches it.

Definition at line 310 of file Electron.cc.

References cachedDB_, cachedIP_, dB(), dB_, edB(), edB_, eip_, ip_, and None.

Referenced by pat::PATElectronProducer::embedHighLevel(), and pat::PATElectronProducer::produce().

                                                      {
  if (type == None) { // Preserve  old functionality exactly
    dB_ = dB; edB_ = edB;
    cachedDB_ = true;
  } else {
    ip_[type] = dB; 
    eip_[type] = edB; 
    cachedIP_[type] = true;
  }
}
void pat::Electron::setEcalDrivenMomentum ( const Candidate::LorentzVector mom) [inline]

Definition at line 159 of file Electron.h.

References ecalDrivenMomentum_.

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

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

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

Definition at line 117 of file Electron.h.

References electronIDs_.

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

{ electronIDs_ = ids; }
void pat::Electron::setIsPF ( bool  hasPFCandidate) [inline]

Definition at line 131 of file Electron.h.

References isPF_.

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

{ isPF_ = hasPFCandidate ; }
void Electron::setMvaVariables ( double  r9,
double  sigmaIphiIphi,
double  sigmaIetaIphi,
double  ip3d 
)

set missing mva input variables

Set additional missing mva input variables for new mva ID : 14/04/2012.

Definition at line 322 of file Electron.cc.

References ip3d(), ip3d_, r9(), r9_, sigmaIetaIphi(), sigmaIetaIphi_, sigmaIphiIphi(), and sigmaIphiIphi_.

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

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

Definition at line 178 of file Electron.h.

References passConversionVeto_.

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

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

add a reference to the source IsolatedPFCandidate

Definition at line 136 of file Electron.h.

References pfCandidateRef_.

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

                                                            {
        pfCandidateRef_ = ref;
      }
double pat::Electron::sigmaIetaIphi ( ) const [inline]

sigmaIEtaIPhi

Definition at line 170 of file Electron.h.

References sigmaIetaIphi_.

Referenced by setMvaVariables().

{ return sigmaIetaIphi_; };
double pat::Electron::sigmaIphiIphi ( ) const [inline]

sigmaIPhiPhi

Reimplemented from reco::GsfElectron.

Definition at line 168 of file Electron.h.

References sigmaIphiIphi_.

Referenced by setMvaVariables().

{ return sigmaIphiIphi_; };
reco::CandidatePtr Electron::sourceCandidatePtr ( size_type  i) const [virtual]

get the source candidate pointer with index i

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

Reimplemented from reco::LeafCandidate.

Definition at line 244 of file Electron.cc.

References embeddedPFCandidate_, edm::Ref< C, T, F >::get(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::key(), and pfCandidateRef_.

reco::SuperClusterRef Electron::superCluster ( ) const [virtual]
reco::TrackRef Electron::track ( void  ) const [virtual]

returns nothing. Use either gsfTrack or closestCtfTrack

Reimplemented from reco::RecoCandidate.

Definition at line 146 of file Electron.cc.

                                   {
  return reco::TrackRef();
}
float pat::Electron::trackIso ( ) const [inline]

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

Reimplemented from pat::Lepton< reco::GsfElectron >.

Definition at line 121 of file Electron.h.

References reco::GsfElectron::dr04TkSumPt().

{ return dr04TkSumPt(); }

Friends And Related Function Documentation

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

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


Member Data Documentation

bool pat::Electron::cachedDB_ [protected]

True if impact parameter has been cached.

Definition at line 221 of file Electron.h.

Referenced by dB(), edB(), and setDB().

std::vector<bool> pat::Electron::cachedIP_ [protected]

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

Definition at line 238 of file Electron.h.

Referenced by dB(), edB(), initImpactParameters(), and setDB().

double pat::Electron::dB_ [protected]

Impact parameter at the primary vertex.

Definition at line 223 of file Electron.h.

Referenced by dB(), and setDB().

ECAL-driven momentum.

Definition at line 217 of file Electron.h.

Referenced by ecalDrivenMomentum(), and setEcalDrivenMomentum().

double pat::Electron::edB_ [protected]

Impact paramater uncertainty at the primary vertex.

Definition at line 225 of file Electron.h.

Referenced by edB(), and setDB().

std::vector<double> pat::Electron::eip_ [protected]

Impact parameter uncertainty as recommended by the tracking group.

Definition at line 242 of file Electron.h.

Referenced by edB(), initImpactParameters(), and setDB().

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

Electron IDs.

Definition at line 204 of file Electron.h.

Referenced by electronID(), electronIDs(), isElectronIDAvailable(), and setElectronIDs().

True if electron's gsfElectronCore is stored internally.

Definition at line 186 of file Electron.h.

Referenced by core(), and embedGsfElectronCore().

True if electron's gsfTrack is stored internally.

Definition at line 190 of file Electron.h.

Referenced by embedGsfTrack(), and gsfTrack().

true if the IsolatedPFCandidate is embedded

Definition at line 209 of file Electron.h.

Referenced by embedPFCandidate(), pfCandidateRef(), and sourceCandidatePtr().

True if electron's supercluster is stored internally.

Definition at line 194 of file Electron.h.

Referenced by embedSuperCluster(), and superCluster().

True if electron's track is stored internally.

Definition at line 198 of file Electron.h.

Referenced by closestCtfTrackRef(), and embedTrack().

Place to store electron's gsfElectronCore internally.

Definition at line 188 of file Electron.h.

Referenced by core(), and embedGsfElectronCore().

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

Place to store electron's gsfTrack internally.

Definition at line 192 of file Electron.h.

Referenced by embedGsfTrack(), and gsfTrack().

double pat::Electron::ip3d_ [protected]

Definition at line 231 of file Electron.h.

Referenced by ip3d(), and setMvaVariables().

std::vector<double> pat::Electron::ip_ [protected]

Impact parameter at the primary vertex,.

Definition at line 240 of file Electron.h.

Referenced by dB(), initImpactParameters(), and setDB().

bool pat::Electron::isPF_ [protected]

Definition at line 207 of file Electron.h.

Referenced by isPF(), and setIsPF().

conversion veto

Definition at line 234 of file Electron.h.

Referenced by passConversionVeto(), and setPassConversionVeto().

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

Definition at line 211 of file Electron.h.

Referenced by embedPFCandidate(), and pfCandidateRef().

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

Definition at line 213 of file Electron.h.

Referenced by embedPFCandidate(), numberOfSourceCandidatePtrs(), pfCandidateRef(), setPFCandidateRef(), and sourceCandidatePtr().

double pat::Electron::r9_ [protected]

additional missing mva variables : 14/04/2012

Definition at line 228 of file Electron.h.

Referenced by r9(), and setMvaVariables().

double pat::Electron::sigmaIetaIphi_ [protected]

Definition at line 230 of file Electron.h.

Referenced by setMvaVariables(), and sigmaIetaIphi().

double pat::Electron::sigmaIphiIphi_ [protected]

Definition at line 229 of file Electron.h.

Referenced by setMvaVariables(), and sigmaIphiIphi().

Place to store electron's supercluster internally.

Definition at line 196 of file Electron.h.

Referenced by embedSuperCluster(), and superCluster().

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

Place to store electron's track internally.

Definition at line 200 of file Electron.h.

Referenced by closestCtfTrackRef(), and embedTrack().