CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/RecoCandidate/src/RecoChargedCandidate.cc

Go to the documentation of this file.
00001 // $Id: RecoChargedCandidate.cc,v 1.6 2007/12/14 12:25:33 llista Exp $
00002 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidate.h"
00003 
00004 using namespace reco;
00005 
00006 RecoChargedCandidate::~RecoChargedCandidate() { }
00007 
00008 RecoChargedCandidate * RecoChargedCandidate::clone() const { 
00009   return new RecoChargedCandidate( * this ); 
00010 }
00011 
00012 TrackRef RecoChargedCandidate::track() const {
00013   return track_;
00014 }
00015 
00016 bool RecoChargedCandidate::overlap( const Candidate & c ) const {
00017   const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
00018   return (o != 0 && 
00019           (checkOverlap(track(), o->track()) || 
00020            checkOverlap(track(), o->standAloneMuon()) ||
00021            checkOverlap(track(), o->combinedMuon()))
00022           );
00023 }