BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnProfQaReport.cxx
Go to the documentation of this file.
1
#include "
BmnProfQaReport.h
"
2
3
#include "BmnReportElement.h"
4
#include "
TStyle.h
"
5
6
BmnProfQaReport::BmnProfQaReport
()
7
:
BmnSimulationReport
()
8
{
9
SetReportName
(
"prof_qa"
);
10
}
11
12
BmnProfQaReport::BmnProfQaReport
(
TString
name)
13
:
BmnSimulationReport
()
14
{
15
SetReportName
(name);
16
}
17
18
BmnProfQaReport::~BmnProfQaReport
() {}
19
20
void
BmnProfQaReport::Create
()
21
{
22
Out
().precision(3);
23
Out
() <<
R
()->
DocumentBegin
();
24
Out
() <<
R
()->
Title
(0,
GetTitle
());
25
PrintCanvases
();
26
Out
() <<
R
()->
DocumentEnd
();
27
}
28
29
void
BmnProfQaReport::Draw
()
30
{
31
gStyle
->SetPalette(77);
32
TString
detName;
33
BmnDetectorList::GetSystemNameCaps
(
kSiProf
, detName);
34
const
Int_t
can_w = 500;
35
const
Int_t
can_h = 500;
36
DrawTwoH1
(
"Strips_board1"
,
HistNameProfDigit
(detName, 0, 0, 0),
HistNameProfDigit
(detName, 0, 0, 1),
""
);
37
DrawTwoH1
(
"Strips_board2"
,
HistNameProfDigit
(detName, 1, 0, 0),
HistNameProfDigit
(detName, 1, 0, 1),
""
);
38
DrawTwoH1
(
"Signals_board1"
,
TString
(
HistNameProfDigit
(detName, 0, 0, 0)) +
"_sig"
,
39
TString
(
HistNameProfDigit
(detName, 0, 0, 1)) +
"_sig"
,
"HIST"
);
40
DrawTwoH1
(
"Signals_board2"
,
TString
(
HistNameProfDigit
(detName, 1, 0, 0)) +
"_sig"
,
41
TString
(
HistNameProfDigit
(detName, 1, 0, 1)) +
"_sig"
,
"HIST"
);
42
DrawTwoH2
(
"Pedestals_board1"
,
TString
(
HistNameProfDigit
(detName, 0, 0, 0)) +
"_pedestals"
,
43
TString
(
HistNameProfDigit
(detName, 0, 0, 1)) +
"_pedestals"
, can_w, can_h);
44
DrawTwoH2
(
"Pedestals_board2"
,
TString
(
HistNameProfDigit
(detName, 1, 0, 0)) +
"_pedestals"
,
45
TString
(
HistNameProfDigit
(detName, 1, 0, 1)) +
"_pedestals"
, can_w, can_h);
46
DrawOneH2
(
"Hits_board1"
,
HistNameProfHits
(detName, 0));
47
DrawOneH2
(
"Hits_board2"
,
HistNameProfHits
(detName, 1));
48
// DrawHits2D();
49
if
(!
fInitCanvasesDone
)
50
fInitCanvasesDone
=
kTRUE
;
51
}
BmnProfQaReport.h
Int_t
int Int_t
kTRUE
constexpr Bool_t kTRUE
TStyle.h
gStyle
R__EXTERN TStyle * gStyle
kSiProf
@ kSiProf
Definition
BmnDetectorList.h:29
BmnDetectorList::GetSystemNameCaps
static void GetSystemNameCaps(DetectorId det, TString &name)
Get system name in capitals.
Definition
BmnDetectorList.cxx:103
BmnProfQaReport::HistNameProfDigit
static char * HistNameProfDigit(TString &detName, Short_t iSt, Short_t iMod, Short_t iLayer)
Definition
BmnProfQaReport.h:36
BmnProfQaReport::BmnProfQaReport
BmnProfQaReport()
Constructor.
Definition
BmnProfQaReport.cxx:6
BmnProfQaReport::Create
virtual void Create()
Inherited from BmnSimulationReport.
Definition
BmnProfQaReport.cxx:20
BmnProfQaReport::HistNameProfHits
static char * HistNameProfHits(TString &detName, Short_t iSt)
Definition
BmnProfQaReport.h:40
BmnProfQaReport::~BmnProfQaReport
virtual ~BmnProfQaReport()
Destructor.
Definition
BmnProfQaReport.cxx:18
BmnProfQaReport::Draw
virtual void Draw()
Inherited from BmnSimulationReport.
Definition
BmnProfQaReport.cxx:29
BmnReportElement::Title
virtual string Title(int size, const string &title) const =0
Return string with title.
BmnReportElement::DocumentBegin
virtual string DocumentBegin() const =0
Return string with open tags for document.
BmnReportElement::DocumentEnd
virtual string DocumentEnd() const =0
Return string with close tags of the document.
BmnReport::SetReportName
void SetReportName(TString name)
Definition
BmnReport.h:56
BmnReport::PrintCanvases
void PrintCanvases() const
Print images created from canvases in the report.
Definition
BmnReport.cxx:113
BmnReport::R
const BmnReportElement * R() const
Accessor to BmnReportElement object.
Definition
BmnReport.h:45
BmnReport::Out
ostream & Out() const
All text output goes to this stream.
Definition
BmnReport.h:50
BmnReport::fInitCanvasesDone
Bool_t fInitCanvasesDone
Definition
BmnReport.h:123
BmnSimulationReport::BmnSimulationReport
BmnSimulationReport()
Constructor.
Definition
BmnSimulationReport.cxx:27
BmnSimulationReport::DrawTwoH2
void DrawTwoH2(const TString canvasName, const TString name1, const TString name2, Int_t histW=baseW, Int_t histH=baseH)
Definition
BmnSimulationReport.cxx:185
BmnSimulationReport::DrawTwoH1
void DrawTwoH1(const TString canvasName, const TString name1, const TString name2, const TString drawOpt, Bool_t doFit=kFALSE, Int_t histW=baseW, Int_t histH=baseH)
Definition
BmnSimulationReport.cxx:148
BmnSimulationReport::DrawOneH2
void DrawOneH2(const TString canvasName, const TString name1, Int_t histW=baseW, Int_t histH=baseH)
Definition
BmnSimulationReport.cxx:175
TObject::GetTitle
virtual const char * GetTitle() const
TString
QA
BmnProfQaReport.cxx
Generated on
for BmnRoot by
1.17.0