00001
00002
00003
00004
00005 #ifndef VIS_CU_TK_MAP_WINDOW_H
00006 #define VIS_CU_TK_MAP_WINDOW_H
00007
00008 #include "VisReco/VisCustomTracker/interface/VisCuTkMap2D.h"
00009 #include "VisReco/VisCustomTracker/interface/VisCuCmsTracker.h"
00010 #include <qvariant.h>
00011 #include <qwidget.h>
00012
00013 namespace edm
00014 {
00015 class Event;
00016 }
00017
00018 class QVBoxLayout;
00019 class QHBoxLayout;
00020 class QGridLayout;
00021 class QPushButton;
00022 class QFrame;
00023 class QTextBrowser;
00024 class QLabel;
00025 class QScrollBar;
00026 class QGrid;
00027 class QToolButton;
00028 class QToolBar;
00029 class IgRepresentable;
00030 class VisCuTrackerSimHit;
00031 class VisCuTrackerDigi;
00032 class VisCuTrackerCluster;
00033 class VisCuTrackerRecHit;
00034
00035 class VisCuTkMapWindow : public QWidget
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 VisCuTkMapWindow( QWidget* parent = 0, const char* name = 0, WFlags fl = 0,IgRepresentable* igparent=0,VisCuTrackerSimHit *simhitdraw=0, VisCuTrackerDigi *digidraw=0,VisCuTrackerCluster *clusterdraw=0,VisCuTrackerRecHit *rechitdraw=0 );
00041 ~VisCuTkMapWindow();
00042 void update();
00043 void setTracker(VisCuCmsTracker * tr);
00044 void setEvent(const edm::Event& iEvent,const edm::EventSetup &eventSetup);
00045 void pan(QPoint pos, int dx, int dy);
00046 VisCuTkMap2D* map;
00047 bool drawsimhits;
00048 bool drawdigi;
00049 bool drawcluster;
00050 bool drawrechit;
00051 QLabel* selectedModuleInfo;
00052
00053 protected:
00054 void initbGrid();
00055 void inittGrid();
00056
00057 public slots:
00058 void drawall();
00059 void separate();
00060 void drawSimHits();
00061 void drawDigi();
00062 void drawCluster();
00063 void drawRechit();
00064 void integSign();
00065
00066 private:
00067 QToolBar *toolbar;
00068 QGridLayout *mainGrid;
00069
00070 QGrid* bGrid;
00071 QToolButton* printButton;
00072 QToolButton* zoominButton;
00073 QToolButton* zoomoutButton;
00074 QPushButton* PushButton1;
00075 QPushButton* PushButton2;
00076 QPushButton* PushButton3;
00077 QPushButton* PushButton4;
00078 QPushButton* PushButton5;
00079 QPushButton* PushButton6;
00080 QPushButton* PushButton7;
00081 QScrollBar* ScrollBar1;
00082 IgRepresentable* igp;
00083
00084 int numModifiche;
00085 bool drawallf;
00086 bool separatef;
00087 bool acc;
00088 VisCuCmsTracker * tracker;
00089 };
00090 #endif // CU_TK_MAP_WINDOW_H