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 {
17 }
18 
20 {
21 }
22 
23 void FWHGCalMultiClusterSliceSelector::getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const
24 {
25  const std::vector<reco::HGCalMultiCluster>* towers=nullptr;
26  m_item->get(towers);
27  assert(nullptr!=towers);
28 
29  std::vector<reco::HGCalMultiCluster>::const_iterator tower = towers->begin();
30  std::advance(tower, itemIdx);
31 
32  eta = tower->eta();
33  phi = tower->phi();
34 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
void get(const T *&oData) const
Definition: FWEventItem.h:85
const FWEventItem * m_item
FWHGCalMultiClusterSliceSelector(TH2F *h, const FWEventItem *i)