7 #if (defined (STANDALONE) or defined (__CINT__) )
12 #include "TGraphAsymmErrors.h"
18 #if (defined (STANDALONE) or defined (__CINT__) )
48 double* b_2rms =
new double[n_points];
49 for (
int i=0;
i<n_points;++
i)
83 m_legend =
new TLegend(0.75,0.78,0.98,0.98);
84 m_legend->SetName(
"Confidence Levels");
92 m_legend->SetFillColor(0);
106 double* b_down_bars1,
108 double* b_down_bars2,
168 m_legend =
new TLegend(0.75,0.78,0.98,0.98);
169 m_legend->SetName(
"Confidence Levels");
177 m_legend->SetFillColor(0);
223 setCanvas(
new TCanvas(GetName(),GetTitle()));
229 TString opt(options);
231 if (opt.Contains(
"4")==0){
241 if (opt.Contains(
"4")==0){
264 TFile
ofile(RootFileName,options);
287 std::cout <<
"\nLEPBandPlot object " << GetName() <<
":\n";
LEPBandPlot(const char *name, const char *title, const int n_points, double *x_vals, double *sb_vals, double *b_vals, double *b_rms, double *exp_vals=0)
Constructor.
void draw(const char *options="")
Draw on canvas.
void setCanvas(TCanvas *new_canvas)
Set the canvas.
TGraph * m_b_band_graph_1sigma
The b band 1 sigma.
TGraph * m_sb_line_graph
The sb line.
TLegend * m_legend
The legend.
void print(const char *options="")
Print the relevant information.
TGraph * m_b_band_graph_2sigma
The b band 2 sigma.
void dumpToFile(const char *RootFileName, const char *options)
All the objects are written to rootfile.
TGraph * m_data_line_graph
The data line.
void setTitle(const char *title)
Set the title of the plot.
StatisticalPlot: the base class for the statistical plots.
TLine * m_zero_line
The line at 0.
~LEPBandPlot()
Destructor.
void setXaxisTitle(const char *title)
Set the title of the x axis.
TGraph * m_b_line_graph
The b line.
TCanvas * getCanvas()
Get the canvas.
LEPBandPlot: The plot for the CL bands "a la LEP".