CbmRoot
|
Base class for reports. More...
#include <CbmReport.h>
Public Member Functions | |
CbmReport () | |
Constructor. | |
virtual | ~CbmReport () |
Destructor. | |
const CbmReportElement * | R () const |
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReportElement class. | |
std::ostream & | Out () const |
All text output goes to this stream. | |
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. | |
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. | |
void | Draw (Option_t *) |
Inherited from TObject. This method is implemented in order to avoid warnings. | |
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 automatically saved to image and printed in the report. | |
void | SaveCanvasesAsImages () const |
Save all canvases to images. | |
void | WriteCanvases () const |
Write canvases to file. | |
void | PrintCanvases () const |
Print images created from canvases in the report. | |
Private Member Functions | |
void | CreateReportElement (ReportType reportType) |
Create concrete CbmReportElement instance based on report type. | |
void | DeleteReportElement () |
Delete report element. Normally should be called at the end of Create function. | |
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 28 of file CbmReport.cxx.
|
virtual |
Destructor.
Definition at line 40 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 CbmAnaDielectronStudyReportAll, CbmAnaJpsiReport, CbmAnaJpsiSuperEventReport, CbmLitClusteringQaReport, CbmLitClusteringQaStudyReport, CbmLitFieldApproximationQaReport, CbmLitFieldQaReport, CbmLitFitQaReport, CbmLitFitQaStudyReport, CbmLitRadLengthQaReport, CbmLitTofQaReport, CbmLitTrackingQaReport, CbmLitTrackingQaStudyReport, CbmRichGeoTestStudyReport, CbmSimulationReport, CbmStsDigitizeQaReport, and CbmStudyReport.
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 94 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(), CbmLitFieldQaReport::DrawFieldAlongZ(), CbmLitFieldQaReport::DrawFieldRichPmtPlane(), CbmLitFieldQaReport::DrawFieldSlices(), CbmSimulationReport::DrawH2ByPattern(), CbmStsDigitizeQaReport::DrawHistograms(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmAnaJpsiSuperEventReport::DrawMinvDiffPtBins(), CbmAnaJpsiReport::DrawMinvMismatchesAll(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), CbmAnaJpsiReport::DrawMinvSAndBgAllSteps(), CbmAnaJpsiSuperEventReport::DrawMinvSignalBg(), CbmAnaJpsiReport::DrawMomEffAllSteps(), CbmAnaJpsiReport::DrawMomMcVsRec(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmAnaJpsiReport::DrawPairSource(), CbmAnaJpsiSuperEventReport::DrawPairSource(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmAnaJpsiReport::DrawPtYEfficiencyAll(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), CbmAnaJpsiReport::DrawSignalMinv(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParams(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitFitQaStudyReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmLitTofQaReport::FitHistograms(), CbmAnaJpsiReport::SignalOverBgAllSteps(), and CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps().
|
private |
Create concrete CbmReportElement instance based on report type.
[in] | reportType | Type of the report to be produced. |
Definition at line 42 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 71 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 65 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 CbmAnaDielectronStudyReportAll, CbmAnaJpsiReport, CbmAnaJpsiSuperEventReport, CbmLitClusteringQaReport, CbmLitClusteringQaStudyReport, CbmLitFieldApproximationQaReport, CbmLitFieldQaReport, CbmLitFitQaReport, CbmLitFitQaStudyReport, CbmLitRadLengthQaReport, CbmLitTofQaReport, CbmLitTrackingQaReport, CbmLitTrackingQaStudyReport, CbmRichGeoTestStudyReport, and CbmStsDigitizeQaReport.
Referenced by CreateReports().
|
inlineprotected |
Inherited from TObject. This method is implemented in order to avoid warnings.
Definition at line 97 of file CbmReport.h.
|
inline |
Definition at line 76 of file CbmReport.h.
References fOutputDir.
Referenced by CreateReportElement(), SaveCanvasesAsImages(), and WriteCanvases().
|
inline |
Definition at line 74 of file CbmReport.h.
References fReportName.
Referenced by CbmStsDigitizeQaReport::Draw2dHistograms(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitFieldQaReport::DrawFieldAlongZ(), CbmLitFieldQaReport::DrawFieldRichPmtPlane(), CbmLitFieldQaReport::DrawFieldSlices(), CbmSimulationReport::DrawH2ByPattern(), CbmStsDigitizeQaReport::DrawHistograms(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), and CbmLitFieldApproximationQaReport::DrawSlices().
|
inline |
Definition at line 75 of file CbmReport.h.
References fReportTitle.
|
inline |
All text output goes to this stream.
Definition at line 66 of file CbmReport.h.
References fOut.
Referenced by CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFieldQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTofQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmStsDigitizeQaReport::Create(), and PrintCanvases().
|
protected |
Print images created from canvases in the report.
Definition at line 121 of file CbmReport.cxx.
References fCanvases, CbmReportElement::Image(), Out(), and R().
Referenced by CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFieldQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTofQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), and CbmStsDigitizeQaReport::Create().
|
inline |
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReportElement class.
Definition at line 61 of file CbmReport.h.
References fR.
Referenced by CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFieldQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTofQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmStsDigitizeQaReport::Create(), PrintCanvases(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), CbmRichGeoTestStudyReport::PrintRow(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
protected |
Save all canvases to images.
Definition at line 101 of file CbmReport.cxx.
References fCanvases, GetOutputDir(), and Cbm::SaveCanvasAsImage().
Referenced by CreateReports().
|
inline |
Definition at line 71 of file CbmReport.h.
References fOutputDir.
|
inline |
Definition at line 69 of file CbmReport.h.
References fReportName.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmAnaJpsiReport::CbmAnaJpsiReport(), CbmAnaJpsiSuperEventReport::CbmAnaJpsiSuperEventReport(), CbmLitClusteringQaReport::CbmLitClusteringQaReport(), CbmLitClusteringQaStudyReport::CbmLitClusteringQaStudyReport(), CbmLitFieldApproximationQaReport::CbmLitFieldApproximationQaReport(), CbmLitFieldQaReport::CbmLitFieldQaReport(), CbmLitFitQaReport::CbmLitFitQaReport(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), CbmLitRadLengthQaReport::CbmLitRadLengthQaReport(), CbmLitTofQaReport::CbmLitTofQaReport(), CbmLitTrackingQaReport::CbmLitTrackingQaReport(), CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport(), CbmRichGeoTestStudyReport::CbmRichGeoTestStudyReport(), and CbmStsDigitizeQaReport::CbmStsDigitizeQaReport().
|
inline |
Definition at line 70 of file CbmReport.h.
References fReportTitle.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), and CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport().
|
protected |
Write canvases to file.
Definition at line 112 of file CbmReport.cxx.
References fCanvases, and GetOutputDir().
|
private |
Definition at line 149 of file CbmReport.h.
Referenced by CreateCanvas(), PrintCanvases(), SaveCanvasesAsImages(), and WriteCanvases().
|
mutableprivate |
Definition at line 144 of file CbmReport.h.
Referenced by CreateReportElement(), and Out().
|
private |
Definition at line 141 of file CbmReport.h.
Referenced by GetOutputDir(), and SetOutputDir().
|
private |
Definition at line 143 of file CbmReport.h.
Referenced by CreateReportElement(), and R().
|
private |
Definition at line 139 of file CbmReport.h.
Referenced by CreateReportElement(), GetReportName(), and SetReportName().
|
private |
Definition at line 140 of file CbmReport.h.
Referenced by GetReportTitle(), and SetReportTitle().
|
private |
Definition at line 142 of file CbmReport.h.
Referenced by CreateReportElement().