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