CMS 3D CMS Logo

RecoStandAloneMuonCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
8  return new RecoStandAloneMuonCandidate(*this);
9 }
10 
12 
14  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
15  return (o != nullptr &&
16  (checkOverlap(standAloneMuon(), o->track()) || checkOverlap(standAloneMuon(), o->standAloneMuon()) ||
17  checkOverlap(standAloneMuon(), o->combinedMuon())));
18 }
reco::TrackRef standAloneMuon() const override
reference to a track
RecoStandAloneMuonCandidate * clone() const override
returns a clone of the candidate
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
bool overlap(const Candidate &) const override
check overlap with another candidate
fixed size matrix
reco::TrackRef standAloneMuonTrack_
reference to a track