src
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_
reference to a track
Definition:
RecoChargedCandidate.h:40
RecoChargedCandidate.h
edm::Ref< TrackCollection >
reco::Candidate
Definition:
Candidate.h:27
reco::RecoChargedCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
RecoChargedCandidate.cc:11
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:35
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
reco::RecoChargedCandidate::clone
RecoChargedCandidate * clone() const override
returns a clone of the candidate
Definition:
RecoChargedCandidate.cc:7
reco::RecoChargedCandidate::track
reco::TrackRef track() const override
reference to a track
Definition:
RecoChargedCandidate.cc:9
reco::RecoChargedCandidate::~RecoChargedCandidate
~RecoChargedCandidate() override
destructor
Definition:
RecoChargedCandidate.cc:5
reco::RecoChargedCandidate
Definition:
RecoChargedCandidate.h:15
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition:
RecoCandidate.h:67
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
reco::RecoCandidate
Definition:
RecoCandidate.h:20
reco::RecoChargedCandidate::RecoChargedCandidate
RecoChargedCandidate()
default constructor
Definition:
RecoChargedCandidate.h:18
Generated for CMSSW Reference Manual by
1.8.14