test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoChargedCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
8  return new RecoChargedCandidate( * this );
9 }
10 
12  return track_;
13 }
14 
15 bool RecoChargedCandidate::overlap( const Candidate & c ) const {
16  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
17  return (o != 0 &&
18  (checkOverlap(track(), o->track()) ||
21  );
22 }
reco::TrackRef track_
reference to a track
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:69
virtual ~RecoChargedCandidate()
destructor
virtual reco::TrackRef standAloneMuon() const
reference to a stand-alone muon Track
virtual reco::TrackRef track() const
reference to a Track
virtual RecoChargedCandidate * clone() const
returns a clone of the candidate
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual reco::TrackRef track() const
reference to a track
RecoChargedCandidate()
default constructor
virtual reco::TrackRef combinedMuon() const
reference to a stand-alone muon Track