DataFormats
RecoCandidate
src
CaloRecHitCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/RecoCandidate/interface/CaloRecHitCandidate.h
"
2
3
using namespace
reco
;
4
5
CaloRecHitCandidate::~CaloRecHitCandidate
() {}
6
7
CaloRecHitCandidate
*
CaloRecHitCandidate::clone
()
const
{
return
new
CaloRecHitCandidate
(*
this
); }
8
9
bool
CaloRecHitCandidate::overlap
(
const
Candidate
&
c
)
const
{
10
const
CaloRecHitCandidate
*
o
= dynamic_cast<const CaloRecHitCandidate *>(&
c
);
11
if
(
o
==
nullptr
)
12
return
false
;
13
if
(
caloRecHit
().isNull())
14
return
false
;
15
if
(
o
->caloRecHit().isNull())
16
return
false
;
17
return
(
caloRecHit
() !=
o
->caloRecHit());
18
}
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
reco::CaloRecHitCandidate::~CaloRecHitCandidate
~CaloRecHitCandidate() override
destructor
Definition:
CaloRecHitCandidate.cc:5
reco::CaloRecHitCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
CaloRecHitCandidate.cc:9
CaloRecHitCandidate.h
reco::CaloRecHitCandidate
Definition:
CaloRecHitCandidate.h:17
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
reco::Candidate
Definition:
Candidate.h:27
reco::CaloRecHitCandidate::caloRecHit
CaloRecHitRef caloRecHit() const
reference to a CaloRecHit
Definition:
CaloRecHitCandidate.h:35
reco::CaloRecHitCandidate::clone
CaloRecHitCandidate * clone() const override
returns a clone of the candidate
Definition:
CaloRecHitCandidate.cc:7
reco::CaloRecHitCandidate::CaloRecHitCandidate
CaloRecHitCandidate()
default constructor
Definition:
CaloRecHitCandidate.h:21
Generated for CMSSW Reference Manual by
1.8.16