CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/PhysicsTools/RooStatsCms/interface/LEPBandPlot.h

Go to the documentation of this file.
00001 
00002 
00026 #ifndef __LEPBandPlot__
00027 #define __LEPBandPlot__
00028 
00029 #include <iostream>
00030 
00031 #if (defined (STANDALONE) or defined (__CINT__) )
00032    #include "StatisticalPlot.h"
00033 #else
00034    #include "PhysicsTools/RooStatsCms/interface/StatisticalPlot.h"
00035 #endif
00036 
00037 #include "TGraphErrors.h"
00038 #include "TLine.h"
00039 #include "TLegend.h"
00040 
00041 class LEPBandPlot : public StatisticalPlot {
00042 
00043   public:
00044 
00046     LEPBandPlot(const char* name,
00047                 const char* title,
00048                 const int n_points,
00049                 double* x_vals,
00050                 double* sb_vals,
00051                 double* b_vals,
00052                 double* b_rms,
00053                 double* exp_vals=0);
00055     LEPBandPlot(const char* name,
00056                 const char* title,
00057                 const int n_points,
00058                 double* x_vals,
00059                 double* sb_vals,
00060                 double* b_vals,
00061                 double* b_up_bars1,
00062                 double* b_down_bars1,
00063                 double* b_up_bars2,
00064                 double* b_down_bars2,
00065                 double* exp_vals=0);
00066 
00068     void setXaxisTitle(const char* title);
00069 
00071     void setTitle(const char* title);
00072 
00074     ~LEPBandPlot();
00075 
00077     void draw (const char* options="");
00078 
00080     void print (const char* options="");
00081 
00083     void dumpToFile (const char* RootFileName, const char* options);
00084 
00085   private:
00086 
00087 
00089     TGraph* m_data_line_graph;
00090 
00092     TGraph* m_b_line_graph;
00093 
00095     TGraph* m_b_band_graph_1sigma;
00096 
00098     TGraph* m_b_band_graph_2sigma;
00099 
00101     TGraph* m_sb_line_graph;
00102 
00104     TLine* m_zero_line;
00105 
00107     TLegend* m_legend;
00108 
00109 
00110 
00111 //For Cint
00112 // #if (defined (STANDALONE) or defined (__CINT__) )
00113 ClassDef(LEPBandPlot,1)
00114 // #endif
00115  };
00116 
00117 #endif
00118 // Automatically converted from the standalone version Wed Apr 15 11:36:33 2009