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