DataFormats
RecoCandidate
src
RecoChargedCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/RecoCandidate/interface/RecoChargedCandidate.h
"
2
3
using namespace
reco
;
4
5
RecoChargedCandidate::~RecoChargedCandidate
() {}
6
7
RecoChargedCandidate
*
RecoChargedCandidate::clone
()
const
{
return
new
RecoChargedCandidate
(*
this
); }
8
9
TrackRef
RecoChargedCandidate::track
()
const
{
return
track_
; }
10
11
bool
RecoChargedCandidate::overlap
(
const
Candidate
&
c
)
const
{
12
const
RecoCandidate
*
o
= dynamic_cast<const RecoCandidate *>(&
c
);
13
return
(
o
!=
nullptr
&& (
checkOverlap
(
track
(),
o
->track()) ||
checkOverlap
(
track
(),
o
->standAloneMuon()) ||
14
checkOverlap
(
track
(),
o
->combinedMuon())));
15
}
reco::RecoChargedCandidate::track
reco::TrackRef track() const override
reference to a track
Definition:
RecoChargedCandidate.cc:9
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition:
RecoCandidate.h:67
reco::RecoChargedCandidate::~RecoChargedCandidate
~RecoChargedCandidate() override
destructor
Definition:
RecoChargedCandidate.cc:5
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
edm::Ref< TrackCollection >
reco::RecoChargedCandidate::RecoChargedCandidate
RecoChargedCandidate()
default constructor
Definition:
RecoChargedCandidate.h:18
reco::RecoChargedCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
RecoChargedCandidate.cc:11
reco::RecoChargedCandidate
Definition:
RecoChargedCandidate.h:15
reco::RecoChargedCandidate::track_
reco::TrackRef track_
reference to a track
Definition:
RecoChargedCandidate.h:40
reco::RecoCandidate
Definition:
RecoCandidate.h:20
reco::Candidate
Definition:
Candidate.h:27
RecoChargedCandidate.h
reco::RecoChargedCandidate::clone
RecoChargedCandidate * clone() const override
returns a clone of the candidate
Definition:
RecoChargedCandidate.cc:7
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:46
Generated for CMSSW Reference Manual by
1.8.16