PlotView.h
Go to the documentation of this file.
1 ///
2 /// \file PlotView.h
3 /// \brief A view showing collections of plots related to this event
4 /// \author messier@indiana.edu
5 /// \version $Id: PlotView.h,v 1.2 2012-01-15 07:47:51 messier Exp $
6 ///
7 #ifndef EVD_PLOTVIEW_H
8 #define EVD_PLOTVIEW_H
10 #include "RQ_OBJECT.h"
11 #include <vector>
12 
13 namespace evd
14 {
15  /// Data for a single plot appearing in the view
16  class Plot {
17  public:
20  std::vector<std::string> fOptions;
21  };
22 
23  /// Data for a single plotting pad
24  class PlotPad {
25  public:
26  std::vector<Plot> fPlot;
27  };
28 
29  /// View showing collections of plots related to this event
30  class PlotView : public evdb::Canvas {
31  public:
32  RQ_OBJECT("evd::PlotView")
33  public:
34  PlotView(TGMainFrame* mf);
35  ~PlotView();
36 
37  const char* Description() const { return "Event Plots"; }
38  const char* PrintTag() const { return "plots"; }
39 
40  void Parse(std::vector<PlotPad>& pads);
41  void Draw(const char* opt="");
42 
43  private:
44  };
45 }
46 #endif
47 ////////////////////////////////////////////////////////////////////////
tree Draw("slc.nhit")
View showing collections of plots related to this event.
Definition: PlotView.h:30
Data for a single plotting pad.
Definition: PlotView.h:24
Base class for define a detector display.
std::string fObject
Definition: PlotView.h:19
nova event display
std::vector< Plot > fPlot
Definition: PlotView.h:26
const char * Description() const
Definition: PlotView.h:37
std::vector< std::string > fOptions
Definition: PlotView.h:20
Data for a single plot appearing in the view.
Definition: PlotView.h:16
std::string fModule
Definition: PlotView.h:18
const char * PrintTag() const
Definition: PlotView.h:38
enum BeamMode string