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);
42 spblue->SetLineColor(4);
43 spblue->SetLineWidth(2);
46 sgr1->SetLineWidth(1);
47 sgr1->SetLineColor(1);
50 sgr2->SetLineWidth(1);
51 sgr2->SetLineColor(1);
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());
79 pad->SetBottomMargin(0.14);
80 pad->SetLeftMargin(0.15);
81 pad->SetRightMargin(0.05);
91 gPad->SaveAs(eps.c_str());
97 gPad->SaveAs(png.c_str());
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)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.