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);
45 spblue->SetLineColor(4);
46 spblue->SetLineWidth(2);
49 sgr1->SetLineWidth(1);
50 sgr1->SetLineColor(1);
53 sgr2->SetLineWidth(1);
54 sgr2->SetLineColor(1);
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() );
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);
96 gPad->SaveAs( eps.c_str() );
102 gPad->SaveAs( png.c_str() );
static void FormatHisto(TH1 *h, const Style *s)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static void FormatPad(TPad *pad, bool grid=true, bool logx=false, bool logy=false)
static void SavePlot(const char *name, const char *dir)