Go to the documentation of this file.
11 #include <RtypesCore.h>
12 #include <TAttMarker.h>
32 static Int_t
Color(Int_t colorIndex) {
33 static const Int_t nofColors = 15;
34 static Int_t colors[nofColors] = {kRed,
49 return (colorIndex < nofColors) ? colors[colorIndex] : colorIndex;
54 static Int_t
LineStyle(Int_t lineStyleIndex) {
return lineStyleIndex + 1; }
59 static const Int_t nofMarkers = 8;
60 static Int_t markers[nofMarkers] = {kOpenCircle,
67 return (markerIndex < nofMarkers) ? markers[markerIndex] : markerIndex;
105 const std::string& drawOpt =
"",
125 const std::string& drawOpt =
"COLZ");
142 void DrawH1(
const std::vector<TH1*>& histos,
143 const std::vector<std::string>& histLabels,
146 Bool_t drawLegend =
true,
151 const std::string& drawOpt =
"");
169 const std::string& drawOpt =
"AC",
190 const std::vector<std::string>& graphLabels,
193 Bool_t drawLegend =
true,
212 const std::string& drawOpt =
"colz");
240 Bool_t drawResults =
true,
241 Bool_t doScale =
true,
242 Double_t userRangeMin = 0.,
243 Double_t userRangeMax = 0.);
256 Bool_t doGaussFit =
false,
257 Bool_t drawOnlyMean =
false,
258 const std::string& drawOpt =
"COLZ",
259 Int_t profileColor = kBlack,
260 Int_t profileLineWidth = 4);
272 Bool_t drawMean =
true,
273 Bool_t doGaussFit =
false,
274 Double_t zUserRangeMin = 0.,
275 Double_t zUserRangeMax = 0.);
void SetDefaultDrawStyle()
TH2D * DrawH3Profile(TH3 *h, Bool_t drawMean=true, Bool_t doGaussFit=false, Double_t zUserRangeMin=0., Double_t zUserRangeMax=0.)
HistScale
Define linear or logarithmic scale for drawing.
void DrawTextOnPad(const std::string &text, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void DrawH1(TH1 *hist, HistScale logx=kLinear, HistScale logy=kLinear, const std::string &drawOpt="", Int_t color=CbmDrawingOptions::Color(0), Int_t lineWidth=CbmDrawingOptions::LineWidth(), Int_t lineStyle=CbmDrawingOptions::LineStyle(0), Int_t markerSize=CbmDrawingOptions::MarkerSize(), Int_t markerStyle=CbmDrawingOptions::MarkerStyle(0))
static Int_t MarkerSize()
static Int_t MarkerStyle(Int_t markerIndex)
Data class with information on a STS local track.
Default options for drawing.
void DrawH2WithProfile(TH2 *hist, Bool_t doGaussFit=false, Bool_t drawOnlyMean=false, const std::string &drawOpt="COLZ", Int_t profileColor=kBlack, Int_t profileLineWidth=4)
static Int_t LineStyle(Int_t lineStyleIndex)
void DrawGraph(TGraph *graph, HistScale logx=kLinear, HistScale logy=kLinear, const std::string &drawOpt="AC", Int_t color=CbmDrawingOptions::Color(0), Int_t lineWidth=CbmDrawingOptions::LineWidth(), Int_t lineStyle=CbmDrawingOptions::LineStyle(0), Int_t markerSize=CbmDrawingOptions::MarkerSize(), Int_t markerStyle=CbmDrawingOptions::MarkerStyle(0))
void DrawGraph2D(TGraph2D *graph, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const std::string &drawOpt="colz")
static Double_t TextSize()
void DrawH2(TH2 *hist, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const std::string &drawOpt="COLZ")
void DrawH1andFitGauss(TH1 *hist, Bool_t drawResults=true, Bool_t doScale=true, Double_t userRangeMin=0., Double_t userRangeMax=0.)
static Int_t Color(Int_t colorIndex)