File indexing completed on 2024-04-06 12:05:08
0001 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidate.h"
0002
0003 using namespace reco;
0004
0005 RecoChargedCandidate::~RecoChargedCandidate() {}
0006
0007 RecoChargedCandidate *RecoChargedCandidate::clone() const { return new RecoChargedCandidate(*this); }
0008
0009 TrackRef RecoChargedCandidate::track() const { return track_; }
0010
0011 bool RecoChargedCandidate::overlap(const Candidate &c) const {
0012 const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
0013 return (o != nullptr && (checkOverlap(track(), o->track()) || checkOverlap(track(), o->standAloneMuon()) ||
0014 checkOverlap(track(), o->combinedMuon())));
0015 }