CbmRoot
Loading...
Searching...
No Matches
RootHistogramAccessor< RootHistogram > Class Template Reference

Helper class to access protected fields of TH1, TH2, TProfile and TProfile2D. More...

#include <CbmQaOnlineInterface.h>

Inheritance diagram for RootHistogramAccessor< RootHistogram >:
[legend]
Collaboration diagram for RootHistogramAccessor< RootHistogram >:
[legend]

Public Member Functions

template<class... Args>
 RootHistogramAccessor (Args... args)
 
template<class SourceQaHistogram>
void AddSliceFromQaHistogram (const SourceQaHistogram &histo, double val)
 Sets slice from the lower-dimension histogram.
 
template<class QaHistogram>
void AddSliceFromQaHistogram (const QaHistogram &src, double val)
 
template<class QaHistogram>
void SetFromQaHistogram (const QaHistogram &histo)
 Sets fields from qa histogram.
 

Detailed Description

template<class RootHistogram>
class RootHistogramAccessor< RootHistogram >

Helper class to access protected fields of TH1, TH2, TProfile and TProfile2D.

The ROOT TProfile classes do not alow to set a profile from outside, so we need to set all the fields directly. Also the access to TH1/TH2 protected fields is needed in order to set the total sums of w*x, w*x*x, w*y, w*x*y, and w*y*y.

Definition at line 41 of file CbmQaOnlineInterface.h.

Constructor & Destructor Documentation

◆ RootHistogramAccessor()

template<class RootHistogram>
template<class... Args>
cbm::qa::RootHistogramAccessor< RootHistogram >::RootHistogramAccessor ( Args... args)
inline

Definition at line 45 of file CbmQaOnlineInterface.h.

Member Function Documentation

◆ AddSliceFromQaHistogram() [1/2]

template<class RootHistogram>
template<class QaHistogram>
void cbm::qa::RootHistogramAccessor< RootHistogram >::AddSliceFromQaHistogram ( const QaHistogram & src,
double val )

Definition at line 117 of file CbmQaOnlineInterface.h.

◆ AddSliceFromQaHistogram() [2/2]

template<class RootHistogram>
template<class SourceQaHistogram>
void cbm::qa::RootHistogramAccessor< RootHistogram >::AddSliceFromQaHistogram ( const SourceQaHistogram & histo,
double val )

Sets slice from the lower-dimension histogram.

Template Parameters
Sourcehistogram type
Parameters
srcSource histogram
valTarget value on the additional axis

◆ SetFromQaHistogram()

template<class RootHistogram>
template<class QaHistogram>
void cbm::qa::RootHistogramAccessor< RootHistogram >::SetFromQaHistogram ( const QaHistogram & histo)

Sets fields from qa histogram.

Parameters
histoSource histogram

Definition at line 157 of file CbmQaOnlineInterface.h.


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