1 |
{
|
2 |
//cout << endl << "Welcome to my rootlogon.C" << endl;
|
3 |
//cout << "For approved plots use: gROOT->SetStyle(\"BABAR\");"
|
4 |
//cout << "For approved plots use: gROOT->SetStyle(\"RENO\");"
|
5 |
//<< endl << endl;
|
6 |
|
7 |
//..BABAR style from RooLogon.C in workdir
|
8 |
//TStyle *babarStyle= new TStyle("BABAR","BaBar approved plots style");
|
9 |
//RENO style
|
10 |
|
11 |
gSystem->Load("libFWCoreFWLite.so");
|
12 |
AutoLibraryLoader::enable();
|
13 |
|
14 |
|
15 |
TStyle *gStyle= new TStyle("RENO","Reno approved plots style");
|
16 |
|
17 |
// use plain black on white colors
|
18 |
gStyle->SetFrameBorderMode(0);
|
19 |
gStyle->SetCanvasBorderMode(0);
|
20 |
gStyle->SetPadBorderMode(0);
|
21 |
gStyle->SetPadColor(0);
|
22 |
gStyle->SetCanvasColor(0);
|
23 |
gStyle->SetStatColor(0);
|
24 |
gStyle->SetFillColor(0);
|
25 |
|
26 |
// set the paper & margin sizes
|
27 |
gStyle->SetPaperSize(20,26);
|
28 |
gStyle->SetPadTopMargin(0.05);
|
29 |
gStyle->SetPadRightMargin(0.05);
|
30 |
gStyle->SetPadBottomMargin(0.16);
|
31 |
gStyle->SetPadLeftMargin(0.12);
|
32 |
|
33 |
// use large Times-Roman fonts
|
34 |
gStyle->SetTextFont(132);
|
35 |
gStyle->SetTextSize(0.08);
|
36 |
gStyle->SetLabelFont(132,"x");
|
37 |
gStyle->SetLabelFont(132,"y");
|
38 |
gStyle->SetLabelFont(132,"z");
|
39 |
gStyle->SetLabelSize(0.05,"x");
|
40 |
gStyle->SetTitleSize(0.06,"x");
|
41 |
gStyle->SetLabelSize(0.05,"y");
|
42 |
gStyle->SetTitleSize(0.06,"y");
|
43 |
gStyle->SetLabelSize(0.05,"z");
|
44 |
gStyle->SetTitleSize(0.06,"z");
|
45 |
|
46 |
// use bold lines and markers
|
47 |
gStyle->SetMarkerStyle(20);
|
48 |
gStyle->SetHistLineWidth(1.85);
|
49 |
//gStyle->SetHistLineWidth(3.85);
|
50 |
gStyle->SetLineStyleString(2,"[12 12]"); // postscript dashes
|
51 |
|
52 |
// get rid of X error bars and y error bar caps
|
53 |
gStyle->SetErrorX(0.001);
|
54 |
|
55 |
// do not display any of the standard histogram decorations
|
56 |
gStyle->SetOptTitle(0);
|
57 |
gStyle->SetOptStat(0);
|
58 |
gStyle->SetOptFit(0);
|
59 |
|
60 |
// put tick marks on top and RHS of plots
|
61 |
gStyle->SetPadTickX(1);
|
62 |
gStyle->SetPadTickY(1);
|
63 |
|
64 |
gROOT->SetStyle("Plain");
|
65 |
//gStyle->SetOptStat(1100);
|
66 |
gStyle->SetOptStat(1);
|
67 |
gStyle->SetOptFit(1111);
|
68 |
gStyle->SetPadTickX(1);
|
69 |
gStyle->SetPadTickY(1);
|
70 |
}
|