CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/RecoCandidate/src/RecoStandAloneMuonCandidate.cc

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