CMS 3D CMS Logo

FWHistSliceSelector.h
Go to the documentation of this file.
1 #ifndef Fireworks_Calo_FWHistSliceSelector_h
2 #define Fireworks_Calo_FWHistSliceSelector_h
3 
5 class TH2F;
6 
8 {
9 public:
10  FWHistSliceSelector(TH2F* h, const FWEventItem* item);
11  virtual ~FWHistSliceSelector();
12 
13  virtual void doSelect(const TEveCaloData::CellId_t&);
14  virtual void doUnselect(const TEveCaloData::CellId_t&);
15 
16  virtual bool aggregatePhiCells() const { return true; }
17 
18 protected:
19  virtual void getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const = 0;
20  bool matchCell(const TEveCaloData::CellId_t& iCell, int idx) const;
21 
22  TH2F* m_hist;
23 };
24 
25 
26 #endif
bool matchCell(const TEveCaloData::CellId_t &iCell, int idx) const
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const =0
virtual void doSelect(const TEveCaloData::CellId_t &)
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
virtual bool aggregatePhiCells() const
virtual void doUnselect(const TEveCaloData::CellId_t &)