1 |
|
#include "TStyle.h" |
2 |
|
|
3 |
< |
void setTDRStyle() { |
3 |
> |
void setTDRStyle(bool fatline=true) { |
4 |
> |
int standardlinewidth=1; |
5 |
> |
if(fatline) standardlinewidth=2; |
6 |
|
TStyle *tdrStyle = new TStyle("tdrStyle","Style for P-TDR"); |
7 |
|
|
8 |
|
// For the canvas: |
37 |
|
// tdrStyle->SetHistFillStyle(0); |
38 |
|
tdrStyle->SetHistLineColor(1); |
39 |
|
tdrStyle->SetHistLineStyle(0); |
40 |
< |
tdrStyle->SetHistLineWidth(2); |
40 |
> |
tdrStyle->SetHistLineWidth(standardlinewidth); |
41 |
|
// tdrStyle->SetLegoInnerR(Float_t rad = 0.5); |
42 |
|
// tdrStyle->SetNumberContours(Int_t number = 20); |
43 |
|
|
52 |
|
tdrStyle->SetFitFormat("5.4g"); |
53 |
|
tdrStyle->SetFuncColor(2); |
54 |
|
tdrStyle->SetFuncStyle(1); |
55 |
< |
tdrStyle->SetFuncWidth(2); |
55 |
> |
tdrStyle->SetFuncWidth(standardlinewidth); |
56 |
|
|
57 |
|
//For the date: |
58 |
|
tdrStyle->SetOptDate(0); |