#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 9 of file NicePlot.h.
Definition at line 9 of file NicePlot.cc.
References indexGen::s2.
10 gROOT->SetStyle(
"Plain");
11 gStyle->SetPalette(1);
12 gStyle->SetHistMinimumZero(kTRUE);
26 sg1->SetMarkerColor(4);
29 sg1->SetMarkerStyle(21);
32 sback->SetFillStyle(1001);
33 sback->SetFillColor(5);
36 spred->SetLineColor(2);
37 spred->SetLineWidth(2);
38 spred->SetFillStyle(1001);
39 spred->SetFillColor(kRed - 8);
46 sgr1->SetLineWidth(1);
47 sgr1->SetLineColor(1);
50 sgr2->SetLineWidth(1);
51 sgr2->SetLineColor(1);
void Styles::FormatHisto |
( |
TH1 * |
h, |
|
|
const Style * |
s |
|
) |
| |
|
static |
Definition at line 54 of file NicePlot.cc.
Referenced by Comparator::Draw().
56 h->SetTitle(
"CMS Preliminary");
58 h->GetYaxis()->SetTitleSize(0.06);
59 h->GetYaxis()->SetTitleOffset(1.2);
60 h->GetXaxis()->SetTitleSize(0.06);
61 h->GetYaxis()->SetLabelSize(0.045);
62 h->GetXaxis()->SetLabelSize(0.045);
64 h->SetLineWidth(s->GetLineWidth());
65 h->SetLineColor(s->GetLineColor());
66 h->SetFillStyle(s->GetFillStyle());
67 h->SetFillColor(s->GetFillColor());
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void Styles::FormatPad |
( |
TPad * |
pad, |
|
|
bool |
grid = true , |
|
|
bool |
logx = false , |
|
|
bool |
logy = false |
|
) |
| |
|
static |
Definition at line 70 of file NicePlot.cc.
79 pad->SetBottomMargin(0.14);
80 pad->SetLeftMargin(0.15);
81 pad->SetRightMargin(0.05);
void Styles::SavePlot |
( |
const char * |
name, |
|
|
const char * |
dir |
|
) |
| |
|
static |