#ifndef RATEHISTOMAPWIDGET_H #define RATEHISTOMAPWIDGET_H #include #include /// QT headers #include "qwidget.h" #include "qlayout.h" // #include "qevent.h" // #include "qpainter.h" // #include "qtooltip.h" /// ROOT headers #include "TQtWidget.h" #include "TQRootCanvas.h" #include "TCanvas.h" #include "TFile.h" #include "TH2.h" #include "TKey.h" /// Online headers #include "channelMappings/L1CaloChannelMap.h" // class QEvent; // class QPaintEvent; // class QMouseEvent; // class QResizeEvent; class RateHistoMapWidget : public QWidget { //Q_OBJECT public: RateHistoMapWidget(QWidget* parent = 0,const char* name = ""); ~RateHistoMapWidget(void); EM_OR_HAD getLayer(void){return m_layer;}; void DisplayHistogram(void); // public slots: // void updateChanRects(void); // void togglePpmRateMetering(bool paused); // void setLayer(EM_OR_HAD layer); // signals: // void channelSelected(unsigned int coolId); // void rateReadOutToggled(bool value); // void layerChanged(EM_OR_HAD); // protected: // void resizeEvent(QResizeEvent* event); // void mouseMoveEvent(QMouseEvent *event); // void mousePressEvent(QMouseEvent *event); // void paintEvent(QPaintEvent *event); // bool event(QEvent* event); private: QWidget* parent; std::string thisWidgetsName; TQtWidget* m_canvasWidget; QVBoxLayout* m_topLayout; L1CaloChannelMap* m_l1map; EM_OR_HAD m_layer; TCanvas* m_canvas; }; #endif