src
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
}
mps_fire.i
i
Definition:
mps_fire.py:429
FWHGCalMultiClusterSliceSelector::getItemEntryEtaPhi
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
Definition:
FWHGCalMultiClusterSliceSelector.cc:20
CaloTowerDefs.h
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
CaloTower.h
FWEventItem::get
void get(const T *&oData) const
Definition:
FWEventItem.h:78
HGCalMultiCluster.h
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
DDAxes::phi
FWHGCalMultiClusterSliceSelector::~FWHGCalMultiClusterSliceSelector
~FWHGCalMultiClusterSliceSelector() override
Definition:
FWHGCalMultiClusterSliceSelector.cc:18
FWHGCalMultiClusterSliceSelector::FWHGCalMultiClusterSliceSelector
FWHGCalMultiClusterSliceSelector(TH2F *h, const FWEventItem *i)
Definition:
FWHGCalMultiClusterSliceSelector.cc:15
HLT_2023v12_cff.towers
towers
Definition:
HLT_2023v12_cff.py:28435
FWEventItem
Definition:
FWEventItem.h:56
FWEventItem.h
FWModelChangeManager.h
FWHGCalMultiClusterSliceSelector.h
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
l1tHGCalTowerProducer_cfi.tower
tower
Definition:
l1tHGCalTowerProducer_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.14