/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/MillePedeAlignmentAlgorithm/macros/setGStyle.C
101 строка
3 KB
Matthias Schroeder
Add some steering scripts for pede param plots
21 июн 2015, 20:35
21 июн 2015, 20:35
45f95dd
Код
Авторство
О чём код?
#include "TStyle.h" void setGStyle() { // Zero horizontal error bars gStyle->SetErrorX(0); // For the canvas gStyle->SetCanvasBorderMode(0); gStyle->SetCanvasColor(kWhite); gStyle->SetCanvasDefH(800); //Height of canvas gStyle->SetCanvasDefW(800); //Width of canvas gStyle->SetCanvasDefX(0); //Position on screen gStyle->SetCanvasDefY(0); // For the frame gStyle->SetFrameBorderMode(0); gStyle->SetFrameBorderSize(1); gStyle->SetFrameFillColor(kBlack); gStyle->SetFrameFillStyle(0); gStyle->SetFrameLineColor(kBlack); gStyle->SetFrameLineStyle(0); gStyle->SetFrameLineWidth(1); // For the Pad gStyle->SetPadBorderMode(0); gStyle->SetPadColor(kWhite); gStyle->SetPadGridX(false); gStyle->SetPadGridY(false); gStyle->SetGridColor(0); gStyle->SetGridStyle(3); gStyle->SetGridWidth(1); // Margins gStyle->SetPadTopMargin(0.08); gStyle->SetPadBottomMargin(0.15); gStyle->SetPadLeftMargin(0.19); gStyle->SetPadRightMargin(0.04); // For the histo: gStyle->SetHistLineColor(kBlack); gStyle->SetHistLineStyle(0); gStyle->SetHistLineWidth(2); gStyle->SetMarkerSize(1.4); gStyle->SetEndErrorSize(4); gStyle->SetOptStat("MR"); gStyle->SetStatColor(kWhite); gStyle->SetStatFont(42); gStyle->SetStatFontSize(0.03); gStyle->SetStatTextColor(1); gStyle->SetStatFormat("6.4g"); gStyle->SetStatBorderSize(1); gStyle->SetStatX(0.94); gStyle->SetStatY(0.90); gStyle->SetStatH(0.10); gStyle->SetStatW(0.22); // For the Global title: gStyle->SetOptTitle(1); gStyle->SetTitleFont(42,""); gStyle->SetTitleColor(1); gStyle->SetTitleTextColor(1); gStyle->SetTitleFillColor(0); gStyle->SetTitleFontSize(0.1); gStyle->SetTitleAlign(13); gStyle->SetTitleX(0.00); gStyle->SetTitleH(0.05); gStyle->SetTitleBorderSize(0); gStyle->SetTitleX(0.23); // For the axis gStyle->SetAxisColor(1,"XYZ"); gStyle->SetTickLength(0.03,"XYZ"); gStyle->SetNdivisions(510,"XYZ"); gStyle->SetPadTickX(1); gStyle->SetPadTickY(1); gStyle->SetStripDecimals(kFALSE); // For the axis labels and titles gStyle->SetTitleColor(1,"XYZ"); gStyle->SetLabelColor(1,"XYZ"); // For the axis labels: gStyle->SetLabelFont(42,"XYZ"); gStyle->SetLabelOffset(0.007,"XYZ"); gStyle->SetLabelSize(0.045,"XYZ"); // For the axis titles: gStyle->SetTitleFont(42,"XYZ"); gStyle->SetTitleSize(0.06,"XYZ"); gStyle->SetTitleXOffset(1.0); gStyle->SetTitleYOffset(1.5); // For the legend gStyle->SetLegendBorderSize(0); // For the statistics box gStyle->SetStatFontSize(0.04); gStyle->SetStatX(0.92); gStyle->SetStatY(0.86); gStyle->SetStatH(0.2); gStyle->SetStatW(0.3); }