-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rootlogon.C
87 lines (73 loc) · 2.17 KB
/
.rootlogon.C
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
// Ensure fmt is loaded
R__LOAD_LIBRARY(libfmt);
//
// top-level include-dir
gROOT->ProcessLine(".include include");
// setup a local build directory so we don't polute our source code with
// ROOT dictionaries etc. if desired
const char* build_dir = gSystem->Getenv("ROOT_BUILD_DIR");
if (build_dir) {
gSystem->SetBuildDir(build_dir);
}
// style definition based off the ATLAS style
TStyle* s = gStyle;
// use plain black on white colors
Int_t icol = 0; // WHITE
s->SetFrameBorderMode(icol);
s->SetFrameFillColor(icol);
s->SetCanvasBorderMode(icol);
s->SetCanvasColor(icol);
s->SetPadBorderMode(icol);
s->SetPadColor(icol);
s->SetStatColor(icol);
// s->SetFillColor(icol); // don't use: white fill color flor *all*
// objects
// set the paper & margin sizes
s->SetPaperSize(TStyle::kUSLetter);
s->SetPaperSize(20, 26);
// set margin sizes
s->SetPadTopMargin(0.05);
s->SetPadRightMargin(0.05);
s->SetPadBottomMargin(0.15);
s->SetPadLeftMargin(0.12);
// set title offsets (for axis label)
s->SetTitleXOffset(1.3);
s->SetTitleYOffset(1.1);
// use large fonts
// Int_t font=72; // Helvetica italics
Int_t font = 43; // Helvetica
Double_t tsize = 26;
s->SetTextFont(font);
s->SetTextSize(tsize);
s->SetLabelFont(font, "x");
s->SetTitleFont(font, "x");
s->SetLabelFont(font, "y");
s->SetTitleFont(font, "y");
s->SetLabelFont(font, "z");
s->SetTitleFont(font, "z");
s->SetLabelSize(tsize, "x");
s->SetTitleSize(tsize, "x");
s->SetLabelSize(tsize, "y");
s->SetTitleSize(tsize, "y");
s->SetLabelSize(tsize, "z");
s->SetTitleSize(tsize, "z");
// use bold lines and markers
s->SetMarkerStyle(20);
s->SetMarkerSize(1.2);
s->SetHistLineWidth(2.);
s->SetLineStyleString(2, "[12 12]"); // postscript dashes
// get rid of X error bars and y error bar caps
// s->SetErrorX(0.001);
// do not display any of the standard histogram decorations
s->SetOptTitle(0);
// s->SetOptStat(1111);
s->SetOptStat(0);
// s->SetOptFit(1111);
s->SetOptFit(0);
// put tick marks on top and RHS of plots
s->SetPadTickX(1);
s->SetPadTickY(1);
// lower amount of y-ticks
s->SetNdivisions(505, "Y");
}