forked from UVa-Calvision/singlebar2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rootlogon.C
41 lines (31 loc) · 990 Bytes
/
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
// This is the file rootlogon.C
{
printf("\n Beginning new ROOT session\n");
TStyle *myStyle = new TStyle("MyStyle","My Root Styles");
// from ROOT plain style
myStyle->SetCanvasBorderMode(0);
myStyle->SetPadBorderMode(0);
myStyle->SetPadColor(0);
myStyle->SetCanvasColor(0);
myStyle->SetTitleColor(1);
myStyle->SetStatColor(0);
myStyle->SetLabelSize(0.03,"xyz"); // size of axis values
// default canvas positioning
myStyle->SetCanvasDefX(900);
myStyle->SetCanvasDefY(20);
myStyle->SetCanvasDefH(550);
myStyle->SetCanvasDefW(540);
myStyle->SetPadBottomMargin(0.1);
myStyle->SetPadTopMargin(0.1);
myStyle->SetPadLeftMargin(0.1);
myStyle->SetPadRightMargin(0.1);
myStyle->SetPadTickX(1);
myStyle->SetPadTickY(1);
myStyle->SetFrameBorderMode(0);
myStyle->SetOptStat(111111);
myStyle->SetMarkerStyle(21);
myStyle->SetMarkerSize(0.6);
myStyle->SetMarkerColor(kBlue);
gROOT->SetStyle("MyStyle");
gROOT->ForceStyle("MyStyle");
}