Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:37

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 }