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
FWFromSliceSelector.h
FWHistSliceSelector::doSelect
void doSelect(const TEveCaloData::CellId_t &) override
Definition: FWHistSliceSelector.cc:58
training_settings.idx
idx
Definition: training_settings.py:16
FWHistSliceSelector
Definition: FWHistSliceSelector.h:7
PVValHelper::eta
Definition: PVValidationHelpers.h:69
FWHistSliceSelector::~FWHistSliceSelector
~FWHistSliceSelector() override
Definition: FWHistSliceSelector.cc:12
h
FWHistSliceSelector::doUnselect
void doUnselect(const TEveCaloData::CellId_t &) override
Definition: FWHistSliceSelector.cc:74
FWHistSliceSelector::m_hist
TH2F * m_hist
Definition: FWHistSliceSelector.h:21
FWFromSliceSelector
Definition: FWFromSliceSelector.h:30
FWHistSliceSelector::FWHistSliceSelector
FWHistSliceSelector(TH2F *h, const FWEventItem *item)
Definition: FWHistSliceSelector.cc:10
FWHistSliceSelector::aggregatePhiCells
virtual bool aggregatePhiCells() const
Definition: FWHistSliceSelector.h:15
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
FWHistSliceSelector::getItemEntryEtaPhi
virtual void getItemEntryEtaPhi(int itemIdx, float &eta, float &phi) const =0
DDAxes::phi
FWEventItem
Definition: FWEventItem.h:56
FWHistSliceSelector::matchCell
bool matchCell(const TEveCaloData::CellId_t &iCell, int idx) const
Definition: FWHistSliceSelector.cc:14