CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/Validation/RecoParticleFlow/interface/NicePlot.h

Go to the documentation of this file.
00001 #ifndef __Validation_RecoParticleFlow_NicePlot__
00002 #define __Validation_RecoParticleFlow_NicePlot__
00003 
00004 #include <TH1.h>
00005 #include <TPad.h>
00006 
00007 class Style : public TH1 {
00008 };
00009 
00010 
00011 class Styles {
00012  public:
00013   Style *s1;
00014   Style *s2;
00015   Style *sg1;
00016   Style *sback;
00017   Style *spred;
00018   Style *spblue;
00019   Style *sgr1;
00020   Style *sgr2;
00021 
00022   Styles();
00023 
00024 
00025   static void FormatHisto( TH1* h, const Style* s );
00026   
00027   static void FormatPad( TPad* pad, bool grid = true, bool logx = false, bool logy = false);
00028   
00029   static void SavePlot(const char* name, const char* dir);
00030 };
00031 
00032 
00033 #endif