CMS 3D CMS Logo

RecoStandAloneMuonCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
8  return new RecoStandAloneMuonCandidate(*this);
9 }
10 
12 
14  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
15  return (o != nullptr &&
16  (checkOverlap(standAloneMuon(), o->track()) || checkOverlap(standAloneMuon(), o->standAloneMuon()) ||
17  checkOverlap(standAloneMuon(), o->combinedMuon())));
18 }
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
reco::RecoStandAloneMuonCandidate::~RecoStandAloneMuonCandidate
~RecoStandAloneMuonCandidate() override
destructor
Definition: RecoStandAloneMuonCandidate.cc:5
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
edm::Ref< TrackCollection >
reco::RecoStandAloneMuonCandidate::standAloneMuon
reco::TrackRef standAloneMuon() const override
reference to a track
Definition: RecoStandAloneMuonCandidate.cc:11
RecoStandAloneMuonCandidate.h
reco::RecoStandAloneMuonCandidate::clone
RecoStandAloneMuonCandidate * clone() const override
returns a clone of the candidate
Definition: RecoStandAloneMuonCandidate.cc:7
reco::RecoStandAloneMuonCandidate::RecoStandAloneMuonCandidate
RecoStandAloneMuonCandidate()
default constructor
Definition: RecoStandAloneMuonCandidate.h:18
reco::RecoStandAloneMuonCandidate
Definition: RecoStandAloneMuonCandidate.h:15
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
reco::RecoCandidate
Definition: RecoCandidate.h:20
reco::Candidate
Definition: Candidate.h:27
reco::RecoStandAloneMuonCandidate::standAloneMuonTrack_
reco::TrackRef standAloneMuonTrack_
reference to a track
Definition: RecoStandAloneMuonCandidate.h:40
reco::RecoStandAloneMuonCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: RecoStandAloneMuonCandidate.cc:13