CMS 3D CMS Logo

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"
12 
14 
16  : FWHistSliceSelector(h, i) {}
17 
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 }
FWModelChangeManager.h
mps_fire.i
i
Definition: mps_fire.py:355
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:3
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
HLT_2018_cff.towers
towers
Definition: HLT_2018_cff.py:35030
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