|
BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
|
#include <BmnDrawOnline.h>
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 |
Definition at line 22 of file BmnDrawOnline.h.
Definition at line 22 of file BmnDrawOnline.cxx.
References canvStorage.
Definition at line 31 of file BmnDrawOnline.cxx.
References fServer, InitServer(), and RegisterCanvases().
|
virtual |
Definition at line 38 of file BmnDrawOnline.cxx.
References fServer.
| 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 ) |
Definition at line 144 of file BmnDrawOnline.cxx.
References TLegend::AddEntry(), BmnDrawingOptions::Color(), TString::Data(), TLegend::Draw(), DrawH1(), f, TString::Format(), TH1::GetBinCenter(), TH1::GetBinContent(), TH1::GetMaximum(), TNamed::GetName(), TH1::GetNbinsX(), i, TH1::Integral(), BmnDrawingOptions::LineStyle(), BmnDrawingOptions::LineWidth(), BmnDrawingOptions::MarkerSize(), BmnDrawingOptions::MarkerStyle(), max(), and TAttFill::SetFillColor().
| 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.
| 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().
| void BmnDrawOnline::DrawH2 | ( | TCanvas * | canvas, |
| TH2 * | hist, | ||
| HistScale | logx = kLinear, | ||
| HistScale | logy = kLinear, | ||
| HistScale | logz = kLinear, | ||
| const string & | drawOpt = "COLZ" ) |
| [in] | canvas | Pointer to canvas |
| [in] | hist | Pointer to histogram. |
| [in] | logx | Specify logarithmic or linear scale for X axis. |
| [in] | logy | Specify logarithmic or linear scale for Y axis. |
| [in] | logz | Specify logarithmic or linear scale for Z axis. |
| [in] | drawOpt | Other 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().
| 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().
| void BmnDrawOnline::InitServer | ( | Int_t | port | ) |
Definition at line 219 of file BmnDrawOnline.cxx.
References fServer.
Referenced by BmnDrawOnline().
| void BmnDrawOnline::RegisterCanvases | ( | TFile * | file | ) |
Definition at line 268 of file BmnDrawOnline.cxx.
References fServer, TDirectoryFile::Get(), and i.
Referenced by BmnDrawOnline().
|
private |
Definition at line 138 of file BmnDrawOnline.h.
Referenced by DrawH1(), DrawH1(), DrawH2(), and DrawMainCanvas().
|
private |
Definition at line 136 of file BmnDrawOnline.h.
Referenced by BmnDrawOnline().
|
private |
Definition at line 139 of file BmnDrawOnline.h.
Referenced by DrawH1(), DrawH1(), DrawH2(), and DrawMainCanvas().
|
private |
Definition at line 140 of file BmnDrawOnline.h.
|
private |
Definition at line 137 of file BmnDrawOnline.h.
Referenced by BmnDrawOnline(), ~BmnDrawOnline(), InitServer(), and RegisterCanvases().
|
private |
Definition at line 141 of file BmnDrawOnline.h.
Referenced by DrawH1(), DrawH1(), DrawH2(), and DrawMainCanvas().