-
Notifications
You must be signed in to change notification settings - Fork 2
/
TDRStyle.h
54 lines (46 loc) · 1.41 KB
/
TDRStyle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "TStyle.h"
TStyle* setTDRStyle()
{
TStyle *tdrStyle = new TStyle("tdrStyle","Style for P-TDR");
// For the canvas
tdrStyle->SetCanvasBorderMode(0);
tdrStyle->SetCanvasColor(kWhite);
tdrStyle->SetCanvasDefH(700); //Height of canvas
tdrStyle->SetCanvasDefW(700); //Width of canvas
tdrStyle->SetPalette(1,0);
// For the Pad
tdrStyle->SetPadRightMargin(0.08);
tdrStyle->SetPadLeftMargin(0.15);
tdrStyle->SetPadBorderMode(0);
// tdrStyle->SetPadBorderSize(Width_t size = 1);
tdrStyle->SetPadColor(kWhite);
tdrStyle->SetPadGridX(false);
tdrStyle->SetPadGridY(false);
tdrStyle->SetGridColor(0);
tdrStyle->SetGridStyle(3);
tdrStyle->SetGridWidth(1);
// For the frame
tdrStyle->SetFrameBorderMode(0);
tdrStyle->SetFrameBorderSize(1);
tdrStyle->SetFrameFillColor(0);
tdrStyle->SetFrameFillStyle(0);
tdrStyle->SetFrameLineColor(1);
tdrStyle->SetFrameLineStyle(1);
tdrStyle->SetFrameLineWidth(1);
// For the Axis Titles
tdrStyle->SetTitleColor(1, "XYZ");
tdrStyle->SetTitleFont(42, "XYZ");
tdrStyle->SetTitleSize(0.04, "XYZ");
tdrStyle->SetTitleXOffset(1.0);
tdrStyle->SetTitleYOffset(1.52);
// For plots
// tdrStyle->SetOptTitle(0);
tdrStyle->SetOptStat(0);
tdrStyle->SetHistLineWidth(2);
// tdrStyle->SetErrorX(0.);
// For Legends
tdrStyle->SetLegendFillColor(0);
tdrStyle->SetLegendFont(42);
tdrStyle->SetLegendBorderSize(0);
return tdrStyle;
}