CMS 3D CMS Logo

LEPBandPlot.h
Go to the documentation of this file.
1 
26 #ifndef __LEPBandPlot__
27 #define __LEPBandPlot__
28 
29 #include <iostream>
30 
31 #if (defined (STANDALONE) or defined (__CINT__) )
32  #include "StatisticalPlot.h"
33 #else
35 #endif
36 
37 #include "TGraphErrors.h"
38 #include "TLine.h"
39 #include "TLegend.h"
40 
41 class LEPBandPlot : public StatisticalPlot {
42 
43  public:
44 
46  LEPBandPlot(const char* name,
47  const char* title,
48  const int n_points,
49  double* x_vals,
50  double* sb_vals,
51  double* b_vals,
52  double* b_rms,
53  double* exp_vals=0);
55  LEPBandPlot(const char* name,
56  const char* title,
57  const int n_points,
58  double* x_vals,
59  double* sb_vals,
60  double* b_vals,
61  double* b_up_bars1,
62  double* b_down_bars1,
63  double* b_up_bars2,
64  double* b_down_bars2,
65  double* exp_vals=0);
66 
68  void setXaxisTitle(const char* title);
69 
71  void setTitle(const char* title);
72 
74  ~LEPBandPlot();
75 
77  void draw (const char* options="");
78 
80  void print (const char* options="");
81 
83  void dumpToFile (const char* RootFileName, const char* options);
84 
85  private:
86 
87 
90 
92  TGraph* m_b_line_graph;
93 
96 
99 
102 
104  TLine* m_zero_line;
105 
107  TLegend* m_legend;
108 
109 
110 
111 //For Cint
112 // #if (defined (STANDALONE) or defined (__CINT__) )
113 ClassDef(LEPBandPlot,1)
114 // #endif
115  };
116 
117 #endif
118 // Automatically converted from the standalone version Wed Apr 15 11:36:33 2009
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.
Definition: LEPBandPlot.cc:220
TGraph * m_b_band_graph_1sigma
The b band 1 sigma.
Definition: LEPBandPlot.h:95
TGraph * m_sb_line_graph
The sb line.
Definition: LEPBandPlot.h:101
TLegend * m_legend
The legend.
Definition: LEPBandPlot.h:107
void print(const char *options="")
Print the relevant information.
Definition: LEPBandPlot.cc:285
TGraph * m_b_band_graph_2sigma
The b band 2 sigma.
Definition: LEPBandPlot.h:98
void dumpToFile(const char *RootFileName, const char *options)
All the objects are written to rootfile.
Definition: LEPBandPlot.cc:261
TGraph * m_data_line_graph
The data line.
Definition: LEPBandPlot.h:89
void setTitle(const char *title)
Set the title of the plot.
Definition: LEPBandPlot.cc:214
StatisticalPlot: the base class for the statistical plots.
TLine * m_zero_line
The line at 0.
Definition: LEPBandPlot.h:104
~LEPBandPlot()
Destructor.
Definition: LEPBandPlot.cc:181
void setXaxisTitle(const char *title)
Set the title of the x axis.
Definition: LEPBandPlot.cc:204
TGraph * m_b_line_graph
The b line.
Definition: LEPBandPlot.h:92
LEPBandPlot: The plot for the CL bands "a la LEP".
Definition: LEPBandPlot.h:41