Diana Software
QGuiHistogram.hh
Go to the documentation of this file.
1 #ifndef _QGUIHISTOGRAM_HH_
2 #define _QGUIHISTOGRAM_HH_
3 
10 #include <vector>
11 #include "QGuiSessionItem.hh"
12 
14 {
15  public:
17  QGuiHistogram();
21  void SetXVariable(const std::string& x) {fXVariable = x;}
23  void SetXMin(double xmin);
25  void SetXMax(double xmax);
27  void SetNumberOfBins(int nbins);
29  void SetBinWidth(double width);
31  void SetCut(const std::string& cut) {fCuts.push_back(cut);}
32 
33  private:
35  std::string Dump() const;
37  std::string fXVariable;
39  std::string fXMin;
41  std::string fXMax;
43  std::string fNumberOfBins;
45  std::string fBinWidth;
47  std::vector<std::string> fCuts;
48 
49  friend class QGuiSession;
50 };
51 
52 #endif
Histogram data for GUI session.
void SetBinWidth(double width)
Set bin width.
std::string fBinWidth
Bin width.
void SetXVariable(const std::string &x)
Set x-variable.
~QGuiHistogram()
Default destructor.
std::string fXMin
x-min
std::string Dump() const
Dump to string to write to session file.
void SetNumberOfBins(int nbins)
Set number of bins.
std::string fXMax
std::string fNumberOfBins
Number of bins.
QGuiHistogram()
Default constructor.
void SetXMin(double xmin)
Set x-min.
void SetCut(const std::string &cut)
Set cut.
std::vector< std::string > fCuts
Cuts.
void SetXMax(double xmax)
Set x-max.
std::string fXVariable
Variable for histogram.
Base class for GUI session objects like histograms and scatter plots.
Class to generate session files for the GUI from a Diana module.
Definition: QGuiSession.hh:69