CbmRoot
|
Creates study report for RICH geometry testing. More...
#include <CbmRichGeoTestStudyReport.h>
Public Member Functions | |
CbmRichGeoTestStudyReport () | |
Constructor. More... | |
virtual | ~CbmRichGeoTestStudyReport () |
Destructor. More... | |
void | Create (const std::vector< CbmHistManager * > &histManagers, const std::vector< std::string > &studyNames, const std::string &outputDir) |
Main function which creates report data. More... | |
void | Create (const std::vector< std::string > &fileNames, const std::vector< std::string > &studyNames, const std::string &outputDir) |
Main function which creates report data. More... | |
const std::vector< CbmHistManager * > & | HM () const |
CbmHistManager * | HM (Int_t index) const |
const std::vector< std::string > & | GetStudyNames () const |
const std::string & | GetStudyName (Int_t index) const |
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 | |
void | Create () |
Inherited from CbmLitStudyReport. More... | |
void | Draw () |
Inherited from CbmLitStudyReport. More... | |
virtual string | PrintRow (const string &property, const string &name) |
Print one row in a table. More... | |
virtual string | PrintValue (int studyId, const string &valueTitle) |
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... | |
Private Attributes | |
std::vector< CbmHistManager * > | fHM |
std::vector< std::string > | fStudyNames |
std::string | fReportName |
std::string | fReportTitle |
std::string | fOutputDir |
ReportType | fReportType |
CbmReportElement * | fR |
std::ostream * | fOut |
std::vector< TCanvas * > | fCanvases |
Creates study report for RICH geometry testing.
Generates report from a number of results of different simulations and reconstructions. Creates comparison tables. Very useful for studies since all numbers are automatically put in the comparison tables.
Definition at line 28 of file CbmRichGeoTestStudyReport.h.
CbmRichGeoTestStudyReport::CbmRichGeoTestStudyReport | ( | ) |
Constructor.
Definition at line 18 of file CbmRichGeoTestStudyReport.cxx.
References CbmReport::SetReportName().
|
virtual |
Destructor.
Definition at line 22 of file CbmRichGeoTestStudyReport.cxx.
|
protectedvirtual |
Inherited from CbmLitStudyReport.
Implements CbmStudyReport.
Definition at line 24 of file CbmRichGeoTestStudyReport.cxx.
References CbmReportElement::DocumentBegin(), CbmReportElement::DocumentEnd(), CbmStudyReport::GetStudyNames(), CbmReport::Out(), PrintRow(), CbmReport::R(), CbmReportElement::TableBegin(), CbmReportElement::TableEnd(), and CbmReportElement::Title().
|
inherited |
Main function which creates report data.
Non virtual interface pattern is used here. User always creates simulation report using this public non virtual method. In order to configure concrete report generation class user has to implement protected Create() method and getters for the file names.
[in] | histManagers | Array of histogram managers for which report is created. |
[in] | studyNames | Names of studies. |
[in] | outputDir | name of the output directory. |
Referenced by CbmAnaDielectronReports::CreateStudyReport().
|
inherited |
Main function which creates report data.
Same pattern is used here.
[in] | fileNames | Array of file names for which report is created. |
[in] | studyNames | Names of studies. |
[in] | outputDir | name of the output directory. |
|
protectedinherited |
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 CbmReport::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().
|
privateinherited |
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 CbmReport::fOut, CbmReport::fR, CbmReport::fReportName, CbmReport::fReportType, CbmReport::GetOutputDir(), kCoutReport, kHtmlReport, kLatexReport, and kTextReport.
Referenced by CbmReport::CreateReports().
|
protectedinherited |
Create all available report types.
Definition at line 60 of file CbmReport.cxx.
References CbmReport::Create(), CbmReport::CreateReportElement(), CbmReport::DeleteReportElement(), CbmReport::Draw(), kCoutReport, kHtmlReport, kLatexReport, kTextReport, and CbmReport::SaveCanvasesAsImages().
|
privateinherited |
Delete report element. Normally should be called at the end of Create function.
Definition at line 55 of file CbmReport.cxx.
Referenced by CbmReport::CreateReports().
|
inlineprotectedvirtual |
Inherited from CbmLitStudyReport.
Implements CbmReport.
Definition at line 49 of file CbmRichGeoTestStudyReport.h.
|
inlineprotectedinherited |
Inherited from TObject. This method is implemented in order to avoid warnings.
Definition at line 87 of file CbmReport.h.
|
inlineinherited |
Definition at line 66 of file CbmReport.h.
References CbmReport::fOutputDir.
Referenced by CbmReport::CreateReportElement(), CbmReport::SaveCanvasesAsImages(), and CbmReport::WriteCanvases().
|
inlineinherited |
Definition at line 64 of file CbmReport.h.
References CbmReport::fReportName.
Referenced by CbmStsDigitizeQaReport::Draw2dHistograms(), CbmLitFieldApproximationQaReport::DrawApr(), CbmSimulationReport::DrawH2ByPattern(), CbmStsDigitizeQaReport::DrawHistograms(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), and CbmLitFieldApproximationQaReport::DrawSlices().
|
inlineinherited |
Definition at line 65 of file CbmReport.h.
References CbmReport::fReportTitle.
|
inlineinherited |
Definition at line 77 of file CbmStudyReport.h.
References CbmStudyReport::fStudyNames.
Referenced by CbmLitTrackingQaStudyReport::DrawAccAndRec(), and CbmLitTrackingQaStudyReport::DrawEfficiency().
|
inlineinherited |
Definition at line 76 of file CbmStudyReport.h.
References CbmStudyReport::fStudyNames.
Referenced by Create(), CbmAnaDielectronStudyReportAll::DrawBgMinv(), CbmAnaDielectronStudyReportAll::DrawSBgMinv(), CbmLitFitQaStudyReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitClusteringQaStudyReport::PrintNofObjects(), PrintRow(), and CbmLitTrackingQaStudyReport::PrintTable().
|
inlineinherited |
Definition at line 74 of file CbmStudyReport.h.
References CbmStudyReport::fHM.
Referenced by CbmLitTrackingQaStudyReport::CalculateEfficiencyHistos(), CbmLitTrackingQaStudyReport::DrawAccAndRec(), CbmAnaDielectronStudyReportAll::DrawBgMinv(), CbmLitTrackingQaStudyReport::DrawEfficiency(), CbmLitTrackingQaStudyReport::DrawEfficiencyHistos(), CbmAnaDielectronStudyReportAll::DrawSBgMinv(), CbmLitFitQaStudyReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitClusteringQaStudyReport::PrintNofObjects(), and CbmLitTrackingQaStudyReport::PrintTable().
|
inlineinherited |
Definition at line 75 of file CbmStudyReport.h.
References CbmStudyReport::fHM.
|
inlineinherited |
All text output goes to this stream.
Definition at line 56 of file CbmReport.h.
References CbmReport::fOut.
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitClusteringQaReport::Create(), Create(), CbmLitTrackingQaStudyReport::Create(), and CbmReport::PrintCanvases().
|
protectedinherited |
Print images created from canvases in the report.
Definition at line 109 of file CbmReport.cxx.
References CbmReport::fCanvases, i, CbmReportElement::Image(), CbmReport::Out(), and CbmReport::R().
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitFitQaReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitClusteringQaReport::Create(), and CbmLitTrackingQaStudyReport::Create().
|
protectedvirtual |
Print one row in a table.
[in] | property | Name of the property in property tree. |
[in] | name | Name of the row. |
Definition at line 93 of file CbmRichGeoTestStudyReport.cxx.
References CbmStudyReport::GetStudyNames(), i, PrintValue(), CbmReport::R(), and CbmReportElement::TableRow().
Referenced by Create().
|
protectedvirtual |
Definition at line 102 of file CbmRichGeoTestStudyReport.cxx.
Referenced by PrintRow().
|
inlineinherited |
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 CbmReport::fR.
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(), CbmLitTrackingQaStudyReport::Create(), Create(), CbmReport::PrintCanvases(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), PrintRow(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
protectedinherited |
Save all canvases to images.
Definition at line 91 of file CbmReport.cxx.
References CbmReport::fCanvases, CbmReport::GetOutputDir(), i, and Cbm::SaveCanvasAsImage().
Referenced by CbmReport::CreateReports().
|
inlineinherited |
Definition at line 61 of file CbmReport.h.
References CbmReport::fOutputDir.
|
inlineinherited |
Definition at line 59 of file CbmReport.h.
References CbmReport::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(), and CbmStsDigitizeQaReport::CbmStsDigitizeQaReport().
|
inlineinherited |
Definition at line 60 of file CbmReport.h.
References CbmReport::fReportTitle.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), and CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport().
|
protectedinherited |
Write canvases to file.
Definition at line 101 of file CbmReport.cxx.
References CbmReport::fCanvases, CbmReport::GetOutputDir(), and i.
|
privateinherited |
Definition at line 140 of file CbmReport.h.
Referenced by CbmReport::CreateCanvas(), CbmReport::PrintCanvases(), CbmReport::SaveCanvasesAsImages(), and CbmReport::WriteCanvases().
|
privateinherited |
Definition at line 82 of file CbmStudyReport.h.
Referenced by CbmStudyReport::HM().
|
mutableprivateinherited |
Definition at line 135 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement(), and CbmReport::Out().
|
privateinherited |
Definition at line 132 of file CbmReport.h.
Referenced by CbmReport::GetOutputDir(), and CbmReport::SetOutputDir().
|
privateinherited |
Definition at line 134 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement(), and CbmReport::R().
|
privateinherited |
Definition at line 130 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement(), CbmReport::GetReportName(), and CbmReport::SetReportName().
|
privateinherited |
Definition at line 131 of file CbmReport.h.
Referenced by CbmReport::GetReportTitle(), and CbmReport::SetReportTitle().
|
privateinherited |
Definition at line 133 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement().
|
privateinherited |
Definition at line 83 of file CbmStudyReport.h.
Referenced by CbmStudyReport::GetStudyName(), and CbmStudyReport::GetStudyNames().