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 public:
9  FWHistSliceSelector(TH2F* h, const FWEventItem* item);
10  ~FWHistSliceSelector() override;
11 
12  void doSelect(const TEveCaloData::CellId_t&) override;
13  void doUnselect(const TEveCaloData::CellId_t&) override;
14 
15  virtual bool aggregatePhiCells() const { return true; }
16 
17 protected:
18  virtual void getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const = 0;
19  bool matchCell(const TEveCaloData::CellId_t& iCell, int idx) const;
20 
21  TH2F* m_hist;
22 };
23 
24 #endif
bool matchCell(const TEveCaloData::CellId_t &iCell, int idx) const
virtual bool aggregatePhiCells() const
void doUnselect(const TEveCaloData::CellId_t &) override
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const =0
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
void doSelect(const TEveCaloData::CellId_t &) override
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4