CMS 3D CMS Logo

HcalVisualSelector.h
Go to the documentation of this file.
1 #include "MyHcalClasses.h"
2 #include "TObject.h"
3 #include "TCanvas.h"
4 #include "TH2.h"
5 
6 class TCanvas;
7 class TH2;
8 
10 public:
11  class Callbacks {
12  public:
13  virtual ~Callbacks() { }
14  virtual void plot(const MyHcalDetId& id) = 0;
15  virtual MyHcalSubdetector getSubdet(int ieta, int depth) = 0;
16  };
17 
18  HcalVisualSelector(Callbacks* cb,
19  int ieta_lo=-41, int ieta_hi=41, int iphi_lo=1, int iphi_hi=72);
20 
21  void fill(const MyHcalDetId& id, double value);
22  void onEvent(int event, int x, int y, TObject *selected);
23  void Update();
24 private:
26  TCanvas* m_canvas;
27  TH2* m_hist[4];
28 };
29 
30 
DDAxes::y
MyHcalSubdetector
MyHcalSubdetector
Definition: MyHcalClasses.h:4
HcalVisualSelector::Update
void Update()
HcalVisualSelector::m_cb
Callbacks * m_cb
Definition: HcalVisualSelector.h:25
HcalVisualSelector::HcalVisualSelector
HcalVisualSelector(Callbacks *cb, int ieta_lo=-41, int ieta_hi=41, int iphi_lo=1, int iphi_hi=72)
HcalVisualSelector::Callbacks::plot
virtual void plot(const MyHcalDetId &id)=0
DDAxes::x
MyHcalClasses.h
HcalVisualSelector::m_hist
TH2 * m_hist[4]
Definition: HcalVisualSelector.h:27
HcalVisualSelector::Callbacks::~Callbacks
virtual ~Callbacks()
Definition: HcalVisualSelector.h:13
HcalVisualSelector::m_canvas
TCanvas * m_canvas
Definition: HcalVisualSelector.h:26
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
MyHcalDetId
Definition: MyHcalClasses.h:11
value
Definition: value.py:1
HcalVisualSelector::Callbacks::getSubdet
virtual MyHcalSubdetector getSubdet(int ieta, int depth)=0
HcalVisualSelector::Callbacks
Definition: HcalVisualSelector.h:11
HcalVisualSelector
Definition: HcalVisualSelector.h:9
HcalVisualSelector::fill
void fill(const MyHcalDetId &id, double value)
HcalVisualSelector::onEvent
void onEvent(int event, int x, int y, TObject *selected)
event
Definition: event.py:1