CbmRoot
Loading...
Searching...
No Matches
CbmAnaJpsiReport Class Reference

#include <CbmAnaJpsiReport.h>

Inheritance diagram for CbmAnaJpsiReport:
[legend]
Collaboration diagram for CbmAnaJpsiReport:
[legend]

Public Member Functions

 CbmAnaJpsiReport ()
 Constructor.
 
virtual ~CbmAnaJpsiReport ()
 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.
 
CbmHistManagerHM () 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 CbmReportElementR () 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 DrawAnalysisStepsH2 (const std::string &hName, bool DoDrawEfficiency)
 
void DrawAnalysisStepsH1 (const std::string &hName, bool doScale, double min=-1., double max=-1.)
 
void DrawSourceTypesH1 (const std::string &hName, bool doScale=false)
 
void DrawCutH1 (const std::string &hName, double cutValue, bool doScale=false)
 
void Draw2DCut (const std::string &hist)
 
void DrawCutDistributions ()
 
void DrawSignalMinv ()
 
void DrawMinvMismatches (int step)
 
void DrawMinvMismatchesAll ()
 
void DrawEfficiency (const std::string &h, const std::string &hMC)
 
void DrawPtYEfficiency (int step)
 
void DrawPtYEfficiencyAll ()
 
void SetAnalysisStepLabels (TH1 *h)
 
double SignalOverBg (int step)
 
void SignalOverBgAllSteps ()
 
void DrawMinvSAndBg (int step)
 
void DrawMinvSAndBgAllSteps ()
 
void DrawMomEffAllSteps ()
 
void DrawMomMcVsRec ()
 
void DrawPairSourceAnaSteps (int step)
 
void DrawPairSource ()
 
void DrawBgSource2D (const std::string &histName, const std::vector< std::string > &yLabels, const std::string &zTitle)
 
 ClassDef (CbmAnaJpsiReport, 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

CbmHistManagerfHM
 
std::string fReportName
 
std::string fReportTitle
 
std::string fOutputDir
 
ReportType fReportType
 
CbmReportElementfR
 
std::ostream * fOut
 
std::vector< TCanvas * > fCanvases
 

Detailed Description

Definition at line 16 of file CbmAnaJpsiReport.h.

Constructor & Destructor Documentation

◆ CbmAnaJpsiReport()

CbmAnaJpsiReport::CbmAnaJpsiReport ( )

Constructor.

Definition at line 39 of file CbmAnaJpsiReport.cxx.

References CbmReport::SetReportName().

◆ ~CbmAnaJpsiReport()

CbmAnaJpsiReport::~CbmAnaJpsiReport ( )
virtual

Destructor.

Definition at line 41 of file CbmAnaJpsiReport.cxx.

Member Function Documentation

◆ ClassDef()

CbmAnaJpsiReport::ClassDef ( CbmAnaJpsiReport ,
1  )
protected

◆ Create() [1/3]

void CbmAnaJpsiReport::Create ( )
protectedvirtual

◆ Create() [2/3]

void CbmSimulationReport::Create ( CbmHistManager * histManager,
const std::string & outputDir )
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.

Parameters
[in]histManagerPointer to histogram manager for which report is created.
[in]outputDirPath to directory for output results.

Referenced by CbmLitClusteringQa::Finish(), CbmLitFitQa::Finish(), CbmLitRadLengthQa::Finish(), CbmLitTofQa::Finish(), CbmLitTrackingQa::Finish(), CbmStsDigitizeQa::Finish(), CbmLitFieldApproximationQa::Init(), and CbmLitFieldQa::Init().

◆ Create() [3/3]

void CbmSimulationReport::Create ( const std::string & fileName,
const std::string & outputDir )
inherited

Main function which creates report data.

Same pattern is used here.

Parameters
[in]fileNameName of the file with histograms.
[in]outputDirPath to directory for output results.

◆ CreateCanvas()

TCanvas * CbmReport::CreateCanvas ( const char * name,
const char * title,
Int_t ww,
Int_t wh )
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 Draw(), CbmAnaJpsiSuperEventReport::Draw(), Draw2DCut(), CbmStsDigitizeQaReport::Draw2dHistograms(), CbmLitTrackingQaReport::DrawAccAndRec(), CbmLitTrackingQaStudyReport::DrawAccAndRec(), DrawAnalysisStepsH1(), DrawAnalysisStepsH2(), CbmLitFieldApproximationQaReport::DrawApr(), CbmAnaDielectronStudyReportAll::DrawBgMinv(), DrawBgSource2D(), CbmAnaJpsiSuperEventReport::DrawComparison(), 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(), DrawMinvMismatchesAll(), CbmAnaJpsiSuperEventReport::DrawMinvMismatchPt(), DrawMinvSAndBgAllSteps(), CbmAnaJpsiSuperEventReport::DrawMinvSignalBg(), DrawMomEffAllSteps(), DrawMomMcVsRec(), CbmLitClusteringQaReport::DrawNofObjectsHistograms(), CbmStsDigitizeQaReport::DrawNofObjectsHistograms(), DrawPairSource(), CbmAnaJpsiSuperEventReport::DrawPairSource(), CbmLitTrackingQaReport::DrawPionSuppression(), DrawPtYEfficiencyAll(), CbmLitFitQaReport::DrawResidualAndPullHistograms(), CbmLitClusteringQaReport::DrawResidualsAndPulls(), DrawSignalMinv(), CbmLitFieldApproximationQaReport::DrawSlices(), CbmLitFitQaReport::DrawTrackMomentumAtVertex(), CbmLitFitQaReport::DrawTrackParams(), CbmLitFitQaReport::DrawTrackParamsAtVertex(), CbmLitFitQaStudyReport::DrawTrackParamsAtVertex(), CbmLitTrackingQaReport::DrawYPt(), CbmLitTofQaReport::FitHistograms(), SignalOverBgAllSteps(), and CbmAnaJpsiSuperEventReport::SignalOverBgAllSteps().

◆ CreateReportElement()

void CbmReport::CreateReportElement ( ReportType reportType)
privateinherited

Create concrete CbmReportElement instance based on report type.

Parameters
[in]reportTypeType 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().

◆ CreateReports()

void CbmReport::CreateReports ( )
protectedinherited

◆ DeleteReportElement()

void CbmReport::DeleteReportElement ( )
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().

◆ Draw() [1/2]

◆ Draw() [2/2]

void CbmReport::Draw ( Option_t * )
inlineprotectedinherited

Inherited from TObject. This method is implemented in order to avoid warnings.

Definition at line 97 of file CbmReport.h.

◆ Draw2DCut()

void CbmAnaJpsiReport::Draw2DCut ( const std::string & hist)
protected

◆ DrawAnalysisStepsH1()

void CbmAnaJpsiReport::DrawAnalysisStepsH1 ( const std::string & hName,
bool doScale,
double min = -1.,
double max = -1. )
protected

◆ DrawAnalysisStepsH2()

void CbmAnaJpsiReport::DrawAnalysisStepsH2 ( const std::string & hName,
bool DoDrawEfficiency )
protected

◆ DrawBgSource2D()

void CbmAnaJpsiReport::DrawBgSource2D ( const std::string & histName,
const std::vector< std::string > & yLabels,
const std::string & zTitle )
protected

◆ DrawCutDistributions()

void CbmAnaJpsiReport::DrawCutDistributions ( )
protected

◆ DrawCutH1()

void CbmAnaJpsiReport::DrawCutH1 ( const std::string & hName,
double cutValue,
bool doScale = false )
protected

Definition at line 222 of file CbmAnaJpsiReport.cxx.

References CbmReport::CreateCanvas(), and DrawSourceTypesH1().

Referenced by DrawCutDistributions().

◆ DrawEfficiency()

void CbmAnaJpsiReport::DrawEfficiency ( const std::string & h,
const std::string & hMC )
protected

◆ DrawH1ByPattern() [1/2]

void CbmSimulationReport::DrawH1ByPattern ( const std::string & histNamePattern)
inherited

Select by pattern TH1 histograms and draw each histogram on separate canvas.

Parameters
[in]histNamePatternName pattern for histogram.

Referenced by CbmLitClusteringQaReport::Draw(), CbmLitTofQaReport::Draw(), CbmStsDigitizeQaReport::Draw(), and CbmLitRadLengthQaReport::DrawDetectorStation().

◆ DrawH1ByPattern() [2/2]

void CbmSimulationReport::DrawH1ByPattern ( const std::string & histNamePattern,
std::string(* labelFormatter )(const std::string &, const CbmHistManager *) )
inherited

Select by pattern TH1 histograms and draw all histograms on the same canvas.

Parameters
[in]histNamePatternName pattern for histogram.

◆ DrawH2ByPattern()

void CbmSimulationReport::DrawH2ByPattern ( const std::string & histNamePattern,
HistScale logx = kLinear,
HistScale logy = kLinear,
HistScale logz = kLinear,
const std::string & drawOpt = "" )
inherited

Select by pattern TH2 histograms and draw each histogram on separate canvas.

Parameters
[in]histNamePatternName pattern for histogram.
[in]logxSpecify logarithmic or linear scale for X axis.
[in]logySpecify logarithmic or linear scale for Y axis.
[in]logzSpecify logarithmic or linear scale for Z axis.
[in]drawOptOther 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(), CbmLitTofQaReport::Draw(), CbmLitRadLengthQaReport::DrawDetectorStation(), and CbmLitClusteringQaReport::DrawResidualsAndPulls().

◆ DrawMinvMismatches()

void CbmAnaJpsiReport::DrawMinvMismatches ( int step)
protected

◆ DrawMinvMismatchesAll()

void CbmAnaJpsiReport::DrawMinvMismatchesAll ( )
protected

◆ DrawMinvSAndBg()

void CbmAnaJpsiReport::DrawMinvSAndBg ( int step)
protected

◆ DrawMinvSAndBgAllSteps()

void CbmAnaJpsiReport::DrawMinvSAndBgAllSteps ( )
protected

◆ DrawMomEffAllSteps()

◆ DrawMomMcVsRec()

void CbmAnaJpsiReport::DrawMomMcVsRec ( )
protected

Definition at line 493 of file CbmAnaJpsiReport.cxx.

References CbmReport::CreateCanvas(), DrawH2(), and CbmSimulationReport::H2().

Referenced by Draw().

◆ DrawPairSource()

void CbmAnaJpsiReport::DrawPairSource ( )
protected

◆ DrawPairSourceAnaSteps()

void CbmAnaJpsiReport::DrawPairSourceAnaSteps ( int step)
protected

Definition at line 499 of file CbmAnaJpsiReport.cxx.

References DrawH1(), CbmAnaJpsiHist::fAnaSteps, CbmSimulationReport::H1(), kLinear, and kLog.

Referenced by DrawPairSource().

◆ DrawPtYEfficiency()

void CbmAnaJpsiReport::DrawPtYEfficiency ( int step)
protected

◆ DrawPtYEfficiencyAll()

void CbmAnaJpsiReport::DrawPtYEfficiencyAll ( )
protected

Definition at line 339 of file CbmAnaJpsiReport.cxx.

References CbmReport::CreateCanvas(), DrawPtYEfficiency(), and CbmAnaJpsiHist::fNofAnaSteps.

Referenced by Draw().

◆ DrawSignalMinv()

◆ DrawSourceTypesH1()

void CbmAnaJpsiReport::DrawSourceTypesH1 ( const std::string & hName,
bool doScale = false )
protected

◆ GetOutputDir()

const std::string & CbmReport::GetOutputDir ( ) const
inlineinherited

◆ GetReportName()

◆ GetReportTitle()

const std::string & CbmReport::GetReportTitle ( ) const
inlineinherited

Definition at line 75 of file CbmReport.h.

References CbmReport::fReportTitle.

◆ H1()

◆ H2()

TH2 * CbmSimulationReport::H2 ( const std::string & name) const
inlineinherited

◆ H3()

TH3 * CbmSimulationReport::H3 ( const std::string & name) const
inlineinherited

Return pointer to TH3 histogram.

Parameters
[in]nameName of histogram.
Returns
pointer to TH3 histogram.

Definition at line 91 of file CbmSimulationReport.h.

References CbmHistManager::H3(), and CbmSimulationReport::HM().

◆ HM()

CbmHistManager * CbmSimulationReport::HM ( ) const
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(), Draw(), CbmLitTofQaReport::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(), CbmLitTofQaReport::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 SignalOverBgAllSteps().

◆ Out()

◆ PrintCanvases()

◆ R()

◆ SaveCanvasesAsImages()

void CbmReport::SaveCanvasesAsImages ( ) const
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().

◆ SetAnalysisStepLabels()

void CbmAnaJpsiReport::SetAnalysisStepLabels ( TH1 * h)
protected

◆ SetOutputDir()

void CbmReport::SetOutputDir ( const std::string & outputDir)
inlineinherited

Definition at line 71 of file CbmReport.h.

References CbmReport::fOutputDir.

◆ SetReportName()

◆ SetReportTitle()

void CbmReport::SetReportTitle ( const std::string & title)
inlineinherited

◆ SignalOverBg()

double CbmAnaJpsiReport::SignalOverBg ( int step)
protected

Definition at line 360 of file CbmAnaJpsiReport.cxx.

References CbmAnaJpsiHist::fAnaSteps, and CbmSimulationReport::H1().

Referenced by SignalOverBgAllSteps().

◆ SignalOverBgAllSteps()

◆ WriteCanvases()

void CbmReport::WriteCanvases ( ) const
protectedinherited

Write canvases to file.

Definition at line 112 of file CbmReport.cxx.

References CbmReport::fCanvases, and CbmReport::GetOutputDir().

Member Data Documentation

◆ fCanvases

std::vector<TCanvas*> CbmReport::fCanvases
privateinherited

◆ fHM

CbmHistManager* CbmSimulationReport::fHM
privateinherited

Definition at line 123 of file CbmSimulationReport.h.

Referenced by CbmSimulationReport::HM().

◆ fOut

std::ostream* CbmReport::fOut
mutableprivateinherited

Definition at line 144 of file CbmReport.h.

Referenced by CbmReport::CreateReportElement(), and CbmReport::Out().

◆ fOutputDir

std::string CbmReport::fOutputDir
privateinherited

Definition at line 141 of file CbmReport.h.

Referenced by CbmReport::GetOutputDir(), and CbmReport::SetOutputDir().

◆ fR

CbmReportElement* CbmReport::fR
privateinherited

Definition at line 143 of file CbmReport.h.

Referenced by CbmReport::CreateReportElement(), and CbmReport::R().

◆ fReportName

std::string CbmReport::fReportName
privateinherited

◆ fReportTitle

std::string CbmReport::fReportTitle
privateinherited

Definition at line 140 of file CbmReport.h.

Referenced by CbmReport::GetReportTitle(), and CbmReport::SetReportTitle().

◆ fReportType

ReportType CbmReport::fReportType
privateinherited

Definition at line 142 of file CbmReport.h.

Referenced by CbmReport::CreateReportElement().


The documentation for this class was generated from the following files: