Main Page
Namespaces
Classes
Package Documentation
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
9
FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector
(TH2F*
h
,
const
FWEventItem
*
i
):
10
FWHistSliceSelector
(h, i)
11
{
12
}
13
14
15
FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector
()
16
{
17
}
18
void
19
FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi
(
int
itemIdx,
float
&
eta
,
float
&
phi
)
const
20
{
21
22
const
reco::PFCandidateCollection
* towers=
nullptr
;
23
m_item
->
get
(towers);
24
assert(
nullptr
!=towers);
25
reco::PFCandidateCollection::const_iterator tower = towers->begin();
26
std::advance(tower, itemIdx);
27
28
eta = tower->eta();
29
phi = tower->phi();
30
}
31
32
FWPFCandidateTowerSliceSelector.h
mps_fire.i
i
Definition:
mps_fire.py:269
h
Definition:
CSCDQM_HistoNames.h:23
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:85
FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector
FWPFCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWPFCandidateTowerSliceSelector.cc:9
PVValHelper::eta
Definition:
PVValidationHelpers.h:49
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:51
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
DDAxes::phi
PFCandidate.h
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem.h
FWModelChangeManager.h
reco::PFCandidateCollection
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Definition:
PFCandidateFwd.h:12
FWPFCandidateTowerSliceSelector::~FWPFCandidateTowerSliceSelector
~FWPFCandidateTowerSliceSelector() override
Definition:
FWPFCandidateTowerSliceSelector.cc:15
FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWPFCandidateTowerSliceSelector.cc:19
PFCandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.11