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