Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:02:11

0001 #include "MyHcalClasses.h"
0002 #include "TObject.h"
0003 #include "TCanvas.h"
0004 #include "TH2.h"
0005 
0006 class TCanvas;
0007 class TH2;
0008 
0009 class HcalElectronicsSelector {
0010 public:
0011   class Callbacks {
0012   public:
0013     virtual ~Callbacks() { }
0014     virtual void plot(const MyElectronicsId& id) = 0;
0015    
0016   };
0017 
0018   HcalElectronicsSelector(Callbacks* cb,
0019               int htrChan_lo=0, int htrChan_hi=24, int fpga_lo=-31, int fpga_hi=31,int crate=0);
0020 
0021   void fill(const MyElectronicsId& id, double value);
0022   void onEvent(int event, int x, int y, TObject *selected);//add crate
0023   void Update();
0024 private:
0025   Callbacks* m_cb;
0026   TCanvas* m_canvas;
0027   TH2* m_hist;
0028   int m_crate;
0029 };
0030 
0031 
0032