CbmRoot
Loading...
Searching...
No Matches
cbm::qa::util Namespace Reference

namespace cbm::qa::util contains useful utilities for CBM QA tasks More...

Functions

TPaveStats * GetHistStats (TH1 *pHist)
 Finds/Creates stats window for a histogram.
 
std::tuple< double, double > FitKaniadakisGaussian (TH1 *pHist)
 Fit a histogram with Kaniadakis Gaussian Distribution.
 
void SetLargeStats (TH1 *pHist)
 Set large stat. window.
 

Detailed Description

namespace cbm::qa::util contains useful utilities for CBM QA tasks

Function Documentation

◆ FitKaniadakisGaussian()

std::tuple< double, double > cbm::qa::util::FitKaniadakisGaussian ( TH1 * pHist)

Fit a histogram with Kaniadakis Gaussian Distribution.

Returns
mean and std.dev of the fit

Definition at line 88 of file CbmQaUtil.cxx.

References GetHistStats(), and sqrt().

Referenced by cbm::ca::TrackFitQa::CreatePullPlot(), and CbmTrdCalibTracker::GetQa().

◆ GetHistStats()

TPaveStats * cbm::qa::util::GetHistStats ( TH1 * pHist)

Finds/Creates stats window for a histogram.

Parameters
pHisthistogram
Returns
stats window

Definition at line 28 of file CbmQaUtil.cxx.

References CbmQaCanvas::GetDummyCanvas(), x, and y.

Referenced by FitKaniadakisGaussian(), SetLargeStats(), and CbmQaIO::SetTH1Properties().

◆ SetLargeStats()

void cbm::qa::util::SetLargeStats ( TH1 * pHist)

Set large stat. window.

Definition at line 179 of file CbmQaUtil.cxx.

References GetHistStats().

Referenced by CbmCaInputQaSts::Check().