CbmRoot
|
Create report for TOF QA. More...
#include <CbmLitTofQaReport.h>
Public Member Functions | |
CbmLitTofQaReport () | |
Constructor. | |
virtual | ~CbmLitTofQaReport () |
Destructor. | |
void | Create (CbmHistManager *histManager, const std::string &outputDir) |
Main function which creates report data. | |
void | Create (const std::string &fileName, const std::string &outputDir) |
Main function which creates report data. | |
TH1 * | H1 (const std::string &name) const |
Return pointer to TH1 histogram. | |
TH2 * | H2 (const std::string &name) const |
Return pointer to TH2 histogram. | |
TH3 * | H3 (const std::string &name) const |
Return pointer to TH3 histogram. | |
CbmHistManager * | HM () const |
Return pointer to Histogram manager. | |
void | DrawH1ByPattern (const std::string &histNamePattern) |
Select by pattern TH1 histograms and draw each histogram on separate canvas. | |
void | DrawH1ByPattern (const std::string &histNamePattern, std::string(*labelFormatter)(const std::string &, const CbmHistManager *)) |
Select by pattern TH1 histograms and draw all histograms on the same canvas. | |
void | DrawH2ByPattern (const std::string &histNamePattern, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const std::string &drawOpt="") |
Select by pattern TH2 histograms and draw each histogram on separate canvas. | |
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 () |
Inherited from CbmSimulationReport. | |
virtual void | Draw () |
Inherited from CbmSimulationReport. | |
void | FitHistograms () |
void | FitFunction (TGraph *graph) |
ClassDef (CbmLitTofQaReport, 1) | |
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. | |
Private Attributes | |
CbmHistManager * | fHM |
std::string | fReportName |
std::string | fReportTitle |
std::string | fOutputDir |
ReportType | fReportType |
CbmReportElement * | fR |
std::ostream * | fOut |
std::vector< TCanvas * > | fCanvases |
CbmLitTofQaReport::CbmLitTofQaReport | ( | ) |
Constructor.
Definition at line 38 of file CbmLitTofQaReport.cxx.
References CbmReport::SetReportName().
|
virtual |
Destructor.
Definition at line 40 of file CbmLitTofQaReport.cxx.
|
protected |
|
protectedvirtual |
Inherited from CbmSimulationReport.
Implements CbmSimulationReport.
Definition at line 42 of file CbmLitTofQaReport.cxx.
References CbmReportElement::DocumentBegin(), CbmReportElement::DocumentEnd(), CbmReport::Out(), CbmReport::PrintCanvases(), CbmReport::R(), 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.
[in] | histManager | Pointer to histogram manager for which report is created. |
[in] | outputDir | Path to directory for output results. |
Referenced by CbmLitClusteringQa::Finish(), CbmLitFitQa::Finish(), CbmLitRadLengthQa::Finish(), CbmLitTofQa::Finish(), CbmLitTrackingQa::Finish(), CbmStsDigitizeQa::Finish(), CbmLitFieldApproximationQa::Init(), and CbmLitFieldQa::Init().
|
inherited |
Main function which creates report data.
Same pattern is used here.
[in] | fileName | Name of the file with histograms. |
[in] | outputDir | Path to directory for output results. |
|
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 94 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(), 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(), FitHistograms(), CbmAnaJpsiReport::SignalOverBgAllSteps(), and CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps().
|
privateinherited |
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 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 71 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 65 of file CbmReport.cxx.
Referenced by CbmReport::CreateReports().
|
protectedvirtual |
Inherited from CbmSimulationReport.
Implements CbmReport.
Definition at line 53 of file CbmLitTofQaReport.cxx.
References CbmSimulationReport::DrawH1ByPattern(), CbmSimulationReport::DrawH2ByPattern(), FitHistograms(), CbmSimulationReport::HM(), kLinear, kLog, and CbmHistManager::NormalizeToIntegralByPattern().
|
inlineprotectedinherited |
Inherited from TObject. This method is implemented in order to avoid warnings.
Definition at line 97 of file CbmReport.h.
|
inherited |
Select by pattern TH1 histograms and draw each histogram on separate canvas.
[in] | histNamePattern | Name pattern for histogram. |
Referenced by CbmLitClusteringQaReport::Draw(), Draw(), CbmStsDigitizeQaReport::Draw(), and CbmLitRadLengthQaReport::DrawDetectorStation().
|
inherited |
Select by pattern TH1 histograms and draw all histograms on the same canvas.
[in] | histNamePattern | Name pattern for histogram. |
|
inherited |
Select by pattern TH2 histograms and draw each histogram on separate canvas.
[in] | histNamePattern | Name pattern for histogram. |
[in] | logx | Specify logarithmic or linear scale for X axis. |
[in] | logy | Specify logarithmic or linear scale for Y axis. |
[in] | logz | Specify logarithmic or linear scale for Z axis. |
[in] | drawOpt | Other drawing options (see ROOT documentation for details). |
Definition at line 97 of file CbmSimulationReport.cxx.
References CbmReport::CreateCanvas(), DrawH2(), CbmReport::GetReportName(), CbmHistManager::H2Vector(), and CbmSimulationReport::HM().
Referenced by CbmLitClusteringQaReport::Draw(), Draw(), CbmLitRadLengthQaReport::DrawDetectorStation(), and CbmLitClusteringQaReport::DrawResidualsAndPulls().
|
protected |
Definition at line 112 of file CbmLitTofQaReport.cxx.
References DrawGraph(), and kLinear.
Referenced by FitHistograms().
|
protected |
Definition at line 75 of file CbmLitTofQaReport.cxx.
References CbmReport::CreateCanvas(), DrawGraph(), DrawH2(), FitFunction(), CbmHistManager::H2(), CbmSimulationReport::HM(), and kLinear.
Referenced by Draw().
|
inlineinherited |
Definition at line 76 of file CbmReport.h.
References CbmReport::fOutputDir.
Referenced by CbmReport::CreateReportElement(), CbmReport::SaveCanvasesAsImages(), and CbmReport::WriteCanvases().
|
inlineinherited |
Definition at line 74 of file CbmReport.h.
References CbmReport::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().
|
inlineinherited |
Definition at line 75 of file CbmReport.h.
References CbmReport::fReportTitle.
|
inlineinherited |
Return pointer to TH1 histogram.
[in] | name | Name of histogram. |
Definition at line 77 of file CbmSimulationReport.h.
References CbmHistManager::H1(), and CbmSimulationReport::HM().
Referenced by CbmLitClusteringQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculatePionSuppressionHistos(), CbmAnaJpsiReport::Draw(), CbmAnaJpsiReport::DrawAnalysisStepsH1(), CbmLitRadLengthQaReport::DrawDetector(), CbmLitTrackingQaReport::DrawEfficiency(), CbmStsDigitizeQaReport::DrawHistograms(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmAnaJpsiReport::DrawMinvMismatches(), CbmAnaJpsiReport::DrawMinvSAndBg(), CbmAnaJpsiReport::DrawMomEffAllSteps(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmAnaJpsiReport::DrawPairSourceAnaSteps(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmAnaJpsiReport::DrawSignalMinv(), CbmAnaJpsiReport::DrawSourceTypesH1(), CbmLitTrackingQaReport::PrintTrackHits(), CbmAnaJpsiReport::SignalOverBg(), and CbmAnaJpsiReport::SignalOverBgAllSteps().
|
inlineinherited |
Return pointer to TH2 histogram.
[in] | name | Name of histogram. |
Definition at line 84 of file CbmSimulationReport.h.
References CbmHistManager::H2(), and CbmSimulationReport::HM().
Referenced by CbmAnaJpsiReport::Draw(), CbmAnaJpsiReport::Draw2DCut(), CbmStsDigitizeQaReport::Draw2dHistograms(), CbmAnaJpsiReport::DrawAnalysisStepsH2(), CbmAnaJpsiReport::DrawBgSource2D(), CbmAnaJpsiReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmAnaJpsiReport::DrawMomMcVsRec(), CbmAnaJpsiReport::DrawPtYEfficiency(), and CbmLitFitQaReport::DrawTrackParamsAtVertex().
|
inlineinherited |
Return pointer to TH3 histogram.
[in] | name | Name of histogram. |
Definition at line 91 of file CbmSimulationReport.h.
References CbmHistManager::H3(), and CbmSimulationReport::HM().
|
inlineinherited |
Return pointer to Histogram manager.
Definition at line 96 of file CbmSimulationReport.h.
References CbmSimulationReport::fHM.
Referenced by CbmLitClusteringQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculateEfficiencyHistos(), CbmLitTrackingQaReport::CalculatePionSuppressionHistos(), CbmLitClusteringQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmStsDigitizeQaReport::Create(), CbmAnaJpsiReport::Draw(), Draw(), CbmStsDigitizeQaReport::Draw2dHistograms(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitFieldApproximationQaReport::DrawApr(), CbmLitRadLengthQaReport::DrawDetector(), CbmLitTrackingQaReport::DrawEfficiency(), CbmLitTrackingQaReport::DrawEfficiencyHistos(), CbmLitFieldQaReport::DrawFieldAlongZ(), CbmLitFieldQaReport::DrawFieldRichPmtPlane(), CbmLitFieldQaReport::DrawFieldSlices(), CbmSimulationReport::DrawH2ByPattern(), CbmStsDigitizeQaReport::DrawHistograms(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmLitTrackingQaReport::DrawHitsHistos(), CbmStsDigitizeQaReport::DrawLogHistograms(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), CbmLitTrackingQaReport::DrawPionSuppression(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParams(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmLitTrackingQaReport::FillGlobalTrackVariants(), FitHistograms(), CbmSimulationReport::H1(), CbmSimulationReport::H2(), CbmSimulationReport::H3(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), CbmLitTrackingQaReport::PrintTrackHits(), CbmLitTrackingQaReport::PrintTrackingEfficiency(), CbmLitClusteringQaReport::ScaleAndShrinkHistograms(), CbmStsDigitizeQaReport::ScaleHistograms(), and CbmAnaJpsiReport::SignalOverBgAllSteps().
|
inlineinherited |
All text output goes to this stream.
Definition at line 66 of file CbmReport.h.
References CbmReport::fOut.
Referenced by CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFieldQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), Create(), CbmLitTrackingQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmStsDigitizeQaReport::Create(), and CbmReport::PrintCanvases().
|
protectedinherited |
Print images created from canvases in the report.
Definition at line 121 of file CbmReport.cxx.
References CbmReport::fCanvases, CbmReportElement::Image(), CbmReport::Out(), and CbmReport::R().
Referenced by CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFieldQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), Create(), CbmLitTrackingQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), and CbmStsDigitizeQaReport::Create().
|
inlineinherited |
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 CbmReport::fR.
Referenced by CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitClusteringQaReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFieldQaReport::Create(), CbmLitFitQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitRadLengthQaReport::Create(), Create(), CbmLitTrackingQaReport::Create(), CbmLitTrackingQaStudyReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmStsDigitizeQaReport::Create(), CbmReport::PrintCanvases(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), CbmRichGeoTestStudyReport::PrintRow(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
protectedinherited |
Save all canvases to images.
Definition at line 101 of file CbmReport.cxx.
References CbmReport::fCanvases, CbmReport::GetOutputDir(), and Cbm::SaveCanvasAsImage().
Referenced by CbmReport::CreateReports().
|
inlineinherited |
Definition at line 71 of file CbmReport.h.
References CbmReport::fOutputDir.
|
inlineinherited |
Definition at line 69 of file CbmReport.h.
References CbmReport::fReportName.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmAnaJpsiReport::CbmAnaJpsiReport(), CbmAnaJpsiSuperEventReport::CbmAnaJpsiSuperEventReport(), CbmLitClusteringQaReport::CbmLitClusteringQaReport(), CbmLitClusteringQaStudyReport::CbmLitClusteringQaStudyReport(), CbmLitFieldApproximationQaReport::CbmLitFieldApproximationQaReport(), CbmLitFieldQaReport::CbmLitFieldQaReport(), CbmLitFitQaReport::CbmLitFitQaReport(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), CbmLitRadLengthQaReport::CbmLitRadLengthQaReport(), CbmLitTofQaReport(), CbmLitTrackingQaReport::CbmLitTrackingQaReport(), CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport(), CbmRichGeoTestStudyReport::CbmRichGeoTestStudyReport(), and CbmStsDigitizeQaReport::CbmStsDigitizeQaReport().
|
inlineinherited |
Definition at line 70 of file CbmReport.h.
References CbmReport::fReportTitle.
Referenced by CbmAnaDielectronStudyReportAll::CbmAnaDielectronStudyReportAll(), CbmLitFitQaStudyReport::CbmLitFitQaStudyReport(), and CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport().
|
protectedinherited |
Write canvases to file.
Definition at line 112 of file CbmReport.cxx.
References CbmReport::fCanvases, and CbmReport::GetOutputDir().
|
privateinherited |
Definition at line 149 of file CbmReport.h.
Referenced by CbmReport::CreateCanvas(), CbmReport::PrintCanvases(), CbmReport::SaveCanvasesAsImages(), and CbmReport::WriteCanvases().
|
privateinherited |
Definition at line 123 of file CbmSimulationReport.h.
Referenced by CbmSimulationReport::HM().
|
mutableprivateinherited |
Definition at line 144 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement(), and CbmReport::Out().
|
privateinherited |
Definition at line 141 of file CbmReport.h.
Referenced by CbmReport::GetOutputDir(), and CbmReport::SetOutputDir().
|
privateinherited |
Definition at line 143 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement(), and CbmReport::R().
|
privateinherited |
Definition at line 139 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement(), CbmReport::GetReportName(), and CbmReport::SetReportName().
|
privateinherited |
Definition at line 140 of file CbmReport.h.
Referenced by CbmReport::GetReportTitle(), and CbmReport::SetReportTitle().
|
privateinherited |
Definition at line 142 of file CbmReport.h.
Referenced by CbmReport::CreateReportElement().