LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
DisplayWindow.h
Go to the documentation of this file.
1 #ifndef EVDB_DISPLAYWINDOW_H
10 #define EVDB_DISPLAYWINDOW_H
11 #include <vector>
12 #include <string>
13 #include "TQObject.h"
14 #include "RQ_OBJECT.h"
15 
16 
17 class TGMainFrame;
18 namespace art {
19  class Worker;
20 }
21 namespace evdb {
22  class MenuBar;
23  class ButtonBar;
24  class StatusBar;
25  class Canvas;
26  typedef Canvas* (*CanvasCreator_t)(TGMainFrame* mf);
27 }
28 
29 //......................................................................
30 
31 namespace evdb {
33  class DisplayWindow {
34  RQ_OBJECT("evdb::DisplayWindow")
35 
36  public:
37  static void Register(const char* name,
38  const char* description,
39  unsigned int h,
40  unsigned int w,
41  CanvasCreator_t creator);
42  static const std::vector<std::string>& Names();
43  static int OpenWindow(int type=0);
44  static void SetRunEventAll(int run, int event);
45  static void SetServicesAll();
46  static void DrawAll(const char* opt=0);
47 
48  public:
49  DisplayWindow(int window=0);
50  virtual ~DisplayWindow();
51 
52  virtual void Draw(const char* opt="");
53  virtual void CloseWindow();
54  void Raise();
55  void SetRunEvent(int run, int event);
56  void SetServices();
57 
58  private:
59  TGMainFrame* fMain;
64  };
65 }
66 #endif
67 
MenuBar * fMenuBar
Top menu bar.
Definition: DisplayWindow.h:60
An event display window.
Definition: DisplayWindow.h:33
A status bar on the bottom of the display.
Definition: StatusBar.h:15
hist1 Draw("HIST")
ButtonBar * fButtonBar
Top button bar.
Definition: DisplayWindow.h:61
Canvas *(* CanvasCreator_t)(TGMainFrame *mf)
Definition: DisplayWindow.h:26
Manage all things related to colors for the event display.
StatusBar * fStatusBar
Status bar running along the bottom.
Definition: DisplayWindow.h:62
Canvas * fDisplay
Display of detector event information.
Definition: DisplayWindow.h:63
Definition: MVAAlg.h:12
The pull down menu bar.
Definition: MenuBar.h:25
TGMainFrame * fMain
Main window.
Definition: DisplayWindow.h:59
Float_t w
Definition: plot.C:20
Event finding and building.