LEPBandPlot: The plot for the CL bands "a la LEP". More...
#include <LEPBandPlot.h>
Public Member Functions | |
void | draw (const char *options="") override |
Draw on canvas. More... | |
void | dumpToFile (const char *RootFileName, const char *options) override |
All the objects are written to rootfile. More... | |
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=nullptr) | |
Constructor. More... | |
LEPBandPlot (const char *name, const char *title, const int n_points, double *x_vals, double *sb_vals, double *b_vals, double *b_up_bars1, double *b_down_bars1, double *b_up_bars2, double *b_down_bars2, double *exp_vals=nullptr) | |
Constructor. More... | |
void | print (const char *options="") override |
Print the relevant information. More... | |
void | setTitle (const char *title) |
Set the title of the plot. More... | |
void | setXaxisTitle (const char *title) |
Set the title of the x axis. More... | |
~LEPBandPlot () override | |
Destructor. More... | |
Public Member Functions inherited from StatisticalPlot | |
void | dumpToImage (const char *filename) |
Write an image on disk. More... | |
TCanvas * | getCanvas () |
Get the canvas. More... | |
bool | is_verbose () |
get the verbosity More... | |
void | setCanvas (TCanvas *new_canvas) |
Set the canvas. More... | |
void | setVerbosity (bool verbosity) |
Set the verbosity. More... | |
StatisticalPlot (const char *name, const char *title, bool verbosity=true) | |
Constructor. More... | |
~StatisticalPlot () override | |
Destructor. More... | |
Private Attributes | |
TGraph * | m_b_band_graph_1sigma |
The b band 1 sigma. More... | |
TGraph * | m_b_band_graph_2sigma |
The b band 2 sigma. More... | |
TGraph * | m_b_line_graph |
The b line. More... | |
TGraph * | m_data_line_graph |
The data line. More... | |
TLegend * | m_legend |
The legend. More... | |
TGraph * | m_sb_line_graph |
The sb line. More... | |
TLine * | m_zero_line |
The line at 0. More... | |
LEPBandPlot: The plot for the CL bands "a la LEP".
This class allows to produce plots like the ones of the Tevatron HWG and originally introduced by LEP HWG. It is thought as a "enhanced" TGraph. The input to give to obtain the plot are:
Definition at line 41 of file LEPBandPlot.h.
LEPBandPlot::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 = nullptr |
||
) |
Constructor.
LEPBandPlot::LEPBandPlot | ( | const char * | name, |
const char * | title, | ||
const int | n_points, | ||
double * | x_vals, | ||
double * | sb_vals, | ||
double * | b_vals, | ||
double * | b_up_bars1, | ||
double * | b_down_bars1, | ||
double * | b_up_bars2, | ||
double * | b_down_bars2, | ||
double * | exp_vals = nullptr |
||
) |
Constructor.
Definition at line 98 of file LEPBandPlot.cc.
References m_b_band_graph_1sigma, m_b_band_graph_2sigma, m_b_line_graph, m_data_line_graph, m_legend, m_sb_line_graph, and m_zero_line.
|
override |
Destructor.
Definition at line 181 of file LEPBandPlot.cc.
References m_b_band_graph_1sigma, m_b_band_graph_2sigma, m_b_line_graph, m_data_line_graph, m_legend, m_sb_line_graph, and m_zero_line.
|
overridevirtual |
Draw on canvas.
Implements StatisticalPlot.
Definition at line 220 of file LEPBandPlot.cc.
References StatisticalPlot::getCanvas(), m_b_band_graph_1sigma, m_b_band_graph_2sigma, m_b_line_graph, m_data_line_graph, m_legend, m_sb_line_graph, m_zero_line, and StatisticalPlot::setCanvas().
|
overridevirtual |
All the objects are written to rootfile.
Implements StatisticalPlot.
Definition at line 261 of file LEPBandPlot.cc.
References m_b_band_graph_1sigma, m_b_band_graph_2sigma, m_b_line_graph, m_data_line_graph, m_legend, m_sb_line_graph, and checklumidiff::ofile.
|
overridevirtual |
Print the relevant information.
Implements StatisticalPlot.
Definition at line 285 of file LEPBandPlot.cc.
References gather_cfg::cout.
void LEPBandPlot::setTitle | ( | const char * | title | ) |
Set the title of the plot.
The title is here set only for the plot of the 2sigma band plot. Indeed its axes will be the only one to be drawn.
Definition at line 214 of file LEPBandPlot.cc.
References m_b_band_graph_2sigma.
void LEPBandPlot::setXaxisTitle | ( | const char * | title | ) |
Set the title of the x axis.
The title of the x axis is here set only for the plot of the 2sigma band plot. Indeed its axes will be the only one to be drawn.
Definition at line 204 of file LEPBandPlot.cc.
References m_b_band_graph_2sigma.
|
private |
The b band 1 sigma.
Definition at line 95 of file LEPBandPlot.h.
Referenced by draw(), dumpToFile(), LEPBandPlot(), and ~LEPBandPlot().
|
private |
The b band 2 sigma.
Definition at line 98 of file LEPBandPlot.h.
Referenced by draw(), dumpToFile(), LEPBandPlot(), setTitle(), setXaxisTitle(), and ~LEPBandPlot().
|
private |
The b line.
Definition at line 92 of file LEPBandPlot.h.
Referenced by draw(), dumpToFile(), LEPBandPlot(), and ~LEPBandPlot().
|
private |
The data line.
Definition at line 89 of file LEPBandPlot.h.
Referenced by draw(), dumpToFile(), LEPBandPlot(), and ~LEPBandPlot().
|
private |
The legend.
Definition at line 107 of file LEPBandPlot.h.
Referenced by draw(), dumpToFile(), LEPBandPlot(), and ~LEPBandPlot().
|
private |
The sb line.
Definition at line 101 of file LEPBandPlot.h.
Referenced by draw(), dumpToFile(), LEPBandPlot(), and ~LEPBandPlot().
|
private |
The line at 0.
Definition at line 104 of file LEPBandPlot.h.
Referenced by draw(), LEPBandPlot(), and ~LEPBandPlot().