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