CMS 3D CMS Logo

reco::Electron Class Reference

Reco Candidates with an Electron component. More...

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

Inheritance diagram for reco::Electron:

reco::RecoCandidate reco::LeafCandidate reco::Candidate reco::Particle

List of all members.

Public Member Functions

virtual Electronclone () const
 returns a clone of the candidate
 Electron (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
 Electron ()
 default constructor
bool isElectron () const
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
 refrence to a Track
virtual ~Electron ()
 destructor

Private Member Functions

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

Private Attributes

reco::SuperClusterRef superCluster_
 reference to a SuperCluster
reco::TrackRef track_
 reference to a Track


Detailed Description

Reco Candidates with an Electron component.

An Electron with GsfTrack seeded from an ElectronPixelSeed adapted from the TRecElectron class in ORCA.

Author:
Luca Lista, INFN
Version:
Id
Electron.h,v 1.11 2008/04/30 07:46:08 llista Exp

Author:
U.Berthon, ClaudeCharlot,LLR
Version:
Id
GsfElectron.h,v 1.7 2008/04/21 14:05:23 llista Exp

Definition at line 16 of file Electron.h.


Constructor & Destructor Documentation

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

default constructor

Definition at line 19 of file Electron.h.

Referenced by clone().

00019 : RecoCandidate() { }

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

constructor from values

Definition at line 21 of file Electron.h.

00021                                                                                          : 
00022       RecoCandidate( q, p4, vtx, -11 * q ) { }

Electron::~Electron (  )  [virtual]

destructor

Definition at line 6 of file Electron.cc.

00006 { }


Member Function Documentation

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

returns a clone of the candidate

Reimplemented from reco::LeafCandidate.

Definition at line 8 of file Electron.cc.

References Electron().

00008                                  { 
00009   return new Electron( * this ); 
00010 }

bool Electron::isElectron (  )  const [virtual]

Reimplemented from reco::Candidate.

Definition at line 29 of file Electron.cc.

00029                                 {
00030   return true;
00031 }

bool Electron::overlap ( const Candidate c  )  const [private, virtual]

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 20 of file Electron.cc.

References reco::RecoCandidate::checkOverlap(), reco::RecoCandidate::superCluster(), superCluster(), reco::RecoCandidate::track(), and track().

00020                                                   {
00021   const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
00022   return ( o != 0 && 
00023            ( checkOverlap( track(), o->track() ) ||
00024              checkOverlap( superCluster(), o->superCluster() ) ) 
00025            );
00026   return false;
00027 }

void reco::Electron::setSuperCluster ( const reco::SuperClusterRef r  )  [inline]

set refrence to Photon component

Definition at line 32 of file Electron.h.

References superCluster_.

Referenced by SiStripElectronAssociator::produce().

00032 { superCluster_ = r; }

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

set refrence to Track component

Definition at line 34 of file Electron.h.

References track_.

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

00034 { track_ = r; }

SuperClusterRef Electron::superCluster (  )  const [virtual]

reference to a SuperCluster

Reimplemented from reco::RecoCandidate.

Definition at line 16 of file Electron.cc.

References superCluster_.

Referenced by overlap().

00016                                              {
00017   return superCluster_;
00018 }

TrackRef Electron::track ( void   )  const [virtual]

refrence to a Track

Reimplemented from reco::RecoCandidate.

Definition at line 12 of file Electron.cc.

References track_.

Referenced by overlap().

00012                                {
00013   return track_;
00014 }


Member Data Documentation

reco::SuperClusterRef reco::Electron::superCluster_ [private]

reference to a SuperCluster

Definition at line 41 of file Electron.h.

Referenced by setSuperCluster(), and superCluster().

reco::TrackRef reco::Electron::track_ [private]

reference to a Track

Definition at line 43 of file Electron.h.

Referenced by setTrack(), and track().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:05 2009 for CMSSW by  doxygen 1.5.4