CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
25 
27 
28 void FWCaloTowerSliceSelector::getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const {
29  const CaloTowerCollection* towers = nullptr;
30  m_item->get(towers);
31  assert(nullptr != towers);
33  std::advance(tower, itemIdx);
34 
35  eta = tower->eta();
36  phi = tower->phi();
37 }
void get(const T *&oData) const
Definition: FWEventItem.h:78
std::vector< CaloTower >::const_iterator const_iterator
assert(be >=bs)
const FWEventItem * m_item
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const override
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
const_iterator begin() const