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
}
FWEventItem::modelData
const void * modelData(int iIndex) const
Definition:
FWEventItem.cc:466
mps_fire.i
i
Definition:
mps_fire.py:428
helper
Definition:
helper.py:1
FWCandidateTowerSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWCandidateTowerSliceSelector.cc:13
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
reco::Candidate
Definition:
Candidate.h:27
FWCandidateTowerSliceSelector.h
FWSimpleProxyHelper
Definition:
FWSimpleProxyHelper.h:30
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
PackedCandidate.h
FWSimpleProxyHelper.h
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
DDAxes::phi
FWCandidateTowerSliceSelector::FWCandidateTowerSliceSelector
FWCandidateTowerSliceSelector(TH2F *h, const FWEventItem *i, FWSimpleProxyHelper *m_helper)
Definition:
FWCandidateTowerSliceSelector.cc:9
FWCandidateTowerSliceSelector::m_helper
FWSimpleProxyHelper * m_helper
Definition:
FWCandidateTowerSliceSelector.h:16
FWSimpleProxyHelper::offsetObject
const void * offsetObject(const void *iObj) const
Definition:
FWSimpleProxyHelper.h:36
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem.h
FWModelChangeManager.h
hgcalTowerProducer_cfi.tower
tower
Definition:
hgcalTowerProducer_cfi.py:4
FWCandidateTowerSliceSelector::~FWCandidateTowerSliceSelector
~FWCandidateTowerSliceSelector() override
Definition:
FWCandidateTowerSliceSelector.cc:12
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
Generated for CMSSW Reference Manual by
1.8.14