-
Notifications
You must be signed in to change notification settings - Fork 0
/
RooLogon.C
72 lines (60 loc) · 2.32 KB
/
RooLogon.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
#include "TStyle.h"
void RooLogon() {
TStyle *vecbosStyle = new TStyle("vecbosStyle","Style for P-TDR");
// For the canvas:
vecbosStyle->SetCanvasBorderMode(0);
vecbosStyle->SetCanvasColor(kWhite);
vecbosStyle->SetCanvasDefH(600); //Height of canvas
vecbosStyle->SetCanvasDefW(600); //Width of canvas
vecbosStyle->SetCanvasDefX(0); //POsition on screen
vecbosStyle->SetCanvasDefY(0);
// For the Pad:
vecbosStyle->SetPadBorderMode(0);
// vecbosStyle->SetPadBorderSize(Width_t size = 1);
vecbosStyle->SetPadColor(kWhite);
vecbosStyle->SetPadGridX(false);
vecbosStyle->SetPadGridY(false);
vecbosStyle->SetGridColor(0);
vecbosStyle->SetGridStyle(3);
vecbosStyle->SetGridWidth(1);
// For the frame:
vecbosStyle->SetFrameBorderMode(0);
vecbosStyle->SetFrameBorderSize(1);
vecbosStyle->SetFrameFillColor(0);
vecbosStyle->SetFrameFillStyle(0);
vecbosStyle->SetFrameLineColor(1);
vecbosStyle->SetFrameLineStyle(1);
vecbosStyle->SetFrameLineWidth(1);
// set the paper & margin sizes
vecbosStyle->SetPaperSize(20,26);
vecbosStyle->SetPadTopMargin(0.05);
vecbosStyle->SetPadRightMargin(0.05);
vecbosStyle->SetPadBottomMargin(0.16);
vecbosStyle->SetPadLeftMargin(0.12);
// use large Times-Roman fonts
vecbosStyle->SetTitleFont(132,"xyz"); // set the all 3 axes title font
vecbosStyle->SetTitleFont(132," "); // set the pad title font
vecbosStyle->SetTitleSize(0.06,"xyz"); // set the 3 axes title size
vecbosStyle->SetTitleSize(0.06," "); // set the pad title size
vecbosStyle->SetLabelFont(132,"xyz");
vecbosStyle->SetLabelSize(0.05,"xyz");
vecbosStyle->SetTextFont(132);
vecbosStyle->SetTextSize(0.08);
vecbosStyle->SetStatFont(132);
// use bold lines and markers
vecbosStyle->SetMarkerStyle(8);
vecbosStyle->SetHistLineWidth(1.85);
vecbosStyle->SetLineStyleString(2,"[12 12]"); // postscript dashes
//..Get rid of X error bars
vecbosStyle->SetErrorX(0.001);
// do not display any of the standard histogram decorations
vecbosStyle->SetOptTitle(0);
vecbosStyle->SetOptStat(0);
vecbosStyle->SetOptFit(0);
// put tick marks on top and RHS of plots
vecbosStyle->SetPadTickX(1);
vecbosStyle->SetPadTickY(1);
vecbosStyle->cd();
gSystem->Load("libRooFit") ;
gSystem->Load("/afs/cern.ch/work/c/crovelli/Radion/CMSSW_5_3_6/src/MLFit/workdir/libMLFit.so") ;
}