Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
FWPFCandidateTowerSliceSelector.h
mps_fire.i
i
Definition:
mps_fire.py:428
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
FWPFCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWPFCandidateTowerSliceSelector.cc:12
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:78
FWPFCandidateTowerSliceSelector::FWPFCandidateTowerSliceSelector
FWPFCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWPFCandidateTowerSliceSelector.cc:8
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
cms::cuda::assert
assert(be >=bs)
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
hgcalTowerProducer_cfi.tower
tuple tower
Definition:
hgcalTowerProducer_cfi.py:4
HLT_FULL_cff.towers
tuple towers
Definition:
HLT_FULL_cff.py:36648
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:11
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
PFCandidate.h
PFCandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.5