CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ExclusionBandPlot.h
Go to the documentation of this file.
1 
14 #ifndef __ExclusionBandPlot__
15 #define __ExclusionBandPlot__
16 
17 #include <iostream>
18 
19 #if (defined (STANDALONE) or defined (__CINT__) )
20  #include "StatisticalPlot.h"
21 #else
23 #endif
24 
25 #include "TGraphErrors.h"
26 #include "TLine.h"
27 #include "TLegend.h"
28 
30 
31  public:
32 
34  ExclusionBandPlot(const char* name,
35  const char* title,
36  const int n_points,
37  double* x_vals,
38  double* y_vals,
39  double* y_up_bars1,
40  double* y_down_bars1,
41  double* y_up_bars2,
42  double* y_down_bars2);
43 
45  void setXaxisTitle(const char* title);
46 
48  void setYaxisTitle(const char* title);
49 
51  void setTitle(const char* title);
52 
55 
57  void draw (const char* options="");
58 
60  void print (const char* options="");
61 
63  void dumpToFile (const char* RootFileName, const char* options);
64 
65  private:
66 
68  TGraph* m_y_line_graph;
69 
72 
75 
77  TLine* m_one_line;
78 
80  TLegend* m_legend;
81 
82 
83 
84 //For Cint/**/
85 // #if (defined (STANDALONE) or defined (__CINT__) )
86 ClassDef(ExclusionBandPlot,1)
87 // #endif
88  };
89 
90 #endif
91 // Automatically converted from the standalone version Wed Apr 15 11:36:33 2009
TGraph * m_y_band_graph_1sigma
The band 1 sigma.
TGraph * m_y_band_graph_2sigma
The band 2 sigma.
TGraph * m_y_line_graph
The line.
void setTitle(const char *title)
Set the title of the plot.
void dumpToFile(const char *RootFileName, const char *options)
All the objects are written to rootfile.
~ExclusionBandPlot()
Destructor.
ExclusionBandPlot(const char *name, const char *title, const int n_points, double *x_vals, double *y_vals, double *y_up_bars1, double *y_down_bars1, double *y_up_bars2, double *y_down_bars2)
Constructor.
void setXaxisTitle(const char *title)
Set the title of the x axis.
StatisticalPlot: the base class for the statistical plots.
TLegend * m_legend
The legend.
void setYaxisTitle(const char *title)
Set the title of the x axis.
void draw(const char *options="")
Draw on canvas.
ExclusionBandPlot: plot a la tevatron for SM eclusion in function of mass.
TLine * m_one_line
The line at 1.
void print(const char *options="")
Print the relevant information.