Go to the documentation of this file.
11 #include "TProfile2D.h"
46 if (
HM()->Exists(
"hrl_Thickness_" + detName +
"_H1")) {
48 CreateCanvas(
string(
"hrl_Thickness_" + detName +
"_H1").c_str(),
49 string(
"hrl_Thickness_" + detName +
"_H1").c_str(),
52 DrawH1(
HM()->
H1(
"hrl_Thickness_" + detName +
"_H1"));
55 if (
HM()->Exists(
"hrl_Thickness_" + detName +
"_P2")) {
57 CreateCanvas(
string(
"hrl_Thickness_" + detName +
"_P2").c_str(),
58 string(
"hrl_Thickness_" + detName +
"_P2").c_str(),
61 DrawH2(
HM()->P2(
"hrl_Thickness_" + detName +
"_P2"));
64 if (
HM()->Exists(
"hrl_RadThickness_" + detName +
"_H1")) {
66 CreateCanvas(
string(
"hrl_RadThickness_" + detName +
"_H1").c_str(),
67 string(
"hrl_RadThickness_" + detName +
"_H1").c_str(),
70 DrawH1(
HM()->
H1(
"hrl_RadThickness_" + detName +
"_H1"));
73 if (
HM()->Exists(
"hrl_RadThickness_" + detName +
"_P2")) {
75 CreateCanvas(
string(
"hrl_RadThickness_" + detName +
"_P2").c_str(),
76 string(
"hrl_RadThickness_" + detName +
"_P2").c_str(),
79 DrawH2(
HM()->P2(
"hrl_RadThickness_" + detName +
"_P2"));
82 if (
HM()->Exists(
"hrl_ThicknessSilicon_" + detName +
"_H1")) {
84 CreateCanvas(
string(
"hrl_ThicknessSilicon_" + detName +
"_H1").c_str(),
85 string(
"hrl_ThicknessSilicon_" + detName +
"_H1").c_str(),
88 DrawH1(
HM()->
H1(
"hrl_ThicknessSilicon_" + detName +
"_H1"));
91 if (
HM()->Exists(
"hrl_ThicknessSilicon_" + detName +
"_P2")) {
93 CreateCanvas(
string(
"hrl_ThicknessSilicon_" + detName +
"_P2").c_str(),
94 string(
"hrl_ThicknessSilicon_" + detName +
"_P2").c_str(),
97 DrawH2(
HM()->P2(
"hrl_ThicknessSilicon_" + detName +
"_P2"));
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 automati...
virtual void Draw()
Inherited from CbmSimulationReport.
virtual std::string DocumentBegin() const =0
Return string with open tags for document.
virtual ~CbmLitRadLengthQaReport()
Destructor.
virtual std::string DocumentEnd() const =0
Return string with close tags of the document.
virtual void Create()
Inherited from CbmSimulationReport.
CbmLitRadLengthQaReport()
Constructor.
const CbmReportElement * R() const
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReport...
Helper functions for drawing 1D and 2D histograms and graphs.
void DrawDetectorStation(const string &detName)
Abstract class for basic report elements (headers, tables, images etc.).
void SetReportName(const std::string &name)
void DrawH1(TH1 *hist, HistScale logx, HistScale logy, const string &drawOpt, Int_t color, Int_t lineWidth, Int_t lineStyle, Int_t markerSize, Int_t markerStyle)
void DrawDetector(const string &detName)
void PrintCanvases() const
Print images created from canvases in the report.
TH1 * H1(const std::string &name) const
Return pointer to TH1 histogram.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
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.
CbmHistManager * HM() const
Return pointer to Histogram manager.
Base class for simulation reports.
std::ostream & Out() const
All text output goes to this stream.
void DrawH2(TH2 *hist, HistScale logx, HistScale logy, HistScale logz, const string &drawOpt)
Create report for radiation length QA.
virtual std::string Title(int size, const std::string &title) const =0
Return string with title.
Create report for radiation length QA.