PlotViewer.h
Go to the documentation of this file.
1 ///
2 /// \file PlotViewer.h
3 /// \brief Canvas on which plots and reports are drawn
4 /// \version $Id: PlotViewer.h,v 1.7 2012-11-10 00:00:43 mbaird42 Exp $
5 /// \author messier@indiana.edu
6 ///
7 #ifndef OM_PLOTVIEWER_H
8 #define OM_PLOTVIEWER_H
9 #include "TRootEmbeddedCanvas.h"
10 #include "TTimer.h"
13 class TVirtualPad;
14 class TH1F;
15 class TH2F;
16 class TGWindow;
17 namespace om { class ComparisonOptions; }
18 
19 namespace om
20 {
21  //
22  // The canvas that shows the selected plot of detector status
23  //
24  class PlotViewer : public TRootEmbeddedCanvas, public GUIModelSubscriber
25  {
26  public:
27  PlotViewer(TGWindow* m);
28  ~PlotViewer();
29 
30  static void Exec();
31 
32  void Update();
33  void UpdateCompare(const ComparisonOptions& COpt);
34 
35  // Complete the GUIModelSubscriber interface
36  void GUIModelDataIssue(const GUIModelData& m, unsigned int which);
37 
38  private:
39  void ContentProjectionTH1F(const HistoData* hd, TH1F* h);
40  void ContentProjectionTH2F(const HistoData* hd, TH2F* h);
41 
42  private:
43  PlotOptions fPlotOpt; ///< Options for plotting
44  std::string fHistogramSource; ///< Source to pull histograms from
45  std::string fCurrentHistogram; ///< What histogram is being shown?
46 
47  ClassDef(PlotViewer,0)
48  };
49 }
50 
51 #endif
52 ////////////////////////////////////////////////////////////////////////
void UpdateCompare(const ComparisonOptions &COpt)
Definition: PlotViewer.cxx:181
PlotViewer(TGWindow *m)
Definition: PlotViewer.cxx:33
void ContentProjectionTH2F(const HistoData *hd, TH2F *h)
Definition: PlotViewer.cxx:836
void ContentProjectionTH1F(const HistoData *hd, TH1F *h)
Definition: PlotViewer.cxx:763
std::string fCurrentHistogram
What histogram is being shown?
Definition: PlotViewer.h:45
std::string fHistogramSource
Source to pull histograms from.
Definition: PlotViewer.h:44
PlotOptions fPlotOpt
Options for plotting.
Definition: PlotViewer.h:43
void GUIModelDataIssue(const GUIModelData &m, unsigned int which)
Definition: PlotViewer.cxx:913
static void Exec()
Definition: PlotViewer.cxx:54
TH1F * hd
Definition: Xdiff_gwt.C:57
Online Monitoring package header.
enum BeamMode string