CMS 3D CMS Logo

FWCaloTowerSliceSelector.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Calo
4 // Class : FWCaloTowerSliceSelector
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Alja Mrak-Tadel
10 // Created: Wed Jun 2 17:36:23 CEST 2010
11 //
12 
13 // system include files
14 
15 // user include files
16 #include "TH2F.h"
17 #include "TMath.h"
23 
24 
27 {
28 }
29 
31 {
32 }
33 
34 void
35 FWCaloTowerSliceSelector::getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const
36 {
37  const CaloTowerCollection* towers=nullptr;
38  m_item->get(towers);
39  assert(nullptr!=towers);
41  std::advance(tower, itemIdx);
42 
43  eta = tower->eta();
44  phi = tower->phi();
45 }
void get(const T *&oData) const
Definition: FWEventItem.h:85
std::vector< CaloTower >::const_iterator const_iterator
const FWEventItem * m_item
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
const_iterator begin() const