#include <NicePlot.h>
|
static void | FormatHisto (TH1 *h, const Style *s) |
|
static void | FormatPad (TPad *pad, bool grid=true, bool logx=false, bool logy=false) |
|
static void | SavePlot (const char *name, const char *dir) |
|
Definition at line 11 of file NicePlot.h.
Definition at line 11 of file NicePlot.cc.
References indexGen::s2.
13 gROOT->SetStyle(
"Plain");
14 gStyle->SetPalette(1);
15 gStyle->SetHistMinimumZero(kTRUE);
29 sg1->SetMarkerColor(4);
32 sg1->SetMarkerStyle(21);
35 sback->SetFillStyle(1001);
36 sback->SetFillColor(5);
39 spred->SetLineColor(2);
40 spred->SetLineWidth(2);
41 spred->SetFillStyle(1001);
42 spred->SetFillColor(kRed-8);
49 sgr1->SetLineWidth(1);
50 sgr1->SetLineColor(1);
53 sgr2->SetLineWidth(1);
54 sgr2->SetLineColor(1);
void Styles::FormatHisto |
( |
TH1 * |
h, |
|
|
const Style * |
s |
|
) |
| |
|
static |
Definition at line 58 of file NicePlot.cc.
Referenced by Comparator::Draw().
60 h->SetTitle(
"CMS Preliminary");
62 h->GetYaxis()->SetTitleSize(0.06);
63 h->GetYaxis()->SetTitleOffset(1.2);
64 h->GetXaxis()->SetTitleSize(0.06);
65 h->GetYaxis()->SetLabelSize(0.045);
66 h->GetXaxis()->SetLabelSize(0.045);
68 h->SetLineWidth( s->GetLineWidth() );
69 h->SetLineColor( s->GetLineColor() );
70 h->SetFillStyle( s->GetFillStyle() );
71 h->SetFillColor( s->GetFillColor() );
void Styles::FormatPad |
( |
TPad * |
pad, |
|
|
bool |
grid = true , |
|
|
bool |
logx = false , |
|
|
bool |
logy = false |
|
) |
| |
|
static |
Definition at line 74 of file NicePlot.cc.
80 if (logx) pad->SetLogx();
81 if (logy) pad->SetLogy();
83 pad->SetBottomMargin(0.14);
84 pad->SetLeftMargin(0.15);
85 pad->SetRightMargin(0.05);
void Styles::SavePlot |
( |
const char * |
name, |
|
|
const char * |
dir |
|
) |
| |
|
static |