CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/PhysicsTools/RooStatsCms/interface/StatisticalPlot.h

Go to the documentation of this file.
00001 
00002 
00012 #ifndef __StatisticalPlot__
00013 #define __StatisticalPlot__
00014 
00015 
00016 #include "TNamed.h"
00017 #include "TCanvas.h"
00018 
00019 #include "TFile.h"
00020 
00021 class StatisticalPlot : public TNamed {
00022 
00023   public:
00024 
00026     StatisticalPlot(const char* name,const  char* title,bool verbosity=true);
00027 
00029     ~StatisticalPlot();
00030 
00032     void setVerbosity(bool verbosity);
00033 
00035     bool is_verbose();
00036 
00038     TCanvas* getCanvas(){return m_canvas;}
00039 
00041     void setCanvas(TCanvas* new_canvas){m_canvas=new_canvas;}
00042 
00044     void dumpToImage (const char* filename){m_canvas->Print(filename);}
00045 
00047     virtual void draw (const char* options="") = 0;
00048 
00050     virtual void print (const char* options="") = 0;
00051 
00053     virtual void dumpToFile (const char* RootFileName, const char* options="") = 0;
00054 
00055   private:
00056 
00058     bool m_verbose;
00059 
00061     TCanvas* m_canvas; 
00062 
00063 //For Cint
00064 #if (defined (STANDALONE) or defined (__CINT__) )
00065 ClassDef(StatisticalPlot,1)
00066 #endif
00067  };
00068 
00069 #endif
00070 // Automatically converted from the standalone version Wed Apr 15 11:36:34 2009