75 Double_t lhcbWidth = 2.00;
77 Double_t lhcbTSize = 0.06;
80 gROOT->SetStyle(
"Plain");
81 TStyle *lhcbStyle=
new TStyle(
"lhcbStyle",
"LHCb plots style");
85 lhcbStyle->SetFillColor(1);
86 lhcbStyle->SetFillStyle(1001);
87 lhcbStyle->SetFrameFillColor(0);
88 lhcbStyle->SetFrameBorderMode(0);
89 lhcbStyle->SetPadBorderMode(0);
90 lhcbStyle->SetPadColor(0);
91 lhcbStyle->SetCanvasBorderMode(0);
92 lhcbStyle->SetCanvasColor(0);
93 lhcbStyle->SetStatColor(0);
94 lhcbStyle->SetLegendBorderSize(0);
97 lhcbStyle->SetPalette(1);
99 int colors[8] = {0,5,7,3,6,2,4,1};
100 lhcbStyle->SetPalette(8,colors);
102 const Int_t NRGBs = 5;
103 const Int_t NCont = 255;
105 Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
106 Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
107 Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
108 Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
109 TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
110 lhcbStyle->SetNumberContours(NCont);
113 lhcbStyle->SetPaperSize(20,26);
114 lhcbStyle->SetPadTopMargin(0.05);
115 lhcbStyle->SetPadRightMargin(0.10);
116 lhcbStyle->SetPadBottomMargin(0.16);
117 lhcbStyle->SetPadLeftMargin(0.14);
120 lhcbStyle->SetTextFont(lhcbFont);
121 lhcbStyle->SetTextSize(lhcbTSize);
122 lhcbStyle->SetLabelFont(lhcbFont,
"x");
123 lhcbStyle->SetLabelFont(lhcbFont,
"y");
124 lhcbStyle->SetLabelFont(lhcbFont,
"z");
125 lhcbStyle->SetLabelSize(lhcbTSize,
"x");
126 lhcbStyle->SetLabelSize(lhcbTSize,
"y");
127 lhcbStyle->SetLabelSize(lhcbTSize,
"z");
128 lhcbStyle->SetTitleFont(lhcbFont);
129 lhcbStyle->SetTitleFont(lhcbFont,
"x");
130 lhcbStyle->SetTitleFont(lhcbFont,
"y");
131 lhcbStyle->SetTitleFont(lhcbFont,
"z");
132 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"x");
133 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"y");
134 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"z");
137 lhcbStyle->SetLineWidth(lhcbWidth);
138 lhcbStyle->SetFrameLineWidth(lhcbWidth);
139 lhcbStyle->SetHistLineWidth(lhcbWidth);
140 lhcbStyle->SetFuncWidth(lhcbWidth);
141 lhcbStyle->SetGridWidth(lhcbWidth);
142 lhcbStyle->SetLineStyleString(2,
"[12 12]");
143 lhcbStyle->SetMarkerStyle(20);
144 lhcbStyle->SetMarkerSize(1.0);
147 lhcbStyle->SetLabelOffset(0.010,
"X");
148 lhcbStyle->SetLabelOffset(0.010,
"Y");
151 lhcbStyle->SetOptStat(0);
154 lhcbStyle->SetStatFormat(
"6.3g");
155 lhcbStyle->SetOptTitle(0);
156 lhcbStyle->SetOptFit(0);
159 lhcbStyle->SetTitleOffset(0.95,
"X");
160 lhcbStyle->SetTitleOffset(0.95,
"Y");
161 lhcbStyle->SetTitleOffset(1.2,
"Z");
162 lhcbStyle->SetTitleFillColor(0);
163 lhcbStyle->SetTitleStyle(0);
164 lhcbStyle->SetTitleBorderSize(0);
165 lhcbStyle->SetTitleFont(lhcbFont,
"title");
166 lhcbStyle->SetTitleX(0.0);
167 lhcbStyle->SetTitleY(1.0);
168 lhcbStyle->SetTitleW(1.0);
169 lhcbStyle->SetTitleH(0.05);
172 lhcbStyle->SetStatBorderSize(0);
173 lhcbStyle->SetStatFont(lhcbFont);
174 lhcbStyle->SetStatFontSize(0.05);
175 lhcbStyle->SetStatX(0.9);
176 lhcbStyle->SetStatY(0.9);
177 lhcbStyle->SetStatW(0.25);
178 lhcbStyle->SetStatH(0.15);
181 lhcbStyle->SetPadTickX(1);
182 lhcbStyle->SetPadTickY(1);
185 lhcbStyle->SetNdivisions(505,
"x");
186 lhcbStyle->SetNdivisions(510,
"y");
188 gROOT->SetStyle(
"lhcbStyle");
192 TPaveText* lhcbName =
new TPaveText(gStyle->GetPadLeftMargin() + 0.05,
193 0.87 - gStyle->GetPadTopMargin(),
194 gStyle->GetPadLeftMargin() + 0.20,
195 0.95 - gStyle->GetPadTopMargin(),
197 lhcbName->AddText(
"LHCb");
198 lhcbName->SetFillColor(0);
199 lhcbName->SetTextAlign(12);
200 lhcbName->SetBorderSize(0);
202 TPaveText* PrelimName =
new TPaveText(gStyle->GetPadLeftMargin() + 0.05,
203 0.78 - gStyle->GetPadTopMargin(),
204 gStyle->GetPadLeftMargin() + 0.20,
205 0.87 - gStyle->GetPadTopMargin(),
207 PrelimName->AddText(
"Preliminary");
208 PrelimName->SetFillColor(0);
209 PrelimName->SetTextAlign(12);
210 PrelimName->SetBorderSize(0);
212 TText *lhcbLabel =
new TText();
213 lhcbLabel->SetTextFont(lhcbFont);
214 lhcbLabel->SetTextColor(1);
215 lhcbLabel->SetTextSize(lhcbTSize);
216 lhcbLabel->SetTextAlign(12);
218 TLatex *lhcbLatex =
new TLatex();
219 lhcbLatex->SetTextFont(lhcbFont);
220 lhcbLatex->SetTextColor(1);
221 lhcbLatex->SetTextSize(lhcbTSize);
222 lhcbLatex->SetTextAlign(12);
289 Int_t lhcbFont = 132;
291 Double_t lhcbWidth = 2.00;
293 Double_t lhcbTSize = 0.06;
296 gROOT->SetStyle(
"Plain");
297 TStyle *lhcbStyle=
new TStyle(
"lhcbStyle",
"LHCb plots style");
301 lhcbStyle->SetFillColor(1);
302 lhcbStyle->SetFillStyle(1001);
303 lhcbStyle->SetFrameFillColor(0);
304 lhcbStyle->SetFrameBorderMode(0);
305 lhcbStyle->SetPadBorderMode(0);
306 lhcbStyle->SetPadColor(0);
307 lhcbStyle->SetCanvasBorderMode(0);
308 lhcbStyle->SetCanvasColor(0);
309 lhcbStyle->SetStatColor(0);
310 lhcbStyle->SetLegendBorderSize(0);
313 lhcbStyle->SetPalette(1);
315 int colors[8] = {0,5,7,3,6,2,4,1};
316 lhcbStyle->SetPalette(8,colors);
318 const Int_t NRGBs = 5;
319 const Int_t NCont = 255;
321 Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
322 Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
323 Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
324 Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
325 TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
326 lhcbStyle->SetNumberContours(NCont);
329 lhcbStyle->SetPaperSize(20,26);
330 lhcbStyle->SetPadTopMargin(0.05);
331 lhcbStyle->SetPadRightMargin(0.10);
332 lhcbStyle->SetPadBottomMargin(0.16);
333 lhcbStyle->SetPadLeftMargin(0.14);
336 lhcbStyle->SetTextFont(lhcbFont);
337 lhcbStyle->SetTextSize(lhcbTSize);
338 lhcbStyle->SetLabelFont(lhcbFont,
"x");
339 lhcbStyle->SetLabelFont(lhcbFont,
"y");
340 lhcbStyle->SetLabelFont(lhcbFont,
"z");
341 lhcbStyle->SetLabelSize(lhcbTSize,
"x");
342 lhcbStyle->SetLabelSize(lhcbTSize,
"y");
343 lhcbStyle->SetLabelSize(lhcbTSize,
"z");
344 lhcbStyle->SetTitleFont(lhcbFont);
345 lhcbStyle->SetTitleFont(lhcbFont,
"x");
346 lhcbStyle->SetTitleFont(lhcbFont,
"y");
347 lhcbStyle->SetTitleFont(lhcbFont,
"z");
348 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"x");
349 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"y");
350 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"z");
353 lhcbStyle->SetLineWidth(lhcbWidth);
354 lhcbStyle->SetFrameLineWidth(lhcbWidth);
355 lhcbStyle->SetHistLineWidth(lhcbWidth);
356 lhcbStyle->SetFuncWidth(lhcbWidth);
357 lhcbStyle->SetGridWidth(lhcbWidth);
358 lhcbStyle->SetLineStyleString(2,
"[12 12]");
359 lhcbStyle->SetMarkerStyle(20);
360 lhcbStyle->SetMarkerSize(1.0);
363 lhcbStyle->SetLabelOffset(0.010,
"X");
364 lhcbStyle->SetLabelOffset(0.010,
"Y");
367 lhcbStyle->SetOptStat(0);
370 lhcbStyle->SetStatFormat(
"6.3g");
371 lhcbStyle->SetOptTitle(0);
372 lhcbStyle->SetOptFit(0);
375 lhcbStyle->SetTitleOffset(0.95,
"X");
376 lhcbStyle->SetTitleOffset(0.95,
"Y");
377 lhcbStyle->SetTitleOffset(1.2,
"Z");
378 lhcbStyle->SetTitleFillColor(0);
379 lhcbStyle->SetTitleStyle(0);
380 lhcbStyle->SetTitleBorderSize(0);
381 lhcbStyle->SetTitleFont(lhcbFont,
"title");
382 lhcbStyle->SetTitleX(0.0);
383 lhcbStyle->SetTitleY(1.0);
384 lhcbStyle->SetTitleW(1.0);
385 lhcbStyle->SetTitleH(0.05);
388 lhcbStyle->SetStatBorderSize(0);
389 lhcbStyle->SetStatFont(lhcbFont);
390 lhcbStyle->SetStatFontSize(0.05);
391 lhcbStyle->SetStatX(0.9);
392 lhcbStyle->SetStatY(0.9);
393 lhcbStyle->SetStatW(0.25);
394 lhcbStyle->SetStatH(0.15);
397 lhcbStyle->SetPadTickX(1);
398 lhcbStyle->SetPadTickY(1);
401 lhcbStyle->SetNdivisions(505,
"x");
402 lhcbStyle->SetNdivisions(510,
"y");
408 TPaveText* lhcbName =
new TPaveText(gStyle->GetPadLeftMargin() + 0.05,
409 0.87 - gStyle->GetPadTopMargin(),
410 gStyle->GetPadLeftMargin() + 0.20,
411 0.95 - gStyle->GetPadTopMargin(),
413 lhcbName->AddText(
"LHCb");
414 lhcbName->SetFillColor(0);
415 lhcbName->SetTextAlign(12);
416 lhcbName->SetBorderSize(0);
418 TPaveText* PrelimName =
new TPaveText(gStyle->GetPadLeftMargin() + 0.05,
419 0.78 - gStyle->GetPadTopMargin(),
420 gStyle->GetPadLeftMargin() + 0.20,
421 0.87 - gStyle->GetPadTopMargin(),
423 PrelimName->AddText(
"Preliminary");
424 PrelimName->SetFillColor(0);
425 PrelimName->SetTextAlign(12);
426 PrelimName->SetBorderSize(0);
428 TText *lhcbLabel =
new TText();
429 lhcbLabel->SetTextFont(lhcbFont);
430 lhcbLabel->SetTextColor(1);
431 lhcbLabel->SetTextSize(lhcbTSize);
432 lhcbLabel->SetTextAlign(12);
434 TLatex *lhcbLatex =
new TLatex();
435 lhcbLatex->SetTextFont(lhcbFont);
436 lhcbLatex->SetTextColor(1);
437 lhcbLatex->SetTextSize(lhcbTSize);
438 lhcbLatex->SetTextAlign(12);