17#include <boost/assign/list_of.hpp>
20using boost::assign::list_of;
45 Int_t nofStudies =
HM().size();
46 vector<vector<TH1*>> histos(nofStudies);
47 for (Int_t i = 0; i < nofStudies; i++) {
48 histos[i] =
HM(i)->H1Vector(
"hno_NofObjects_.+_Event");
51 for (UInt_t iHist = 0; iHist < histos[0].size(); iHist++) {
52 string cellName = Split(histos[0][iHist]->GetName(),
'_')[2];
53 vector<string> cells(nofStudies);
54 for (Int_t i = 0; i < nofStudies; i++) {
55 cells[i] = NumberToString<Double_t>(histos[i][iHist]->GetMean());
57 str +=
R()->
TableRow(list_of(cellName).range(cells));
ClassImp(CbmConverterManager)
Study summary report for clustering QA.
Abstract class for basic report elements (headers, tables, images etc.).
Study summary report for clustering QA.
string PrintNofObjects() const
Print number of objects table.
void Create()
Inherited from CbmStudyReport.
virtual ~CbmLitClusteringQaStudyReport()
Destructor.
CbmLitClusteringQaStudyReport()
Constructor.
void Draw()
Inherited from CbmStudyReport.
virtual std::string TableRow(const std::vector< std::string > &row) const =0
Return string with table row tags.
virtual std::string Title(int size, const std::string &title) const =0
Return string with title.
virtual std::string TableBegin(const std::string &caption, const std::vector< std::string > &colNames) const =0
Return string with table open tag.
virtual std::string DocumentBegin() const =0
Return string with open tags for document.
virtual std::string TableEnd() const =0
Return string with table close tag.
virtual std::string DocumentEnd() const =0
Return string with close tags of the document.
std::ostream & Out() const
All text output goes to this stream.
void SetReportName(const std::string &name)
const CbmReportElement * R() const
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReport...
Base class for study reports.
const std::vector< std::string > & GetStudyNames() const
const std::vector< CbmHistManager * > & HM() const
vector< string > Split(const string &name, char delimiter)
std::string NumberToString(const T &value, int precision=1)