16#include "TProfile2D.h"
48 bool add = TH1::AddDirectoryStatus();
49 TH1::AddDirectory(
false);
51 TH1::AddDirectory(add);
52 pRes->SetFromQaHistogram<
H1D>(hist);
66 bool add = TH1::AddDirectoryStatus();
67 TH1::AddDirectory(
false);
70 TH1::AddDirectory(add);
71 pRes->SetFromQaHistogram<
H2D>(hist);
79 const char* name = prof.
GetName().c_str();
80 const char* titl = prof.
GetTitle().c_str();
86 bool add = TH1::AddDirectoryStatus();
87 TH1::AddDirectory(
false);
89 TH1::AddDirectory(add);
90 pRes->SetFromQaHistogram<
Prof1D>(prof);
98 const char* name = prof.
GetName().c_str();
99 const char* titl = prof.
GetTitle().c_str();
108 bool add = TH1::AddDirectoryStatus();
109 TH1::AddDirectory(
false);
111 TH1::AddDirectory(add);
112 pRes->SetFromQaHistogram<
Prof2D>(prof);
Set of tools for online->ROOT QA-objects conversions (header)
const std::string & GetTitle() const
Gets title.
uint32_t GetNbinsY() const
Gets number of bins for y axis.
double GetMaxY() const
Gets y-axis lower bound.
const std::string & GetName() const
Gets name.
double GetMinY() const
Gets y-axis lower bound.
double GetMaxX() const
Gets x-axis lower bound.
double GetMinX() const
Gets x-axis lower bound.
uint32_t GetNbinsX() const
Gets number of bins for x axis.
double GetMaxY() const
Gets y-axis lower bound.
double GetMinY() const
Gets y-axis lower bound.
double GetMaxZ() const
Gets z-axis lower bound.
double GetMinZ() const
Gets z-axis lower bound.
A collection of tools for online QA object conversions.
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 TH1D * ROOTHistogram(const H1D &hist)
Converts histogram H1D to ROOT histogram TH1D.
Helper class to access protected fields of TH1, TH2, TProfile and TProfile2D.
void AddSliceFromQaHistogram(const SourceQaHistogram &histo, double val)
Sets slice from the lower-dimension histogram.