src
DataFormats
RecoCandidate
src
RecoCaloTowerCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/RecoCandidate/interface/RecoCaloTowerCandidate.h
"
2
3
using namespace
reco
;
4
5
RecoCaloTowerCandidate::~RecoCaloTowerCandidate
() {}
6
7
RecoCaloTowerCandidate
*
RecoCaloTowerCandidate::clone
()
const
{
return
new
RecoCaloTowerCandidate
(*
this
); }
8
9
CaloTowerRef
RecoCaloTowerCandidate::caloTower
()
const
{
return
caloTower_
; }
10
11
bool
RecoCaloTowerCandidate::overlap
(
const
Candidate
&
c
)
const
{
12
const
RecoCandidate
*
o
=
dynamic_cast<
const
RecoCandidate
*
>
(&
c
);
13
return
(
o
!=
nullptr
&&
checkOverlap
(
caloTower
(),
o
->caloTower()));
14
}
reco::RecoCaloTowerCandidate::~RecoCaloTowerCandidate
~RecoCaloTowerCandidate() override
destructor
Definition:
RecoCaloTowerCandidate.cc:5
reco::RecoCaloTowerCandidate::caloTower
CaloTowerRef caloTower() const override
reference to a CaloTower
Definition:
RecoCaloTowerCandidate.cc:9
edm::Ref< CaloTowerCollection >
reco::Candidate
Definition:
Candidate.h:27
reco::RecoCaloTowerCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
RecoCaloTowerCandidate.cc:11
reco::RecoCaloTowerCandidate::RecoCaloTowerCandidate
RecoCaloTowerCandidate()
default constructor
Definition:
RecoCaloTowerCandidate.h:18
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
RecoCaloTowerCandidate.h
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
reco::RecoCaloTowerCandidate::clone
RecoCaloTowerCandidate * clone() const override
returns a clone of the candidate
Definition:
RecoCaloTowerCandidate.cc:7
reco::RecoCaloTowerCandidate
Definition:
RecoCaloTowerCandidate.h:15
reco::RecoCaloTowerCandidate::caloTower_
CaloTowerRef caloTower_
reference to a CaloTower
Definition:
RecoCaloTowerCandidate.h:38
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
Generated for CMSSW Reference Manual by
1.8.14