34 static Int_t
Color(Int_t colorIndex) {
35 static const Int_t nofColors = 6;
36 static Int_t colors[nofColors] = {kRed, kBlue + 1, kGreen + 3, kMagenta + 4, kYellow + 2, kViolet};
37 return (colorIndex < nofColors) ? colors[colorIndex] : colorIndex;
45 return lineStyleIndex + 1;
53 static const Int_t nofMarkers = 4;
56 static Int_t markers[nofMarkers] = {kFullCircle, kFullSquare, kFullTriangleUp, kFullDiamond};
57 return (markerIndex < nofMarkers) ? markers[markerIndex] : markerIndex;
98 const string& drawOpt =
"",
104 Int_t fillColor = -1);
120 const string& drawOpt =
"COLZ");
138 const vector<TH1*>& histos,
139 const vector<string>& histLabels,
142 Bool_t drawLegend =
true,
147 const string& drawOpt =
"", Bool_t outputMeanValue01 = kFALSE);
166 const string& drawOpt =
"AC",
187 const vector<TGraph*>& graphs,
188 const vector<string>& graphLabels,
191 Bool_t drawLegend =
true,
211 const string& drawOpt =
"colz");
Default options for drawing.
static Int_t LineStyle(Int_t lineStyleIndex)
static Double_t TextSize()
static Int_t Color(Int_t colorIndex)
static Int_t MarkerStyle(Int_t markerIndex)
static Float_t MarkerSize()
void DrawGraph2D(TGraph2D *graph, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const string &drawOpt="colz")
void SetDefaultDrawStyle()
void DrawH2(TH2 *hist, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const string &drawOpt="COLZ")
void DrawGraph(TGraph *graph, HistScale logx=kLinear, HistScale logy=kLinear, const string &drawOpt="AC", Int_t color=BmnDrawingOptions::Color(0), Int_t lineWidth=BmnDrawingOptions::LineWidth(), Int_t lineStyle=BmnDrawingOptions::LineStyle(0), Int_t markerSize=BmnDrawingOptions::MarkerSize(), Int_t markerStyle=BmnDrawingOptions::MarkerStyle(0))
void DrawH1(TH1 *hist, HistScale logx=kLinear, HistScale logy=kLinear, const string &drawOpt="", Int_t color=BmnDrawingOptions::Color(0), Int_t lineWidth=BmnDrawingOptions::LineWidth(), Int_t lineStyle=BmnDrawingOptions::LineStyle(0), Float_t markerSize=BmnDrawingOptions::MarkerSize(), Int_t markerStyle=BmnDrawingOptions::MarkerStyle(0), Int_t fillColor=-1)
void DrawMeanLine(TH1 *hist)
HistScale
Define linear or logarithmic scale for drawing.