MINT2
RootPlotter1D.h
Go to the documentation of this file.
1 
10 #ifndef ROOT_PLOTTER_1D_HH
11 #define ROOT_PLOTTER_1D_HH
12 
13 #include "Mint/RootPlotter.h"
14 
15 
16 #include "Mint/MessageService.h"
17 
18 #include "TLine.h"
19 
20 class RootPlotter1D : public RootPlotter{
21 
22  private:
23 
24  protected:
25 
26 
27  double getRatioMin(RootPlotter1D* ratioPlotter);
28  double getRatioMax(RootPlotter1D* ratioPlotter);
29  double _ratioMax;
30  double _ratioMin;
32  virtual void setHistogramStyle(TH1* histogram, bool setMinMax = 1);
33 
34 
35  public:
36 
37  virtual double getGlobalMin();
38  virtual double getGlobalMax();
39 
40  RootPlotter1D(TH1* histogram, double width = 400, double height = 300);
41 
42  void addVerticalLine(double xpos , int style=1, int colour=1);
43  void addHorizontalLine(double ypos, int style=1, int colour=1);
44  void addHorizontalBox(double ypos, double width, int fillColour);
45  void addVerticalBox(double xmin, double xmax, int fillColour, int fillstyle);
46 
47  virtual ~RootPlotter1D();
48 
49 
50  static double s_ratioMax;
53  static double s_ratioMin;
56  void setRatioMax(double val){_ratioMax = val;}
59  void setRatioMin(double val){_ratioMin = val;}
62  void plotRatio(TString plotDirectory, TString plotOptions = "", TPad* pad = 0, double scaleFactor = 1.0, double* returnMin = 0, double* returnMax = 0);
64  void plotPulls(TString plotDirectory, TString plotOptions = "", TPad* pad = 0, double scaleFactor = 1.0);
66  void plotWithRatio(TString plotDirectory, TString plotOptions = "", TPad* pad = 0);
68  void plotWithPulls(TString plotDirectory, TString plotOptions = "", TPad* pad = 0);
73 };
74 
75 #endif
void setRatioMin(double val)
Definition: RootPlotter1D.h:59
virtual void setHistogramStyle(TH1 *histogram, bool setMinMax=1)
virtual double getGlobalMin()
static double s_ratioMin
Definition: RootPlotter1D.h:53
void setRatioMax(double val)
Definition: RootPlotter1D.h:56
double getRatioMin(RootPlotter1D *ratioPlotter)
void plotPulls(TString plotDirectory, TString plotOptions="", TPad *pad=0, double scaleFactor=1.0)
virtual double getGlobalMax()
virtual ~RootPlotter1D()
void plotWithRatio(TString plotDirectory, TString plotOptions="", TPad *pad=0)
void plotWithPulls(TString plotDirectory, TString plotOptions="", TPad *pad=0)
double _ratioMin
Definition: RootPlotter1D.h:30
void plotRatio(TString plotDirectory, TString plotOptions="", TPad *pad=0, double scaleFactor=1.0, double *returnMin=0, double *returnMax=0)
void addVerticalLine(double xpos, int style=1, int colour=1)
void addHorizontalLine(double ypos, int style=1, int colour=1)
void addVerticalBox(double xmin, double xmax, int fillColour, int fillstyle)
double getRatioMax(RootPlotter1D *ratioPlotter)
double _ratioMax
Definition: RootPlotter1D.h:29
void addHorizontalBox(double ypos, double width, int fillColour)
RootPlotter1D(TH1 *histogram, double width=400, double height=300)
static double s_ratioMax
Definition: RootPlotter1D.h:50