ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/RootMacros/rootlogon.C
Revision: 1.3
Committed: Thu Mar 11 07:13:25 2010 UTC (15 years, 2 months ago) by chawon
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -10 lines
Log Message:
Removed a little

File Contents

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