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  ~FWHistSliceSelector() override;
12 
13  void doSelect(const TEveCaloData::CellId_t&) override;
14  void doUnselect(const TEveCaloData::CellId_t&) override;
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
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void doUnselect(const TEveCaloData::CellId_t &) override
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
void doSelect(const TEveCaloData::CellId_t &) override
virtual bool aggregatePhiCells() const