15#include "TProfile2D.h"
53 if (
HM()->Exists(
"hrl_Thickness_" + detName +
"_H1")) {
54 CreateCanvas(
string(
"hrl_Thickness_" + detName +
"_H1").c_str(),
string(
"hrl_Thickness_" + detName +
"_H1").c_str(),
56 DrawH1(
HM()->
H1(
"hrl_Thickness_" + detName +
"_H1"));
59 if (
HM()->Exists(
"hrl_Thickness_" + detName +
"_P2")) {
60 CreateCanvas(
string(
"hrl_Thickness_" + detName +
"_P2").c_str(),
string(
"hrl_Thickness_" + detName +
"_P2").c_str(),
62 DrawH2(
HM()->P2(
"hrl_Thickness_" + detName +
"_P2"));
65 if (
HM()->Exists(
"hrl_RadThickness_" + detName +
"_H1")) {
66 CreateCanvas(
string(
"hrl_RadThickness_" + detName +
"_H1").c_str(),
67 string(
"hrl_RadThickness_" + detName +
"_H1").c_str(), 1200, 1000);
68 DrawH1(
HM()->
H1(
"hrl_RadThickness_" + detName +
"_H1"));
71 if (
HM()->Exists(
"hrl_RadThickness_" + detName +
"_P2")) {
72 CreateCanvas(
string(
"hrl_RadThickness_" + detName +
"_P2").c_str(),
73 string(
"hrl_RadThickness_" + detName +
"_P2").c_str(), 1200, 1000);
74 DrawH2(
HM()->P2(
"hrl_RadThickness_" + detName +
"_P2"));
77 CreateCanvas(
string(
"hrl_RadThickness_" + detName +
"_P2_zoom").c_str(),
78 string(
"hrl_RadThickness_" + detName +
"_P2_zoom").c_str(), 1200, 1000);
79 TProfile2D* pr = (TProfile2D*)
HM()->
P2(
"hrl_RadThickness_" + detName +
"_P2")->Clone();
80 pr->GetZaxis()->SetRangeUser(0, 100);
84 if (
HM()->Exists(
"hrl_ThicknessSilicon_" + detName +
"_H1")) {
85 CreateCanvas(
string(
"hrl_ThicknessSilicon_" + detName +
"_H1").c_str(),
86 string(
"hrl_ThicknessSilicon_" + detName +
"_H1").c_str(), 1200, 1000);
87 DrawH1(
HM()->
H1(
"hrl_ThicknessSilicon_" + detName +
"_H1"));
90 if (
HM()->Exists(
"hrl_ThicknessSilicon_" + detName +
"_P2")) {
91 CreateCanvas(
string(
"hrl_ThicknessSilicon_" + detName +
"_P2").c_str(),
92 string(
"hrl_ThicknessSilicon_" + detName +
"_P2").c_str(), 1200, 1000);
93 DrawH2(
HM()->P2(
"hrl_ThicknessSilicon_" + detName +
"_P2"));
ClassImp(CbmConverterManager)
void SetDefaultDrawStyle()
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 DrawH2(TH2 *hist, HistScale logx, HistScale logy, HistScale logz, const string &drawOpt)
Helper functions for drawing 1D and 2D histograms and graphs.
Create report for radiation length QA.
Abstract class for basic report elements (headers, tables, images etc.).
TProfile2D * P2(const std::string &name) const
Return pointer to TProfile2D.
Create report for radiation length QA.
virtual void Draw()
Inherited from CbmSimulationReport.
CbmLitRadLengthQaReport()
Constructor.
virtual void Create()
Inherited from CbmSimulationReport.
virtual ~CbmLitRadLengthQaReport()
Destructor.
void DrawDetector(const string &detName)
void DrawDetectorStation(const string &detName)
virtual std::string Title(int size, const std::string &title) const =0
Return string with title.
virtual std::string DocumentBegin() const =0
Return string with open tags for document.
virtual std::string DocumentEnd() const =0
Return string with close tags of the document.
std::ostream & Out() const
All text output goes to this stream.
void SetReportName(const std::string &name)
void PrintCanvases() const
Print images created from canvases in the report.
const CbmReportElement * R() const
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReport...
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...
Base class for simulation reports.
void DrawH1ByPattern(const std::string &histNamePattern)
Select by pattern TH1 histograms and draw each histogram on separate canvas.
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.