CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
FWCaloTowerSliceSelector Class Reference

#include <Fireworks/Calo/interface/FWCaloTowerSliceSelector.h>

Inheritance diagram for FWCaloTowerSliceSelector:
FWHistSliceSelector FWFromSliceSelector

Public Member Functions

 FWCaloTowerSliceSelector (TH2F *h, const FWEventItem *i)
 
virtual ~FWCaloTowerSliceSelector ()
 
- Public Member Functions inherited from FWHistSliceSelector
virtual bool aggregatePhiCells () const
 
virtual void doSelect (const TEveCaloData::CellId_t &)
 
virtual void doUnselect (const TEveCaloData::CellId_t &)
 
 FWHistSliceSelector (TH2F *h, const FWEventItem *item)
 
virtual ~FWHistSliceSelector ()
 
- Public Member Functions inherited from FWFromSliceSelector
FWModelChangeManagerchangeManager () const
 
void clear ()
 
 FWFromSliceSelector (const FWEventItem *)
 
void reset ()
 
virtual ~FWFromSliceSelector ()
 

Protected Member Functions

virtual void getItemEntryEtaPhi (int itemIdx, float &eta, float &phi) const
 
- Protected Member Functions inherited from FWHistSliceSelector
bool matchCell (const TEveCaloData::CellId_t &iCell, int idx) const
 

Additional Inherited Members

- Protected Attributes inherited from FWHistSliceSelector
TH2F * m_hist
 
- Protected Attributes inherited from FWFromSliceSelector
const FWEventItemm_item
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 28 of file FWCaloTowerSliceSelector.h.

Constructor & Destructor Documentation

FWCaloTowerSliceSelector::FWCaloTowerSliceSelector ( TH2F *  h,
const FWEventItem i 
)

Definition at line 25 of file FWCaloTowerSliceSelector.cc.

25  :
27 {
28 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
FWCaloTowerSliceSelector::~FWCaloTowerSliceSelector ( )
virtual

Definition at line 30 of file FWCaloTowerSliceSelector.cc.

31 {
32 }

Member Function Documentation

void FWCaloTowerSliceSelector::getItemEntryEtaPhi ( int  itemIdx,
float &  eta,
float &  phi 
) const
protectedvirtual

Implements FWHistSliceSelector.

Definition at line 35 of file FWCaloTowerSliceSelector.cc.

References assert(), edm::SortedCollection< T, SORT >::begin(), FWEventItem::get(), FWFromSliceSelector::m_item, and HLT_25ns10e33_v2_cff::towers.

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 }
assert(m_qm.get())
void get(const T *&oData) const
Definition: FWEventItem.h:85
std::vector< CaloTower >::const_iterator const_iterator
const FWEventItem * m_item
const_iterator begin() const