CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/PhysicsTools/RooStatsCms/interface/ExclusionBandPlot.h

Go to the documentation of this file.
00001 
00002 
00014 #ifndef __ExclusionBandPlot__
00015 #define __ExclusionBandPlot__
00016 
00017 #include <iostream>
00018 
00019 #if (defined (STANDALONE) or defined (__CINT__) )
00020    #include "StatisticalPlot.h"
00021 #else
00022    #include "PhysicsTools/RooStatsCms/interface/StatisticalPlot.h"
00023 #endif
00024 
00025 #include "TGraphErrors.h"
00026 #include "TLine.h"
00027 #include "TLegend.h"
00028 
00029 class ExclusionBandPlot : public StatisticalPlot {
00030 
00031   public:
00032 
00034     ExclusionBandPlot(const char* name,
00035                       const char* title,
00036                       const int n_points,
00037                       double* x_vals,
00038                       double* y_vals,
00039                       double* y_up_bars1,
00040                       double* y_down_bars1,
00041                       double* y_up_bars2,
00042                       double* y_down_bars2);
00043 
00045     void setXaxisTitle(const char* title);
00046 
00048     void setYaxisTitle(const char* title);
00049 
00051     void setTitle(const char* title);
00052 
00054     ~ExclusionBandPlot();
00055 
00057     void draw (const char* options="");
00058 
00060     void print (const char* options="");
00061 
00063     void dumpToFile (const char* RootFileName, const char* options);
00064 
00065   private:
00066 
00068     TGraph* m_y_line_graph;
00069 
00071     TGraph* m_y_band_graph_1sigma;
00072 
00074     TGraph* m_y_band_graph_2sigma;
00075 
00077     TLine* m_one_line;
00078 
00080     TLegend* m_legend;
00081 
00082 
00083 
00084 //For Cint/**/
00085 // #if (defined (STANDALONE) or defined (__CINT__) )
00086 ClassDef(ExclusionBandPlot,1)
00087 // #endif
00088  };
00089 
00090 #endif
00091 // Automatically converted from the standalone version Wed Apr 15 11:36:33 2009