BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDrawOnline Class Reference

#include <BmnDrawOnline.h>

Collaboration diagram for BmnDrawOnline:

Public Member Functions

 BmnDrawOnline (TString param, TString storageName="canvStorage")
 Constructor.
 BmnDrawOnline (TFile *, Int_t port=8080)
 Constructor.
virtual ~BmnDrawOnline ()
 Destructor.
void DrawH1 (TCanvas *canvas, 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 DrawH1 (TCanvas *canvas, TEfficiency *hist)
void DrawH2 (TCanvas *canvas, TH2 *hist, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const string &drawOpt="COLZ")
 Draw 2D histogram.
void DrawH1 (TCanvas *canvas, const vector< TH1 * > &histos, const vector< string > &histLabels, HistScale logx=kLinear, HistScale logy=kLinear, Bool_t drawLegend=true, Double_t x1=0.25, Double_t y1=0.99, Double_t x2=0.55, Double_t y2=0.75, const string &drawOpt="", Bool_t outputMeanValue01=kFALSE)
void InitServer (Int_t)
 Create server on localhost.
void DrawMainCanvas (TString)
 Draw All hists on Canvas.
void RegisterCanvases (TFile *)

Private Attributes

TFile * canvStorage
THttpServer * fServer
TString canvName
vector< TCanvas * > canvVect
vector< TString > detVect
Int_t maxHeight

Detailed Description

Definition at line 22 of file BmnDrawOnline.h.

Constructor & Destructor Documentation

◆ BmnDrawOnline() [1/2]

BmnDrawOnline::BmnDrawOnline ( TString param,
TString storageName = "canvStorage" )

Definition at line 22 of file BmnDrawOnline.cxx.

References canvStorage.

◆ BmnDrawOnline() [2/2]

BmnDrawOnline::BmnDrawOnline ( TFile * file,
Int_t port = 8080 )

Definition at line 31 of file BmnDrawOnline.cxx.

References fServer, InitServer(), and RegisterCanvases().

Here is the call graph for this function:

◆ ~BmnDrawOnline()

BmnDrawOnline::~BmnDrawOnline ( )
virtual

Definition at line 38 of file BmnDrawOnline.cxx.

References fServer.

Member Function Documentation

◆ DrawH1() [1/3]

void BmnDrawOnline::DrawH1 ( TCanvas * canvas,
const vector< TH1 * > & histos,
const vector< string > & histLabels,
HistScale logx = kLinear,
HistScale logy = kLinear,
Bool_t drawLegend = true,
Double_t x1 = 0.25,
Double_t y1 = 0.99,
Double_t x2 = 0.55,
Double_t y2 = 0.75,
const string & drawOpt = "",
Bool_t outputMeanValue01 = kFALSE )

◆ DrawH1() [2/3]

void BmnDrawOnline::DrawH1 ( TCanvas * canvas,
TEfficiency * hist )

Definition at line 201 of file BmnDrawOnline.cxx.

References canvName, canvVect, TEfficiency::Draw(), TPad::GetName(), TCanvas::GetWh(), and maxHeight.

Here is the call graph for this function:

◆ DrawH1() [3/3]

void BmnDrawOnline::DrawH1 ( TCanvas * canvas,
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 )

Definition at line 44 of file BmnDrawOnline.cxx.

References canvName, canvVect, TH1::Draw(), TPad::GetName(), TCanvas::GetWh(), TH1::GetXaxis(), TH1::GetYaxis(), kLog, maxHeight, 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 DrawH1().

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

◆ DrawH2()

void BmnDrawOnline::DrawH2 ( TCanvas * canvas,
TH2 * hist,
HistScale logx = kLinear,
HistScale logy = kLinear,
HistScale logz = kLinear,
const string & drawOpt = "COLZ" )
Parameters
[in]canvasPointer to canvas
[in]histPointer to histogram.
[in]logxSpecify logarithmic or linear scale for X axis.
[in]logySpecify logarithmic or linear scale for Y axis.
[in]logzSpecify logarithmic or linear scale for Z axis.
[in]drawOptOther drawing options (see ROOT documentation for details).

Definition at line 96 of file BmnDrawOnline.cxx.

References canvName, canvVect, TH1::Draw(), TPad::GetName(), TCanvas::GetWh(), TH1::GetXaxis(), TH1::GetYaxis(), TH1::GetZaxis(), kLog, maxHeight, TAttAxis::SetLabelSize(), TAttAxis::SetNdivisions(), TH1::SetStats(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and BmnDrawingOptions::TextSize().

Here is the call graph for this function:

◆ DrawMainCanvas()

void BmnDrawOnline::DrawMainCanvas ( TString nameOfCanv)

Definition at line 238 of file BmnDrawOnline.cxx.

References canvName, canvVect, TCanvas::cd(), TPad::cd(), TPad::Divide(), TPad::Draw(), TPaveLabel::Draw(), i, maxHeight, TAttFill::SetFillColor(), TPad::SetFillStyle(), TAttText::SetTextFont(), and TObject::Write().

Here is the call graph for this function:

◆ InitServer()

void BmnDrawOnline::InitServer ( Int_t port)

Definition at line 219 of file BmnDrawOnline.cxx.

References fServer.

Referenced by BmnDrawOnline().

Here is the caller graph for this function:

◆ RegisterCanvases()

void BmnDrawOnline::RegisterCanvases ( TFile * file)

Definition at line 268 of file BmnDrawOnline.cxx.

References fServer, TDirectoryFile::Get(), and i.

Referenced by BmnDrawOnline().

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

Member Data Documentation

◆ canvName

TString BmnDrawOnline::canvName
private

Definition at line 138 of file BmnDrawOnline.h.

Referenced by DrawH1(), DrawH1(), DrawH2(), and DrawMainCanvas().

◆ canvStorage

TFile* BmnDrawOnline::canvStorage
private

Definition at line 136 of file BmnDrawOnline.h.

Referenced by BmnDrawOnline().

◆ canvVect

vector<TCanvas*> BmnDrawOnline::canvVect
private

Definition at line 139 of file BmnDrawOnline.h.

Referenced by DrawH1(), DrawH1(), DrawH2(), and DrawMainCanvas().

◆ detVect

vector<TString> BmnDrawOnline::detVect
private

Definition at line 140 of file BmnDrawOnline.h.

◆ fServer

THttpServer* BmnDrawOnline::fServer
private

Definition at line 137 of file BmnDrawOnline.h.

Referenced by BmnDrawOnline(), ~BmnDrawOnline(), InitServer(), and RegisterCanvases().

◆ maxHeight

Int_t BmnDrawOnline::maxHeight
private

Definition at line 141 of file BmnDrawOnline.h.

Referenced by DrawH1(), DrawH1(), DrawH2(), and DrawMainCanvas().


The documentation for this class was generated from the following files: