#include <RecoChargedCandidate.h>
Public Member Functions | |
virtual RecoChargedCandidate * | clone () const |
returns a clone of the candidate | |
RecoChargedCandidate () | |
default constructor | |
RecoChargedCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoChargedCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
void | setTrack (const reco::TrackRef &r) |
set reference to track | |
virtual reco::TrackRef | track () const |
reference to a track | |
virtual | ~RecoChargedCandidate () |
destructor | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
reco::TrackRef | track_ |
reference to a track |
Reco Candidates with a Track component
Definition at line 16 of file RecoChargedCandidate.h.
reco::RecoChargedCandidate::RecoChargedCandidate | ( | ) | [inline] |
default constructor
Definition at line 19 of file RecoChargedCandidate.h.
Referenced by clone().
: RecoCandidate() { }
reco::RecoChargedCandidate::RecoChargedCandidate | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 |
||
) | [inline] |
constructor from values
Definition at line 21 of file RecoChargedCandidate.h.
: RecoCandidate( q, p4, vtx, pdgId, status ) { }
reco::RecoChargedCandidate::RecoChargedCandidate | ( | Charge | q, |
const PolarLorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 |
||
) | [inline] |
constructor from values
Definition at line 25 of file RecoChargedCandidate.h.
: RecoCandidate( q, p4, vtx, pdgId, status ) { }
RecoChargedCandidate::~RecoChargedCandidate | ( | ) | [virtual] |
RecoChargedCandidate * RecoChargedCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::RecoCandidate.
Definition at line 8 of file RecoChargedCandidate.cc.
References RecoChargedCandidate().
{ return new RecoChargedCandidate( * this ); }
bool RecoChargedCandidate::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 16 of file RecoChargedCandidate.cc.
References trackerHits::c, reco::RecoCandidate::checkOverlap(), reco::RecoCandidate::combinedMuon(), connectstrParser::o, reco::RecoCandidate::standAloneMuon(), reco::RecoCandidate::track(), and track().
{ const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); return (o != 0 && (checkOverlap(track(), o->track()) || checkOverlap(track(), o->standAloneMuon()) || checkOverlap(track(), o->combinedMuon())) ); }
void reco::RecoChargedCandidate::setTrack | ( | const reco::TrackRef & | r | ) | [inline] |
set reference to track
Definition at line 33 of file RecoChargedCandidate.h.
References csvReporter::r, and track_.
Referenced by converter::TrackToCandidate::convert(), V0Fitter::fitAll(), L2MuonCandidateProducer::produce(), L3MuonCandidateProducer::produce(), and L3MuonCandidateProducerFromMuons::produce().
TrackRef RecoChargedCandidate::track | ( | void | ) | const [virtual] |
reference to a track
Reimplemented from reco::RecoCandidate.
Definition at line 12 of file RecoChargedCandidate.cc.
References track_.
Referenced by HLTMuonTrackMassFilter::filter(), and overlap().
{ return track_; }
reference to a track
Definition at line 41 of file RecoChargedCandidate.h.
Referenced by setTrack(), and track().