CbmRoot
|
Base class for reports. More...
#include <CbmReport.h>
Public Member Functions | |
CbmReport () | |
Constructor. More... | |
virtual | ~CbmReport () |
Destructor. More... | |
const CbmReportElement * | R () const |
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReportElement class. More... | |
std::ostream & | Out () const |
All text output goes to this stream. More... | |
void | SetReportName (const std::string &name) |
void | SetReportTitle (const std::string &title) |
void | SetOutputDir (const std::string &outputDir) |
const std::string & | GetReportName () const |
const std::string & | GetReportTitle () const |
const std::string & | GetOutputDir () const |
Protected Member Functions | |
virtual void | Create ()=0 |
Pure abstract function which is called from public Create() function. This function has to write report using Out() for output stream and R() for report elements. This function is called for each report type. More... | |
virtual void | Draw ()=0 |
Pure abstract function which is called from public Create() function. This function has to draw all necessary histograms and graphs. It is called only once before report creation. More... | |
void | Draw (Option_t *) |
Inherited from TObject. This method is implemented in order to avoid warnings. More... | |
void | CreateReports () |
Create all available report types. More... | |
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 automatically saved to image and printed in the report. More... | |
void | SaveCanvasesAsImages () const |
Save all canvases to images. More... | |
void | WriteCanvases () const |
Write canvases to file. More... | |
void | PrintCanvases () const |
Print images created from canvases in the report. More... | |
Private Member Functions | |
void | CreateReportElement (ReportType reportType) |
Create concrete CbmReportElement instance based on report type. More... | |
void | DeleteReportElement () |
Delete report element. Normally should be called at the end of Create function. More... | |
CbmReport (const CbmReport &) | |
CbmReport & | operator= (const CbmReport &) |
Private Attributes | |
std::string | fReportName |
std::string | fReportTitle |
std::string | fOutputDir |
ReportType | fReportType |
CbmReportElement * | fR |
std::ostream * | fOut |
std::vector< TCanvas * > | fCanvases |
CbmReport::CbmReport | ( | ) |
Constructor.
Definition at line 24 of file CbmReport.cxx.
|
virtual |
Destructor.
Definition at line 34 of file CbmReport.cxx.
|
private |
|
protectedpure virtual |
Pure abstract function which is called from public Create() function. This function has to write report using Out() for output stream and R() for report elements. This function is called for each report type.
Implemented in CbmStudyReport, CbmSimulationReport, CbmRichGeoTestStudyReport, CbmLitTrackingQaStudyReport, CbmLitClusteringQaReport, CbmLitRadLengthQaReport, CbmLitTrackingQaReport, CbmLitClusteringQaStudyReport, CbmLitFitQaReport, CbmLitFitQaStudyReport, CbmLitFieldQaReport, CbmLitFieldApproximationQaReport, CbmLitTofQaReport, CbmAnaJpsiSuperEventReport, CbmAnaJpsiReport, CbmAnaDielectronStudyReportAll, and CbmStsDigitizeQaReport.
Referenced by CreateReports().
|
protected |
Create canvas and put it to vector of TCanvases. Canvases created with this function will be automatically saved to image and printed in the report.
Definition at line 82 of file CbmReport.cxx.
References fCanvases.
Referenced by CbmAnaJpsiReport::Draw(), CbmAnaJpsiSuperEventReport::Draw(), CbmAnaJpsiReport::Draw2DCut(), CbmStsDigitizeQaReport::Draw2dHistograms(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitTrackingQaStudyReport::DrawAccAndRec(), CbmAnaJpsiReport::DrawAnalysisStepsH1(), CbmAnaJpsiReport::DrawAnalysisStepsH2(), CbmLitFieldApproximationQaReport::DrawApr(), CbmAnaDielectronStudyReportAll::DrawBgMinv(), CbmAnaJpsiReport::DrawBgSource2D(), CbmAnaJpsiSuperEventReport::DrawComparison(), CbmAnaJpsiReport::DrawCutH1(), CbmLitRadLengthQaReport::DrawDetector(), CbmLitTrackingQaReport::DrawEfficiency(), CbmLitTrackingQaStudyReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmSimulationReport::DrawH2ByPattern(), CbmStsDigitizeQaReport::DrawHistograms(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmAnaJpsiSuperEventReport::DrawMinvDiffPtBins(), CbmAnaJpsiReport::DrawMinvMismatchesAll(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), CbmAnaJpsiReport::DrawMinvSAndBgAllSteps(), CbmAnaJpsiSuperEventReport::DrawMinvSignalBg(), CbmAnaJpsiReport::DrawMomEffAllSteps(), CbmAnaJpsiReport::DrawMomMcVsRec(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmAnaJpsiSuperEventReport::DrawPairSource(), CbmAnaJpsiReport::DrawPairSource(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmAnaJpsiReport::DrawPtYEfficiencyAll(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), CbmAnaDielectronStudyReportAll::DrawSBgMinv(), CbmAnaJpsiReport::DrawSignalMinv(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParams(), CbmLitFitQaStudyReport::DrawTrackParamsAtVertex(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmLitTofQaReport::FitHistograms(), CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps(), and CbmAnaJpsiReport::SignalOverBgAllSteps().
|
private |
Create concrete CbmReportElement instance based on report type.
[in] | reportType | Type of the report to be produced. |
Definition at line 36 of file CbmReport.cxx.
References fOut, fR, fReportName, fReportType, GetOutputDir(), kCoutReport, kHtmlReport, kLatexReport, and kTextReport.
Referenced by CreateReports().
|
protected |
Create all available report types.
Definition at line 60 of file CbmReport.cxx.
References Create(), CreateReportElement(), DeleteReportElement(), Draw(), kCoutReport, kHtmlReport, kLatexReport, kTextReport, and SaveCanvasesAsImages().
|
private |
Delete report element. Normally should be called at the end of Create function.
Definition at line 55 of file CbmReport.cxx.
Referenced by CreateReports().
|
protectedpure virtual |
Pure abstract function which is called from public Create() function. This function has to draw all necessary histograms and graphs. It is called only once before report creation.
Implemented in CbmRichGeoTestStudyReport, CbmLitTrackingQaStudyReport, CbmLitClusteringQaReport, CbmLitRadLengthQaReport, CbmLitTrackingQaReport, CbmLitClusteringQaStudyReport, CbmLitFitQaReport, CbmLitFitQaStudyReport, CbmLitFieldQaReport, CbmLitFieldApproximationQaReport, CbmLitTofQaReport, CbmAnaJpsiSuperEventReport, CbmAnaJpsiReport, CbmAnaDielectronStudyReportAll, and CbmStsDigitizeQaReport.
Referenced by CreateReports().
|
inlineprotected |
Inherited from TObject. This method is implemented in order to avoid warnings.
Definition at line 87 of file CbmReport.h.
|
inline |
Definition at line 66 of file CbmReport.h.
References fOutputDir.
Referenced by CreateReportElement(), SaveCanvasesAsImages(), and WriteCanvases().
|
inline |
Definition at line 64 of file CbmReport.h.
References fReportName.
Referenced by CbmStsDigitizeQaReport::Draw2dHistograms(), CbmLitFieldApproximationQaReport::DrawApr(), CbmSimulationReport::DrawH2ByPattern(), CbmStsDigitizeQaReport::DrawHistograms(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), and CbmLitFieldApproximationQaReport::DrawSlices().
|
inline |
Definition at line 65 of file CbmReport.h.
References fReportTitle.
|
inline |
All text output goes to this stream.
Definition at line 56 of file CbmReport.h.
References fOut.
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitClusteringQaReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmLitTrackingQaStudyReport::Create(), and PrintCanvases().
|
protected |
Print images created from canvases in the report.
Definition at line 109 of file CbmReport.cxx.
References fCanvases, i, CbmReportElement::Image(), Out(), and R().
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitClusteringQaReport::Create(), and CbmLitTrackingQaStudyReport::Create().
|
inline |
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReportElement class.
Definition at line 51 of file CbmReport.h.
References fR.
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFitQaReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), CbmRichGeoTestStudyReport::Create(), PrintCanvases(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), CbmRichGeoTestStudyReport::PrintRow(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
protected |
Save all canvases to images.
Definition at line 91 of file CbmReport.cxx.
References fCanvases, GetOutputDir(), i, and Cbm::SaveCanvasAsImage().
Referenced by CreateReports().
|
inline |
Definition at line 61 of file CbmReport.h.
References fOutputDir.
|
inline |
Definition at line 59 of file CbmReport.h.
References fReportName.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmAnaJpsiReport::CbmAnaJpsiReport(), CbmAnaJpsiSuperEventReport::CbmAnaJpsiSuperEventReport(), CbmLitClusteringQaReport::CbmLitClusteringQaReport(), CbmLitClusteringQaStudyReport::CbmLitClusteringQaStudyReport(), CbmLitFieldApproximationQaReport::CbmLitFieldApproximationQaReport(), CbmLitFitQaReport::CbmLitFitQaReport(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), CbmLitRadLengthQaReport::CbmLitRadLengthQaReport(), CbmLitTofQaReport::CbmLitTofQaReport(), CbmLitTrackingQaReport::CbmLitTrackingQaReport(), CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport(), CbmRichGeoTestStudyReport::CbmRichGeoTestStudyReport(), and CbmStsDigitizeQaReport::CbmStsDigitizeQaReport().
|
inline |
Definition at line 60 of file CbmReport.h.
References fReportTitle.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), and CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport().
|
protected |
Write canvases to file.
Definition at line 101 of file CbmReport.cxx.
References fCanvases, GetOutputDir(), and i.
|
private |
Definition at line 140 of file CbmReport.h.
Referenced by CreateCanvas(), PrintCanvases(), SaveCanvasesAsImages(), and WriteCanvases().
|
mutableprivate |
Definition at line 135 of file CbmReport.h.
Referenced by CreateReportElement(), and Out().
|
private |
Definition at line 132 of file CbmReport.h.
Referenced by GetOutputDir(), and SetOutputDir().
|
private |
Definition at line 134 of file CbmReport.h.
Referenced by CreateReportElement(), and R().
|
private |
Definition at line 130 of file CbmReport.h.
Referenced by CreateReportElement(), GetReportName(), and SetReportName().
|
private |
Definition at line 131 of file CbmReport.h.
Referenced by GetReportTitle(), and SetReportTitle().
|
private |
Definition at line 133 of file CbmReport.h.
Referenced by CreateReportElement().