30 , fReportName(
"qa_report")
31 , fReportTitle(
"QA report")
45 if (
nullptr !=
fR)
delete fR;
96 TCanvas* canvas =
new TCanvas(name, title, ww, wh);
105 for (Int_t i = 0; i < nofCanvases; i++) {
116 for (Int_t i = 0; i < nofCanvases; i++) {
124 for (Int_t i = 0; i < nofCanvases; i++) {
126 Out() <<
R()->
Image(canvas->GetName(),
string(
"png/" +
string(canvas->GetName())).c_str());
ClassImp(CbmConverterManager)
Implementation of CbmReportElement for HTML output.
Implementation of CbmReportElement for Latex output.
Abstract class for basic report elements (headers, tables, images etc.).
ReportType
Enumeration defines different report types.
Implementation of CbmLitReportElement for text output.
Implementation of CbmReportElement for text output.
Implementation of CbmLitReportElement for Latex output.
virtual std::string Image(const std::string &title, const std::string &file) const =0
Return string with image tags.
void WriteCanvases() const
Write canvases to file.
std::ostream & Out() const
All text output goes to this stream.
void DeleteReportElement()
Delete report element. Normally should be called at the end of Create function.
void SaveCanvasesAsImages() const
Save all canvases to images.
void CreateReportElement(ReportType reportType)
Create concrete CbmReportElement instance based on report type.
std::vector< TCanvas * > fCanvases
virtual ~CbmReport()
Destructor.
void PrintCanvases() const
Print images created from canvases in the report.
virtual void Draw()=0
Pure abstract function which is called from public Create() function. This function has to draw all n...
const CbmReportElement * R() const
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReport...
void CreateReports()
Create all available report types.
TCanvas * CreateCanvas(const char *name, const char *title, Int_t ww, Int_t wh)
Create canvas and put it to vector of TCanvases. Canvases created with this function will be automati...
const std::string & GetOutputDir() const
virtual void Create()=0
Pure abstract function which is called from public Create() function. This function has to write repo...
Implementation of CbmLitReportElement for text output.
void SaveCanvasAsImage(TCanvas *c, const string &dir, const string &option)