BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDrawHist.cxx File Reference
#include "BmnDrawHist.h"
#include "TGaxis.h"
#include "TGraph.h"
#include "TGraph2D.h"
#include "TH1.h"
#include "TH1D.h"
#include "TH2.h"
#include "TLegend.h"
#include "TMath.h"
#include "TPad.h"
#include "TStyle.h"
#include <cassert>
#include <iostream>
#include <limits>
#include <sstream>
#include <string>
Include dependency graph for BmnDrawHist.cxx:

Go to the source code of this file.

Functions

void SetDefaultDrawStyle ()
void DrawH1 (TH1 *hist, HistScale logx, HistScale logy, const string &drawOpt, Int_t lineColor, Int_t lineWidth, Int_t lineStyle, Float_t markerSize, Int_t markerStyle, Int_t fillColor)
void DrawH2 (TH2 *hist, HistScale logx, HistScale logy, HistScale logz, const string &drawOpt)
void DrawH1 (const vector< TH1 * > &histos, const vector< string > &histLabels, HistScale logx, HistScale logy, Bool_t drawLegend, Double_t x1, Double_t y1, Double_t x2, Double_t y2, const string &drawOpt, Bool_t outputMeanValue01)
void DrawMeanLine (TH1 *hist)
void DrawGraph (TGraph *graph, HistScale logx, HistScale logy, const string &drawOpt, Int_t color, Int_t lineWidth, Int_t lineStyle, Int_t markerSize, Int_t markerStyle)
void DrawGraph (const vector< TGraph * > &graphs, const vector< string > &graphLabels, HistScale logx, HistScale logy, Bool_t drawLegend, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void DrawGraph2D (TGraph2D *graph, HistScale logx, HistScale logy, HistScale logz, const string &drawOpt)

Detailed Description

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2008

Definition in file BmnDrawHist.cxx.

Function Documentation

◆ DrawGraph() [1/2]

void DrawGraph ( const vector< TGraph * > & graphs,
const vector< string > & graphLabels,
HistScale logx,
HistScale logy,
Bool_t drawLegend,
Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2 )

Definition at line 288 of file BmnDrawHist.cxx.

References TLegend::AddEntry(), BmnDrawingOptions::Color(), TLegend::Draw(), DrawGraph(), TAxis::GetXmax(), TAxis::GetXmin(), TGraph::GetYaxis(), BmnDrawingOptions::LineStyle(), BmnDrawingOptions::LineWidth(), BmnDrawingOptions::MarkerSize(), BmnDrawingOptions::MarkerStyle(), max(), min(), and TAttFill::SetFillColor().

Here is the call graph for this function:

◆ DrawGraph() [2/2]

void DrawGraph ( TGraph * graph,
HistScale logx,
HistScale logy,
const string & drawOpt,
Int_t color,
Int_t lineWidth,
Int_t lineStyle,
Int_t markerSize,
Int_t markerStyle )

Definition at line 249 of file BmnDrawHist.cxx.

References TGraph::Draw(), TGraph::GetXaxis(), TGraph::GetYaxis(), kLog, TAttAxis::SetLabelSize(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), TAttAxis::SetNdivisions(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and BmnDrawingOptions::TextSize().

Referenced by DrawGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawGraph2D()

void DrawGraph2D ( TGraph2D * graph,
HistScale logx,
HistScale logy,
HistScale logz,
const string & drawOpt )

Definition at line 323 of file BmnDrawHist.cxx.

References TGraph2D::Draw(), TGraph2D::GetXaxis(), TGraph2D::GetYaxis(), TGraph2D::GetZaxis(), kLog, TAttAxis::SetLabelSize(), TAttAxis::SetNdivisions(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and BmnDrawingOptions::TextSize().

Here is the call graph for this function:

◆ DrawH1() [1/2]

void DrawH1 ( const vector< TH1 * > & histos,
const vector< string > & histLabels,
HistScale logx,
HistScale logy,
Bool_t drawLegend,
Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2,
const string & drawOpt,
Bool_t outputMeanValue01 )

◆ DrawH1() [2/2]

void DrawH1 ( TH1 * hist,
HistScale logx,
HistScale logy,
const string & drawOpt,
Int_t lineColor,
Int_t lineWidth,
Int_t lineStyle,
Float_t markerSize,
Int_t markerStyle,
Int_t fillColor )

Definition at line 44 of file BmnDrawHist.cxx.

References TH1::Draw(), TH1::GetXaxis(), TH1::GetYaxis(), kLog, TAttFill::SetFillColor(), TAttAxis::SetLabelSize(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), TAttAxis::SetNdivisions(), TH1::SetStats(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and BmnDrawingOptions::TextSize().

Referenced by BmnClusteringQaReport::DrawEventsInfo(), BmnLambdaQaReport::DrawGeomEfficiencyHistograms(), DrawH1(), BmnLambdaQaReport::DrawNumberOfLambdaDecayMesonsHistograms(), BmnLambdaQaReport::DrawNumberOfLambdaDecayMesonsReconstructedHistograms(), BmnLambdaQaReport::DrawNumberOfLambdaDecayProtonsHistograms(), BmnLambdaQaReport::DrawNumberOfLambdaDecayProtonsReconstructedHistograms(), BmnLambdaQaReport::DrawNumberOfLambdaHistograms(), BmnLambdaQaReport::DrawNumberOfNotReconstructedLambdasHistograms(), BmnLambdaQaReport::DrawNumberOfReconstructableLambdaHistograms(), BmnLambdaQaReport::DrawNumberOfReconstructedLambdaHistograms(), BmnSimulationReport::DrawOneH1(), BmnClusteringQaReport::DrawPullXbyStation(), BmnClusteringQaReport::DrawPullYbyStation(), BmnLambdaQaReport::DrawRecMesonsGeomRecEffHistograms(), BmnLambdaQaReport::DrawRecMesonsReconstructionEfficiencyHistograms(), BmnLambdaQaReport::DrawReconstructedFromMCLambdasHistograms(), BmnLambdaQaReport::DrawReconstructedFromMCWOCutsLambdasHistograms(), BmnLambdaQaReport::DrawReconstructedLambdasHistograms(), BmnLambdaQaReport::DrawReconstructedLambdasWOCutsHistograms(), BmnLambdaQaReport::DrawReconstructionEfficiencyHistograms(), BmnLambdaQaReport::DrawRecProtonsGeomEffHistograms(), BmnLambdaQaReport::DrawRecProtonsReconstructionEfficiencyHistograms(), BmnClusteringQaReport::DrawResXbyStation(), BmnClusteringQaReport::DrawResYbyStation(), BmnSimulationReport::DrawThreeH1(), and BmnSimulationReport::DrawTwoH1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawH2()

void DrawH2 ( TH2 * hist,
HistScale logx,
HistScale logy,
HistScale logz,
const string & drawOpt )

Definition at line 86 of file BmnDrawHist.cxx.

References TH1::Draw(), TH1::GetXaxis(), TH1::GetYaxis(), TH1::GetZaxis(), kLog, TAttAxis::SetLabelSize(), TAttAxis::SetNdivisions(), TH1::SetStats(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and BmnDrawingOptions::TextSize().

Referenced by BmnClusteringQaReport::DrawEventsInfo(), BmnSimulationReport::DrawFourH2(), BmnSimulationReport::DrawNH2(), BmnClusteringQaReport::DrawOccupancyByStation(), BmnSimulationReport::DrawOneH2(), BmnClusteringQaReport::DrawSimXRecXbyStation(), BmnClusteringQaReport::DrawSimYRecYbyStation(), BmnSimulationReport::DrawThreeH2(), BmnLambdaQaReport::DrawTwoDimensinalReconstructedFromMCLambdasHistograms(), BmnLambdaQaReport::DrawTwoDimensinalReconstructedFromMCWOCutsLambdasHistograms(), BmnLambdaQaReport::DrawTwoDimensinalReconstructedLambdasHistograms(), BmnLambdaQaReport::DrawTwoDimensinalReconstructedLambdasWOCutsHistograms(), BmnLambdaQaReport::DrawTwoDimensionalRealRecEfficiencyHistograms(), BmnLambdaQaReport::DrawTwoDimensionalRealRecEfficiencyRecMesonsHistograms(), BmnLambdaQaReport::DrawTwoDimensionalRealRecEfficiencyRecProtonsHistograms(), BmnLambdaQaReport::DrawTwoDimensionalRecGeomEfficiencyHistograms(), BmnLambdaQaReport::DrawTwoDimensionalRecMesonsGeomRecEfficiencyHistograms(), BmnLambdaQaReport::DrawTwoDimensionalRecProtonsRecEfficiencyHistograms(), and BmnSimulationReport::DrawTwoH2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawMeanLine()

void DrawMeanLine ( TH1 * hist)
  • Draw several TH1 histograms. *‍/

Definition at line 233 of file BmnDrawHist.cxx.

References TObject::Draw(), TH1::GetBinContent(), TAttLine::GetLineColor(), TH1::GetNbinsX(), TH1::GetXaxis(), TAxis::GetXmax(), TAxis::GetXmin(), i, TH1::Integral(), TAttLine::SetLineColor(), and TAttLine::SetLineWidth().

Here is the call graph for this function:

◆ SetDefaultDrawStyle()

void SetDefaultDrawStyle ( )

Definition at line 28 of file BmnDrawHist.cxx.

Referenced by BmnPidQaReport::Draw(), BmnTrackingQaReport::Draw(), BmnProfQa::Init(), and BmnTrackingQaExp::Init().

Here is the caller graph for this function: