Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 }