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.
1 // $Id: RecoChargedCandidate.cc,v 1.5 2006/05/31 12:45:46 llista Exp $
3 
4 using namespace reco;
5 
7 
9  return new RecoChargedCandidate( * this );
10 }
11 
13  return track_;
14 }
15 
16 bool RecoChargedCandidate::overlap( const Candidate & c ) const {
17  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
18  return (o != 0 &&
19  (checkOverlap(track(), o->track()) ||
22  );
23 }
reco::TrackRef track_
reference to a track
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
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