1 |
paus |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
paus |
1.2 |
// $Id: MitStyle.h,v 1.1 2010/10/03 03:40:01 paus Exp $
|
3 |
paus |
1.1 |
//
|
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
|