ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Style/interface/MitStyle.h
(Generate patch)

Comparing UserCode/MitPlots/Style/interface/MitStyle.h (file contents):
Revision 1.1 by paus, Sun Oct 3 04:08:49 2010 UTC vs.
Revision 1.2 by paus, Tue Jan 25 11:30:31 2011 UTC

# Line 0 | Line 1
1 + //--------------------------------------------------------------------------------------------------
2 + // $Id$
3 + //
4 + // MitStyle
5 + //
6 + // This class implements MitStyle which defines most relevant plot properties to give a reasonable
7 + // plot. Of course every plot needs fine tuning, which has to be done by hand, as needed.
8 + //
9 + // Authors: C.Paus
10 + //--------------------------------------------------------------------------------------------------
11 +
12 + #ifndef MITPLOTS_STYLE_MITSTYLE_H
13 + #define MITPLOTS_STYLE_MITSTYLE_H
14 +
15 + #include <TCanvas.h>
16 + #include <TPad.h>
17 + #include <TH1.h>
18 +
19 + namespace mithep
20 + {
21 +  class MitStyle
22 +  {
23 +  public:
24 +    MitStyle() { Init(); }
25 +    
26 +    static void     Init();
27 +
28 +    static TCanvas* MakeCanvas(const char* name, const char *title);
29 +    static void     InitSubPad(TPad *pad, int i);
30 +    static void     InitHist  (TH1  *hist,
31 +                               const char *xtit,
32 +                               const char *ytit  = "Number of Entries",
33 +                               EColor color = kBlack);
34 +    static void     SetStyle  ();
35 +
36 +    ClassDef(MitStyle, 0) // Interface to MitStyle
37 +  };
38 + }
39 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines