Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:27

0001 #ifndef Fireworks_Calo_FWHistSliceSelector_h
0002 #define Fireworks_Calo_FWHistSliceSelector_h
0003 
0004 #include "Fireworks/Calo/interface/FWFromSliceSelector.h"
0005 class TH2F;
0006 
0007 class FWHistSliceSelector : public FWFromSliceSelector {
0008 public:
0009   FWHistSliceSelector(TH2F* h, const FWEventItem* item);
0010   ~FWHistSliceSelector() override;
0011 
0012   void doSelect(const TEveCaloData::CellId_t&) override;
0013   void doUnselect(const TEveCaloData::CellId_t&) override;
0014 
0015   virtual bool aggregatePhiCells() const { return true; }
0016 
0017 protected:
0018   virtual void getItemEntryEtaPhi(int itemIdx, float& eta, float& phi) const = 0;
0019   bool matchCell(const TEveCaloData::CellId_t& iCell, int idx) const;
0020 
0021   TH2F* m_hist;
0022 };
0023 
0024 #endif