Fireworks
Calo
plugins
FWHGCalMultiClusterSliceSelector.cc
Go to the documentation of this file.
1
// system include files
2
#include <typeinfo>
3
4
// user include files
5
#include "TH2F.h"
6
#include "TMath.h"
7
#include "
Fireworks/Calo/plugins/FWHGCalMultiClusterSliceSelector.h
"
8
#include "
Fireworks/Core/interface/FWModelChangeManager.h
"
9
#include "
Fireworks/Core/interface/FWEventItem.h
"
10
#include "
DataFormats/CaloTowers/interface/CaloTower.h
"
11
#include "
DataFormats/CaloTowers/interface/CaloTowerDefs.h
"
12
13
#include "
DataFormats/ParticleFlowReco/interface/HGCalMultiCluster.h
"
14
15
FWHGCalMultiClusterSliceSelector::FWHGCalMultiClusterSliceSelector
(TH2F *
h
,
const
FWEventItem
*
i
)
16
:
FWHistSliceSelector
(
h
,
i
) {}
17
18
FWHGCalMultiClusterSliceSelector::~FWHGCalMultiClusterSliceSelector
() {}
19
20
void
FWHGCalMultiClusterSliceSelector::getItemEntryEtaPhi
(
int
itemIdx,
float
&
eta
,
float
&
phi
)
const
{
21
const
std::vector<reco::HGCalMultiCluster> *
towers
=
nullptr
;
22
m_item
->
get
(
towers
);
23
assert
(
nullptr
!=
towers
);
24
25
std::vector<reco::HGCalMultiCluster>::const_iterator
tower
=
towers
->begin();
26
std::advance(
tower
, itemIdx);
27
28
eta
=
tower
->eta();
29
phi
=
tower
->phi();
30
}
HLT_FULL_cff.towers
towers
Definition:
HLT_FULL_cff.py:36362
FWModelChangeManager.h
mps_fire.i
i
Definition:
mps_fire.py:428
FWHGCalMultiClusterSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWHGCalMultiClusterSliceSelector.cc:20
CaloTower.h
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:78
hgcalTowerProducer_cfi.tower
tower
Definition:
hgcalTowerProducer_cfi.py:4
HGCalMultiCluster.h
cms::cuda::assert
assert(be >=bs)
FWHistSliceSelector
Definition:
FWHistSliceSelector.h:7
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
CaloTowerDefs.h
h
PVValHelper::phi
Definition:
PVValidationHelpers.h:68
FWFromSliceSelector::m_item
const FWEventItem * m_item
Definition:
FWFromSliceSelector.h:49
FWEventItem.h
FWHGCalMultiClusterSliceSelector.h
DDAxes::phi
FWEventItem
Definition:
FWEventItem.h:56
FWHGCalMultiClusterSliceSelector::FWHGCalMultiClusterSliceSelector
FWHGCalMultiClusterSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWHGCalMultiClusterSliceSelector.cc:15
FWHGCalMultiClusterSliceSelector::~FWHGCalMultiClusterSliceSelector
~FWHGCalMultiClusterSliceSelector() override
Definition:
FWHGCalMultiClusterSliceSelector.cc:18
Generated for CMSSW Reference Manual by
1.8.16