30 CbmQaTable(
const char* name,
const char* title, Int_t nRows, Int_t nCols);
38 std::string
ToString(
int prec,
bool useErr =
false)
const;
42 void ToTextFile(
const std::string& fileName, std::ios_base::openmode mode = std::ios_base::out)
const;
45 Double_t
GetCell(Int_t iRow, Int_t iCol)
const;
58 void SetCell(Int_t iRow, Int_t iCol, Double_t content, Double_t error = 0.);
82 using TH2D::GetBinContent;
83 using TH2D::GetBinError;
84 using TH2D::SetBinContent;
85 using TH2D::SetBinError;
static constexpr size_t size()
TODO: SZh, 30.01.2023: Override THistPainter::PaintText() to add zeroes in tables.
void ToTextFile(const std::string &fileName, std::ios_base::openmode mode=std::ios_base::out) const
static constexpr Int_t kValuesPrecision
precision of output parameters
static constexpr Float_t kDefaultTextSize
default size of text
Int_t fNcols
number of columns in a table
static constexpr Int_t kRowTitlesSetwPar
size of entry in std::setw() for row titles
Double_t GetCell(Int_t iRow, Int_t iCol) const
Gets cell content. Please mind, that the signature and result of this function is different to TH2D::...
void SetNamesOfCols(const std::vector< std::string > &names)
Sets the names of table columns.
Double_t GetCellError(Int_t iRow, Int_t iCol) const
Gets cell error. Please mind, that the signature and result of this function is different to TH2D::Ge...
Int_t GetNrows() const
Sets number of rows.
void SetNamesOfRows(const std::vector< std::string > &names)
Sets the names of table rows.
Int_t GetNcols() const
Sets number of columns.
virtual ~CbmQaTable()
Destructor.
static constexpr Style_t kDefaultFontStyle
default text style
static constexpr Int_t kDefaultSetwPar
default size of entry in std::setw() for columns
void SetCell(Int_t iRow, Int_t iCol, Double_t content, Double_t error=0.)
CbmQaTable()
Default constructor.
Int_t fColWidth
Width of column in number of symbols.
Int_t fNrows
number of rows in a table
friend std::ostream & operator<<(std::ostream &out, const CbmQaTable &aTable)
Dumps table content into a stream.
void SetRowName(Int_t iRow, const char *name)
Set name of a row.
void SetTextSize(Float_t size=0.03)
Sets size of the text.
void SetColWidth(Int_t width)
std::string ToString(int prec, bool useErr=false) const