Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:55

0001 #ifndef MEPlotWindow_hh
0002 #define MEPlotWindow_hh
0003 
0004 #include <TGFrame.h>
0005 
0006 #include "MECanvasHolder.hh"
0007 
0008 class MusEcalGUI;
0009 class TRootEmbeddedCanvas;
0010 
0011 class MEPlotWindow : public MECanvasHolder
0012 {
0013 
0014 private:
0015 
0016   MusEcalGUI* _gui;
0017   TGTransientFrame  *fMain;
0018   bool fClose;
0019 
0020   TGHorizontalFrame*   fHFrame; 
0021   TRootEmbeddedCanvas* fEcanvas;
0022 
0023 
0024   TString _name;
0025   TString _printName;
0026 
0027 public:
0028 
0029   MEPlotWindow( const TGWindow *p, MusEcalGUI* main, const char* name, UInt_t w, UInt_t h,      
0030         const char* str1="",
0031         const char* str2="",
0032         const char* str3="",
0033         const char* str4=""
0034         );
0035   virtual ~MEPlotWindow();
0036 
0037   void setPrintName( TString printName );
0038   TString name() { return _name; }
0039   void write();
0040 
0041   virtual void setPxAndPy( int px, int py );
0042 
0043   // slots
0044   void CloseWindow();
0045   void DoClose();
0046   
0047 ClassDef(MEPlotWindow,0) // MEPlotWindow -- 
0048     
0049 };
0050 
0051 #endif