ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Style/interface/MitStyle.h
Revision: 1.2
Committed: Tue Jan 25 11:30:31 2011 UTC (14 years, 3 months ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029a, Mit_028, Mit_027, Mit_027a, HEAD
Changes since 1.1: +39 -0 lines
Log Message:
2nd try

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MitStyle.h,v 1.1.2.1 2010/10/03 04:08:49 paus Exp $
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