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);