8 WELCOME_LOG <<
"Hello from the Plotter() constructor!";
21 histogram->SetTitle(
"");
51 double ymin =
getHistogram(0)->GetYaxis()->GetBinLowEdge(0);
54 TBox* box =
new TBox(xmin ,ymin ,xmax, ymax );
56 box->SetFillColor(fillColour);
57 box->SetFillStyle(fillstyle);
70 if (min < globalMin) globalMin = min;
73 if (globalMin > 0) globalMin = globalMin*0.95;
74 else globalMin = globalMin*1.05;
87 if (max > globalMax) globalMax = max;
90 globalMax = globalMax*1.05;
99 double ymin =
getHistogram(0)->GetYaxis()->GetBinLowEdge(1);
101 INFO_LOG <<
"Adding TLine from (" << xpos <<
", " << ymin <<
") to (" << xpos <<
", " << ymax <<
")";
102 TLine* line =
new TLine(xpos ,ymin ,xpos, ymax );
103 line->SetLineColor(1);
104 line->SetLineStyle(style);
111 double xlow =
getHistogram(0)->GetXaxis()->GetBinLowEdge(1);
113 TLine* line =
new TLine(xlow ,ypos ,xhigh, ypos );
114 line->SetLineColor(1);
115 line->SetLineStyle(style);
std::vector< TObject * > _histograms
std::vector< TObject * > _objToPlot
virtual double getGlobalMin()
void addHorizontalLine(double ypos, int style=1)
virtual double getGlobalMax()
void addVerticalBox(double xmin, double xmax, int fillColour, int fillstyle)
void addVerticalLine(double xpos, int style=1)
TH1 * getHistogram(int i)
RootPlotter2D(TH1 *histogram, double width=350, double height=300)
virtual void setHistogramStyle(TH1 *histogram, bool setMinMax)