Fireworks
ParticleFlow
plugins
FWPFCandidateTowerSliceSelector.cc
Go to the documentation of this file.
1
#include "
Fireworks/ParticleFlow/plugins/FWPFCandidateTowerSliceSelector.h
"
2
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
3
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
"
4
5
#include "
Fireworks/Core/interface/FWModelChangeManager.h
"
6
#include "
Fireworks/Core/interface/FWEventItem.h
"
7
8
FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector
(TH2F*
h
,
const
FWEventItem
*
i
)
9
:
FWHistSliceSelector
(
h
,
i
) {}
10
11
FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector
() {}
12
void
FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi
(
int
itemIdx,
float
&
eta
,
float
&
phi
)
const
{
13
const
reco::PFCandidateCollection
*
towers
=
nullptr
;
14
m_item
->
get
(
towers
);
15
assert
(
nullptr
!=
towers
);
16
reco::PFCandidateCollection::const_iterator
tower
=
towers
->begin();
17
std::advance(
tower
, itemIdx);
18
19
eta
=
tower
->eta();
20
phi
=
tower
->phi();
21
}
FWModelChangeManager.h
mps_fire.i
i
Definition:
mps_fire.py:355
FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector
FWPFCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWPFCandidateTowerSliceSelector.cc:8
PFCandidate.h
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition:
hgcalTowerProducer_cfi.py:3
cms::cuda::assert
assert(be >=bs)
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
h
PVValHelper::phi
Definition:
PVValidationHelpers.h:68
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWPFCandidateTowerSliceSelector.cc:12
FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector
~FWPFCandidateTowerSliceSelector() override
Definition:
FWPFCandidateTowerSliceSelector.cc:11
FWEventItem.h
DDAxes::phi
HLT_2018_cff.towers
towers
Definition:
HLT_2018_cff.py:35030
FWEventItem
Definition:
FWEventItem.h:56
reco::PFCandidateCollection
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Definition:
PFCandidateFwd.h:12
FWPFCandidateTowerSliceSelector.h
PFCandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.16