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