125 Int_t lhcbFont = 132;
127 Double_t lhcbWidth = 2.00;
129 Double_t lhcbTSize = 0.06;
132 gROOT->SetStyle(
"Plain");
133 TStyle *lhcbStyle=
new TStyle(
"lhcbStyle",
"LHCb plots style");
137 lhcbStyle->SetFillColor(1);
138 lhcbStyle->SetFillStyle(1001);
139 lhcbStyle->SetFrameFillColor(0);
140 lhcbStyle->SetFrameBorderMode(0);
141 lhcbStyle->SetPadBorderMode(0);
142 lhcbStyle->SetPadColor(0);
143 lhcbStyle->SetCanvasBorderMode(0);
144 lhcbStyle->SetCanvasColor(0);
145 lhcbStyle->SetStatColor(0);
146 lhcbStyle->SetLegendBorderSize(0);
147 lhcbStyle->SetLegendFont(132);
150 lhcbStyle->SetPalette(1);
156 lhcbStyle->SetPaperSize(20,26);
157 lhcbStyle->SetPadTopMargin(0.05);
158 lhcbStyle->SetPadRightMargin(0.05);
159 lhcbStyle->SetPadBottomMargin(0.16);
160 lhcbStyle->SetPadLeftMargin(0.14);
163 lhcbStyle->SetTextFont(lhcbFont);
164 lhcbStyle->SetTextSize(lhcbTSize);
165 lhcbStyle->SetLabelFont(lhcbFont,
"x");
166 lhcbStyle->SetLabelFont(lhcbFont,
"y");
167 lhcbStyle->SetLabelFont(lhcbFont,
"z");
168 lhcbStyle->SetLabelSize(lhcbTSize,
"x");
169 lhcbStyle->SetLabelSize(lhcbTSize,
"y");
170 lhcbStyle->SetLabelSize(lhcbTSize,
"z");
171 lhcbStyle->SetTitleFont(lhcbFont);
172 lhcbStyle->SetTitleFont(lhcbFont,
"x");
173 lhcbStyle->SetTitleFont(lhcbFont,
"y");
174 lhcbStyle->SetTitleFont(lhcbFont,
"z");
175 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"x");
176 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"y");
177 lhcbStyle->SetTitleSize(1.2*lhcbTSize,
"z");
180 lhcbStyle->SetLineWidth(lhcbWidth);
181 lhcbStyle->SetFrameLineWidth(lhcbWidth);
182 lhcbStyle->SetHistLineWidth(lhcbWidth);
183 lhcbStyle->SetFuncWidth(lhcbWidth);
184 lhcbStyle->SetGridWidth(lhcbWidth);
185 lhcbStyle->SetLineStyleString(2,
"[12 12]");
187 lhcbStyle->SetMarkerStyle(8);
189 lhcbStyle->SetMarkerSize(0.5);
192 lhcbStyle->SetLabelOffset(0.010,
"X");
193 lhcbStyle->SetLabelOffset(0.010,
"Y");
196 lhcbStyle->SetOptStat(0);
199 lhcbStyle->SetStatFormat(
"6.3g");
200 lhcbStyle->SetOptTitle(0);
201 lhcbStyle->SetOptFit(0);
204 lhcbStyle->SetTitleOffset(0.95,
"X");
205 lhcbStyle->SetTitleOffset(0.95,
"Y");
206 lhcbStyle->SetTitleOffset(1.2,
"Z");
207 lhcbStyle->SetTitleFillColor(0);
208 lhcbStyle->SetTitleStyle(0);
209 lhcbStyle->SetTitleBorderSize(0);
210 lhcbStyle->SetTitleFont(lhcbFont,
"title");
211 lhcbStyle->SetTitleX(0.0);
212 lhcbStyle->SetTitleY(1.0);
213 lhcbStyle->SetTitleW(1.0);
214 lhcbStyle->SetTitleH(0.05);
217 lhcbStyle->SetStatBorderSize(0);
218 lhcbStyle->SetStatFont(lhcbFont);
219 lhcbStyle->SetStatFontSize(0.05);
220 lhcbStyle->SetStatX(0.9);
221 lhcbStyle->SetStatY(0.9);
222 lhcbStyle->SetStatW(0.25);
223 lhcbStyle->SetStatH(0.15);
226 lhcbStyle->SetPadTickX(1);
227 lhcbStyle->SetPadTickY(1);
230 lhcbStyle->SetNdivisions(505,
"x");
231 lhcbStyle->SetNdivisions(510,
"y");
233 gROOT->SetStyle(
"lhcbStyle");
237 TPaveText* lhcbName =
new TPaveText(gStyle->GetPadLeftMargin() + 0.05,
238 0.87 - gStyle->GetPadTopMargin(),
239 gStyle->GetPadLeftMargin() + 0.20,
240 0.95 - gStyle->GetPadTopMargin(),
242 lhcbName->AddText(
"LHCb");
243 lhcbName->SetFillColor(0);
244 lhcbName->SetTextAlign(12);
245 lhcbName->SetBorderSize(0);
247 TText *lhcbLabel =
new TText();
248 lhcbLabel->SetTextFont(lhcbFont);
249 lhcbLabel->SetTextColor(1);
250 lhcbLabel->SetTextSize(lhcbTSize);
251 lhcbLabel->SetTextAlign(12);
253 TLatex *lhcbLatex =
new TLatex();
254 lhcbLatex->SetTextFont(lhcbFont);
255 lhcbLatex->SetTextColor(1);
256 lhcbLatex->SetTextSize(lhcbTSize);
257 lhcbLatex->SetTextAlign(12);
259 std::cout <<
"-------------------------" << std::endl;
260 std::cout <<
"Set LHCb Style - Feb 2012" << std::endl;
261 std::cout <<
"-------------------------" << std::endl;