CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::Electron Class Reference

#include <Electron.h>

Inheritance diagram for reco::Electron:
reco::RecoCandidate reco::LeafCandidate reco::Candidate

List of all members.

Public Member Functions

virtual Electronclone () const
 returns a clone of the candidate
 Electron ()
 default constructor
 Electron (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack
bool isElectron () const
void setGsfTrack (const reco::GsfTrackRef &r)
 set reference to GsfTrack component
void setSuperCluster (const reco::SuperClusterRef &r)
 set refrence to Photon component
void setTrack (const reco::TrackRef &r)
 set refrence to Track component
virtual reco::SuperClusterRef superCluster () const
 reference to a SuperCluster
virtual reco::TrackRef track () const
 reference to a Track
virtual ~Electron ()
 destructor

Private Member Functions

virtual bool overlap (const Candidate &) const
 check overlap with another candidate

Private Attributes

reco::GsfTrackRef gsfTrack_
 reference to a GsfTrack;
reco::SuperClusterRef superCluster_
 reference to a SuperCluster
reco::TrackRef track_
 reference to a Track

Detailed Description

Reco Candidates with an Electron component

Author:
Luca Lista, INFN
Version:
Id:
Electron.h,v 1.13 2012/01/23 11:29:52 sani Exp

Definition at line 17 of file Electron.h.


Constructor & Destructor Documentation

reco::Electron::Electron ( ) [inline]

default constructor

Definition at line 20 of file Electron.h.

Referenced by clone().

: RecoCandidate() { }
reco::Electron::Electron ( Charge  q,
const LorentzVector p4,
const Point vtx = Point( 0, 0, 0 ) 
) [inline]

constructor from values

Definition at line 22 of file Electron.h.

                                                                                         :
      RecoCandidate( q, p4, vtx, -11 * q ) { }
Electron::~Electron ( ) [virtual]

destructor

Definition at line 6 of file Electron.cc.

{ }

Member Function Documentation

Electron * Electron::clone ( void  ) const [virtual]

returns a clone of the candidate

Reimplemented from reco::RecoCandidate.

Definition at line 8 of file Electron.cc.

References Electron().

                                 { 
  return new Electron( * this ); 
}
GsfTrackRef Electron::gsfTrack ( ) const [virtual]

reference to a GsfTrack

Reimplemented from reco::RecoCandidate.

Definition at line 16 of file Electron.cc.

References gsfTrack_.

                                     {
  return gsfTrack_;
}
bool Electron::isElectron ( ) const [virtual]

Reimplemented from reco::LeafCandidate.

Definition at line 33 of file Electron.cc.

                                {
  return true;
}
bool Electron::overlap ( const Candidate c) const [private, virtual]

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 24 of file Electron.cc.

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

                                                  {
  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
  return ( o != 0 && 
           ( checkOverlap( track(), o->track() ) ||
             checkOverlap( superCluster(), o->superCluster() ) ) 
           );
  return false;
}
void reco::Electron::setGsfTrack ( const reco::GsfTrackRef r) [inline]

set reference to GsfTrack component

Definition at line 40 of file Electron.h.

References gsfTrack_, and alignCSCRings::r.

{ gsfTrack_ = r; }
void reco::Electron::setSuperCluster ( const reco::SuperClusterRef r) [inline]

set refrence to Photon component

Definition at line 36 of file Electron.h.

References alignCSCRings::r, and superCluster_.

Referenced by EgammaHLTPixelMatchElectronAlgo::process(), and SiStripElectronAssociator::produce().

void reco::Electron::setTrack ( const reco::TrackRef r) [inline]

set refrence to Track component

Definition at line 38 of file Electron.h.

References alignCSCRings::r, and track_.

Referenced by SoftElectronProducer::produce(), and SiStripElectronAssociator::produce().

{ track_ = r; }
SuperClusterRef Electron::superCluster ( ) const [virtual]

reference to a SuperCluster

Reimplemented from reco::RecoCandidate.

Definition at line 20 of file Electron.cc.

References superCluster_.

Referenced by overlap().

                                             {
  return superCluster_;
}
TrackRef Electron::track ( void  ) const [virtual]

reference to a Track

Reimplemented from reco::RecoCandidate.

Definition at line 12 of file Electron.cc.

References track_.

Referenced by overlap().

                               {
  return track_;
}

Member Data Documentation

reference to a GsfTrack;

Definition at line 51 of file Electron.h.

Referenced by gsfTrack(), and setGsfTrack().

reference to a SuperCluster

Definition at line 47 of file Electron.h.

Referenced by setSuperCluster(), and superCluster().

reference to a Track

Definition at line 49 of file Electron.h.

Referenced by setTrack(), and track().