File indexing completed on 2024-04-06 11:56:22
0001 #include "TStyle.h"
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 void setTDRStyle()
0017 {
0018 TStyle *tdrStyle = new TStyle("tdrStyle", "Style for P-TDR");
0019
0020
0021 tdrStyle->SetCanvasBorderMode(0);
0022 tdrStyle->SetCanvasColor(kWhite);
0023 tdrStyle->SetCanvasDefH(550);
0024 tdrStyle->SetCanvasDefW(550);
0025 tdrStyle->SetCanvasDefX(0);
0026 tdrStyle->SetCanvasDefY(0);
0027
0028
0029 tdrStyle->SetPadBorderMode(0);
0030
0031 tdrStyle->SetPadColor(kWhite);
0032 tdrStyle->SetPadGridX(false);
0033 tdrStyle->SetPadGridY(false);
0034 tdrStyle->SetGridColor(0);
0035 tdrStyle->SetGridStyle(3);
0036 tdrStyle->SetGridWidth(1);
0037
0038
0039 tdrStyle->SetFrameBorderMode(0);
0040 tdrStyle->SetFrameBorderSize(1);
0041 tdrStyle->SetFrameFillColor(0);
0042 tdrStyle->SetFrameFillStyle(0);
0043 tdrStyle->SetFrameLineColor(1);
0044 tdrStyle->SetFrameLineStyle(1);
0045 tdrStyle->SetFrameLineWidth(1);
0046
0047
0048 tdrStyle->SetHistFillColor(0);
0049 tdrStyle->SetHistFillStyle(0);
0050 tdrStyle->SetHistLineColor(1);
0051 tdrStyle->SetHistLineStyle(0);
0052 tdrStyle->SetHistLineWidth(1);
0053
0054
0055
0056 tdrStyle->SetEndErrorSize(2);
0057
0058 tdrStyle->SetErrorX(0.);
0059
0060 tdrStyle->SetMarkerStyle(20);
0061
0062
0063 tdrStyle->SetOptFit(1);
0064 tdrStyle->SetFitFormat("5.4g");
0065 tdrStyle->SetFuncColor(2);
0066 tdrStyle->SetFuncStyle(1);
0067 tdrStyle->SetFuncWidth(1);
0068
0069
0070 tdrStyle->SetOptDate(0);
0071
0072
0073
0074
0075 tdrStyle->SetOptFile(0);
0076 tdrStyle->SetOptStat(0);
0077 tdrStyle->SetStatColor(kWhite);
0078 tdrStyle->SetStatFont(42);
0079 tdrStyle->SetStatFontSize(0.025);
0080 tdrStyle->SetStatTextColor(1);
0081 tdrStyle->SetStatFormat("6.4g");
0082 tdrStyle->SetStatBorderSize(1);
0083 tdrStyle->SetStatH(0.1);
0084 tdrStyle->SetStatW(0.15);
0085
0086
0087
0088
0089
0090 tdrStyle->SetPadTopMargin(0.07);
0091 tdrStyle->SetPadBottomMargin(0.17);
0092 tdrStyle->SetPadLeftMargin(0.15);
0093 tdrStyle->SetPadRightMargin(0.05);
0094
0095
0096 tdrStyle->SetOptTitle(0);
0097 tdrStyle->SetTitleFont(42);
0098 tdrStyle->SetTitleColor(1);
0099 tdrStyle->SetTitleTextColor(1);
0100 tdrStyle->SetTitleFillColor(10);
0101 tdrStyle->SetTitleFontSize(0.05);
0102
0103
0104
0105
0106
0107 tdrStyle->SetTitleBorderSize(0);
0108
0109
0110 tdrStyle->SetTitleColor(1, "XYZ");
0111 tdrStyle->SetTitleFont(42, "XYZ");
0112 tdrStyle->SetTitleSize(0.06, "XYZ");
0113
0114
0115 tdrStyle->SetTitleXOffset(1);
0116 tdrStyle->SetTitleYOffset(1.1);
0117
0118
0119
0120 tdrStyle->SetLabelColor(1, "XYZ");
0121 tdrStyle->SetLabelFont(42, "XYZ");
0122 tdrStyle->SetLabelOffset(0.007, "XYZ");
0123 tdrStyle->SetLabelSize(0.05, "XYZ");
0124
0125
0126 tdrStyle->SetAxisColor(1, "XYZ");
0127 tdrStyle->SetStripDecimals(kTRUE);
0128 tdrStyle->SetTickLength(0.03, "XYZ");
0129 tdrStyle->SetNdivisions(510, "XYZ");
0130 tdrStyle->SetPadTickX(1);
0131 tdrStyle->SetPadTickY(1);
0132
0133
0134 tdrStyle->SetOptLogx(0);
0135 tdrStyle->SetOptLogy(0);
0136 tdrStyle->SetOptLogz(0);
0137
0138
0139 tdrStyle->SetPaperSize(20., 20.);
0140
0141
0142
0143
0144
0145
0146
0147
0148
0149
0150
0151
0152 tdrStyle->cd();
0153 }