CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
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
virtual bool aggregatePhiCells() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4