CbmRoot
|
Helper class to access protected fields of TH1, TH2, TProfile and TProfile2D. More...
#include <CbmQaOnlineInterface.h>
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 | SetFromQaHistogram (const QaHistogram &histo) |
Sets fields from qa histogram. | |
template<class QaHistogram > | |
void | AddSliceFromQaHistogram (const QaHistogram &src, double val) |
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.
|
inline |
Definition at line 45 of file CbmQaOnlineInterface.h.
void cbm::qa::RootHistogramAccessor< RootHistogram >::AddSliceFromQaHistogram | ( | const QaHistogram & | src, |
double | val ) |
Definition at line 108 of file CbmQaOnlineInterface.h.
void cbm::qa::RootHistogramAccessor< RootHistogram >::AddSliceFromQaHistogram | ( | const SourceQaHistogram & | histo, |
double | val ) |
Sets slice from the lower-dimension histogram.
Source | histogram type |
src | Source histogram |
val | Target value on the additional axis |
Referenced by cbm::qa::OnlineInterface::AddSlice(), and cbm::qa::OnlineInterface::AddSlice().
void cbm::qa::RootHistogramAccessor< RootHistogram >::SetFromQaHistogram | ( | const QaHistogram & | histo | ) |
Sets fields from qa histogram.
histo | Source histogram |
Definition at line 148 of file CbmQaOnlineInterface.h.