#include <DataFormats/RecoCandidate/interface/RecoChargedCandidate.h>
Public Member Functions | |
virtual RecoChargedCandidate * | clone () const |
returns a clone of the candidate | |
RecoChargedCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoChargedCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoChargedCandidate () | |
default constructor | |
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 |
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().
00019 : 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.
00022 : 00023 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.
00026 : 00027 RecoCandidate( q, p4, vtx, pdgId, status ) { }
RecoChargedCandidate::~RecoChargedCandidate | ( | ) | [virtual] |
RecoChargedCandidate * RecoChargedCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::LeafCandidate.
Definition at line 8 of file RecoChargedCandidate.cc.
References RecoChargedCandidate().
00008 { 00009 return new RecoChargedCandidate( * this ); 00010 }
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 16 of file RecoChargedCandidate.cc.
References reco::RecoCandidate::checkOverlap(), reco::RecoCandidate::combinedMuon(), reco::RecoCandidate::standAloneMuon(), reco::RecoCandidate::track(), and track().
00016 { 00017 const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); 00018 return (o != 0 && 00019 (checkOverlap(track(), o->track()) || 00020 checkOverlap(track(), o->standAloneMuon()) || 00021 checkOverlap(track(), o->combinedMuon())) 00022 ); 00023 }
void reco::RecoChargedCandidate::setTrack | ( | const reco::TrackRef & | r | ) | [inline] |
set reference to track
Definition at line 33 of file RecoChargedCandidate.h.
References track_.
Referenced by converter::TrackToCandidate::convert(), L3MuonCandidateProducer::produce(), and L2MuonCandidateProducer::produce().
00033 { track_ = r; }
reference to a track
Reimplemented from reco::RecoCandidate.
Definition at line 12 of file RecoChargedCandidate.cc.
References track_.
Referenced by pat::HistoTrack::fill(), and overlap().
00012 { 00013 return track_; 00014 }
reference to a track
Definition at line 41 of file RecoChargedCandidate.h.
Referenced by setTrack(), and track().