CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/DataFormats/EgammaCandidates/src/Electron.cc

Go to the documentation of this file.
00001 // $Id: Electron.cc,v 1.5 2012/01/23 11:29:52 sani Exp $
00002 #include "DataFormats/EgammaCandidates/interface/Electron.h"
00003 
00004 using namespace reco;
00005 
00006 Electron::~Electron() { }
00007 
00008 Electron * Electron::clone() const { 
00009   return new Electron( * this ); 
00010 }
00011 
00012 TrackRef Electron::track() const {
00013   return track_;
00014 }
00015 
00016 GsfTrackRef Electron::gsfTrack() const {
00017   return gsfTrack_;
00018 }
00019 
00020 SuperClusterRef Electron::superCluster() const {
00021   return superCluster_;
00022 }
00023 
00024 bool Electron::overlap( const Candidate & c ) const {
00025   const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
00026   return ( o != 0 && 
00027            ( checkOverlap( track(), o->track() ) ||
00028              checkOverlap( superCluster(), o->superCluster() ) ) 
00029            );
00030   return false;
00031 }
00032 
00033 bool Electron::isElectron() const {
00034   return true;
00035 }