DataFormats
RecoCandidate
src
RecoStandAloneMuonCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/RecoCandidate/interface/RecoStandAloneMuonCandidate.h
"
2
3
using namespace
reco
;
4
5
RecoStandAloneMuonCandidate::~RecoStandAloneMuonCandidate
() {}
6
7
RecoStandAloneMuonCandidate
*
RecoStandAloneMuonCandidate::clone
()
const
{
8
return
new
RecoStandAloneMuonCandidate
(*
this
);
9
}
10
11
TrackRef
RecoStandAloneMuonCandidate::standAloneMuon
()
const
{
return
standAloneMuonTrack_
; }
12
13
bool
RecoStandAloneMuonCandidate::overlap
(
const
Candidate
&
c
)
const
{
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:42
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
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
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:46
reco::RecoStandAloneMuonCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
RecoStandAloneMuonCandidate.cc:13
Generated for CMSSW Reference Manual by
1.8.16