Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:08

0001 #include "DataFormats/RecoCandidate/interface/RecoStandAloneMuonCandidate.h"
0002 
0003 using namespace reco;
0004 
0005 RecoStandAloneMuonCandidate::~RecoStandAloneMuonCandidate() {}
0006 
0007 RecoStandAloneMuonCandidate *RecoStandAloneMuonCandidate::clone() const {
0008   return new RecoStandAloneMuonCandidate(*this);
0009 }
0010 
0011 TrackRef RecoStandAloneMuonCandidate::standAloneMuon() const { return standAloneMuonTrack_; }
0012 
0013 bool RecoStandAloneMuonCandidate::overlap(const Candidate &c) const {
0014   const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
0015   return (o != nullptr &&
0016           (checkOverlap(standAloneMuon(), o->track()) || checkOverlap(standAloneMuon(), o->standAloneMuon()) ||
0017            checkOverlap(standAloneMuon(), o->combinedMuon())));
0018 }