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 }
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
void get(const T *&oData) const
Definition: FWEventItem.h:78
assert(be >=bs)
const FWEventItem * m_item
FWHGCalMultiClusterSliceSelector(TH2F *h, const FWEventItem *i)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4