Fireworks
Candidates
src
FWCandidateTowerSliceSelector.cc
Go to the documentation of this file.
1
#include "
Fireworks/Candidates/interface/FWCandidateTowerSliceSelector.h
"
2
3
#include "
DataFormats/PatCandidates/interface/PackedCandidate.h
"
4
5
#include "
Fireworks/Core/interface/FWModelChangeManager.h
"
6
#include "
Fireworks/Core/interface/FWEventItem.h
"
7
#include "
Fireworks/Core/interface/FWSimpleProxyHelper.h
"
8
9
FWCandidateTowerSliceSelector::FWCandidateTowerSliceSelector
(TH2F*
h
,
const
FWEventItem
*
i
,
FWSimpleProxyHelper
*
helper
)
10
:
FWHistSliceSelector
(
h
,
i
), m_helper(
helper
) {}
11
12
FWCandidateTowerSliceSelector::~FWCandidateTowerSliceSelector
() {}
13
void
FWCandidateTowerSliceSelector::getItemEntryEtaPhi
(
int
itemIdx,
float
&
eta
,
float
&
phi
)
const
{
14
const
void
* modelData =
m_item
->
modelData
(itemIdx);
15
if
(modelData) {
16
const
reco::Candidate
*
tower
= reinterpret_cast<const reco::Candidate*>(
m_helper
->
offsetObject
(modelData));
17
eta
=
tower
->eta();
18
phi
=
tower
->phi();
19
}
20
}
FWModelChangeManager.h
mps_fire.i
i
Definition:
mps_fire.py:355
FWCandidateTowerSliceSelector::~FWCandidateTowerSliceSelector
~FWCandidateTowerSliceSelector() override
Definition:
FWCandidateTowerSliceSelector.cc:12
hgcalTowerProducer_cfi.tower
tower
Definition:
hgcalTowerProducer_cfi.py:3
FWEventItem::modelData
const void * modelData(int iIndex) const
Definition:
FWEventItem.cc:466
FWCandidateTowerSliceSelector::m_helper
FWSimpleProxyHelper * m_helper
Definition:
FWCandidateTowerSliceSelector.h:16
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
h
FWSimpleProxyHelper::offsetObject
const void * offsetObject(const void *iObj) const
Definition:
FWSimpleProxyHelper.h:36
PVValHelper::phi
Definition:
PVValidationHelpers.h:68
PackedCandidate.h
helper
Definition:
helper.py:1
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWCandidateTowerSliceSelector::FWCandidateTowerSliceSelector
FWCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
Definition:
FWCandidateTowerSliceSelector.cc:9
FWEventItem.h
reco::Candidate
Definition:
Candidate.h:27
DDAxes::phi
FWSimpleProxyHelper.h
FWEventItem
Definition:
FWEventItem.h:56
FWCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWCandidateTowerSliceSelector.cc:13
FWSimpleProxyHelper
Definition:
FWSimpleProxyHelper.h:30
FWCandidateTowerSliceSelector.h
Generated for CMSSW Reference Manual by
1.8.16