CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
24 
27 {
28 }
29 
31 {
32 }
33 
34 void
35 FWCaloTowerSliceSelector::getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const
36 {
37  const CaloTowerCollection* towers=0;
38  m_item->get(towers);
39  assert(0!=towers);
41  std::advance(tower, itemIdx);
42 
43  eta = tower->eta();
44  phi = tower->phi();
45 }
int i
Definition: DBlmapReader.cc:9
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
assert(m_qm.get())
void get(const T *&oData) const
Definition: FWEventItem.h:84
std::vector< CaloTower >::const_iterator const_iterator
const FWEventItem * m_item
FWCaloTowerSliceSelector(TH2F *h, const FWEventItem *i)
Geom::Phi< T > phi() const
const_iterator begin() const
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const