Go to the documentation of this file.
7 #ifndef CBMSIMULATIONREPORT_H_
8 #define CBMSIMULATIONREPORT_H_
61 void Create(
const std::string& fileName,
const std::string& outputDir);
73 TH1*
H1(
const std::string& name)
const {
return HM()->
H1(name); }
80 TH2*
H2(
const std::string& name)
const {
return HM()->
H2(name); }
87 TH3*
H3(
const std::string& name)
const {
return HM()->
H3(name); }
105 std::string (*labelFormatter)(
const std::string&,
120 const std::string& drawOpt =
"");
CbmSimulationReport & operator=(const CbmSimulationReport &)
TH2 * H2(const std::string &name) const
Return pointer to TH2 histogram.
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.
HistScale
Define linear or logarithmic scale for drawing.
TH2 * H2(const std::string &name) const
Return pointer to TH2 histogram.
virtual void Create()=0
Inherited from CbmReport. Pure abstract function which is called from public Create() function.
CbmSimulationReport(const CbmSimulationReport &)
virtual ~CbmSimulationReport()
Destructor.
Helper functions for drawing 1D and 2D histograms and graphs.
TH3 * H3(const std::string &name) const
Return pointer to TH3 histogram.
void Create(const std::string &fileName, const std::string &outputDir)
Main function which creates report data.
void Create(CbmHistManager *histManager, const std::string &outputDir)
Main function which creates report data.
TH1 * H1(const std::string &name) const
Return pointer to TH1 histogram.
TH1 * H1(const std::string &name) const
Return pointer to TH1 histogram.
void DrawH1ByPattern(const std::string &histNamePattern)
Select by pattern TH1 histograms and draw each histogram on separate 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.
TH3 * H3(const std::string &name) const
Return pointer to TH3 histogram.
CbmHistManager * HM() const
Return pointer to Histogram manager.
Base class for simulation reports.
CbmSimulationReport()
Constructor.