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