CbmRoot
Loading...
Searching...
No Matches
cbm::qa::OnlineInterface Class Reference

A collection of tools for online QA object conversions. More...

#include <CbmQaOnlineInterface.h>

Static Public Member Functions

static void AddSlice (const H1D &src, double value, TH2D *dst)
 Fills a slice of a histogram of a higher dimension for a given value (....)
 
static void AddSlice (const Prof1D &src, double value, TProfile2D *dst)
 Fills a slice of a profile of a higher dimension for a given value (....)
 
static TH1D * ROOTHistogram (const H1D &hist)
 Converts histogram H1D to ROOT histogram TH1D.
 
static TH2D * ROOTHistogram (const H2D &hist)
 Converts histogram H2D to ROOT histogram TH2D.
 
static TProfile * ROOTHistogram (const Prof1D &prof)
 Converts profile Prof1D to ROOT TProfile.
 
static TProfile2D * ROOTHistogram (const Prof2D &prof)
 Converts profile Prof2D to ROOT TProfile2D.
 
static bool ConvertOutput (const std::string &inFilename, std::string outFilename="")
 Converts histograms from a .qa.out file from the online binary to the ROOT format and stores them into a ROOT file.
 

Detailed Description

A collection of tools for online QA object conversions.

Definition at line 64 of file CbmQaOnlineInterface.h.

Member Function Documentation

◆ AddSlice() [1/2]

void OnlineInterface::AddSlice ( const H1D & src,
double value,
TH2D * dst )
static

Fills a slice of a histogram of a higher dimension for a given value (....)

Parameters
src1D source histogram
valueSlice coordinate
dstDestination 2D-histogram

Definition at line 31 of file CbmQaOnlineInterface.cxx.

References cbm::qa::RootHistogramAccessor< RootHistogram >::AddSliceFromQaHistogram().

Referenced by cbm::services::histserv::Application::ReadHistogramExtendedTsId().

◆ AddSlice() [2/2]

void OnlineInterface::AddSlice ( const Prof1D & src,
double value,
TProfile2D * dst )
static

Fills a slice of a profile of a higher dimension for a given value (....)

Parameters
src1D source profile
valueSlice coordinate
dstDestination 2D-profile

Definition at line 39 of file CbmQaOnlineInterface.cxx.

References cbm::qa::RootHistogramAccessor< RootHistogram >::AddSliceFromQaHistogram().

◆ ConvertOutput()

bool OnlineInterface::ConvertOutput ( const std::string & inFilename,
std::string outFilename = "" )
static

Converts histograms from a .qa.out file from the online binary to the ROOT format and stores them into a ROOT file.

Parameters
inFilenameName of input qa.out file
outFilenameName of output ROOT file
Returns
true Success
false Failure
Note
If outFilename is not specified, in will be defined as inFilename with extention set to ".root"

Definition at line 122 of file CbmQaOnlineInterface.cxx.

References ROOTHistogram().

◆ ROOTHistogram() [1/4]

◆ ROOTHistogram() [2/4]

◆ ROOTHistogram() [3/4]

◆ ROOTHistogram() [4/4]


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