#include <NicePlot.h>
Public Member Functions | |
Styles () | |
Static Public Member Functions | |
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) |
Public Attributes | |
Style * | s1 |
Style * | s2 |
Style * | sback |
Style * | sg1 |
Style * | sgr1 |
Style * | sgr2 |
Style * | spblue |
Style * | spred |
Definition at line 11 of file NicePlot.h.
Styles::Styles | ( | ) |
Definition at line 11 of file NicePlot.cc.
References indexGen::s2.
{ gROOT->SetStyle("Plain"); gStyle->SetPalette(1); gStyle->SetHistMinimumZero(kTRUE); s1 = new Style(); s1->SetLineWidth(2); s1->SetLineColor(1); s2 = new Style(); s2->SetLineWidth(2); s2->SetLineColor(4); sg1 = new Style(); sg1->SetMarkerColor(4); sg1->SetLineColor(4); sg1->SetLineWidth(2); sg1->SetMarkerStyle(21); sback = new Style(); sback->SetFillStyle(1001); sback->SetFillColor(5); spred = new Style(); spred->SetLineColor(2); spred->SetLineWidth(2); spred->SetFillStyle(1001); spred->SetFillColor(kRed-8); spblue = new Style(); spblue->SetLineColor(4); spblue->SetLineWidth(2); sgr1 = new Style(); sgr1->SetLineWidth(1); sgr1->SetLineColor(1); sgr2 = new Style(); sgr2->SetLineWidth(1); sgr2->SetLineColor(1); }
void Styles::FormatHisto | ( | TH1 * | h, |
const Style * | s | ||
) | [static] |
Definition at line 58 of file NicePlot.cc.
Referenced by Comparator::Draw().
{ // h->SetStats(0); h->SetTitle("CMS Preliminary"); h->GetYaxis()->SetTitleSize(0.06); h->GetYaxis()->SetTitleOffset(1.2); h->GetXaxis()->SetTitleSize(0.06); h->GetYaxis()->SetLabelSize(0.045); h->GetXaxis()->SetLabelSize(0.045); h->SetLineWidth( s->GetLineWidth() ); h->SetLineColor( s->GetLineColor() ); h->SetFillStyle( s->GetFillStyle() ); 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.
{ pad->SetGridx(grid); pad->SetGridy(grid); if (logx) pad->SetLogx(); if (logy) pad->SetLogy(); pad->SetBottomMargin(0.14); pad->SetLeftMargin(0.15); pad->SetRightMargin(0.05); pad->Modified(); pad->Update(); }
void Styles::SavePlot | ( | const char * | name, |
const char * | dir | ||
) | [static] |
Definition at line 91 of file NicePlot.cc.
References dir, and mergeVDriftHistosByStation::name.
Definition at line 13 of file NicePlot.h.
Definition at line 14 of file NicePlot.h.
Definition at line 16 of file NicePlot.h.
Definition at line 15 of file NicePlot.h.
Definition at line 19 of file NicePlot.h.
Definition at line 20 of file NicePlot.h.
Definition at line 18 of file NicePlot.h.
Definition at line 17 of file NicePlot.h.