CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoTBCalo/HcalPlotter/scripts/HcalElectronicsSelector.h

Go to the documentation of this file.
00001 #include "MyHcalClasses.h"
00002 #include "TObject.h"
00003 #include "TCanvas.h"
00004 #include "TH2.h"
00005 
00006 class TCanvas;
00007 class TH2;
00008 
00009 class HcalElectronicsSelector {
00010 public:
00011   class Callbacks {
00012   public:
00013     virtual ~Callbacks() { }
00014     virtual void plot(const MyElectronicsId& id) = 0;
00015    
00016   };
00017 
00018   HcalElectronicsSelector(Callbacks* cb,
00019                           int htrChan_lo=0, int htrChan_hi=24, int fpga_lo=-31, int fpga_hi=31,int crate=0);
00020 
00021   void fill(const MyElectronicsId& id, double value);
00022   void onEvent(int event, int x, int y, TObject *selected);//add crate
00023   void Update();
00024 private:
00025   Callbacks* m_cb;
00026   TCanvas* m_canvas;
00027   TH2* m_hist;
00028   int m_crate;
00029 };
00030 
00031 
00032