CbmRoot
Loading...
Searching...
No Matches
CbmLitTrackingQaStudyReport.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2016 UGiessen/JINR-LIT, Giessen/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev, Semen Lebedev [committer] */
4
11#ifndef CBMLITTRACKINGQASTUDYREPORT_H_
12#define CBMLITTRACKINGQASTUDYREPORT_H_
13
14#include "CbmStudyReport.h"
15
16#include <string>
17using std::string;
18class TH1;
19
34 public:
39
44
45 protected:
49 void Create();
50
54 void Draw();
55
64 string PrintTable(const string& tableName, const string& pattern, string (*rowNameFormatter)(const string&),
65 string (*cellFormatter)(const TH1*, Int_t)) const;
66
73 string PrintEfficiencyTable(const string& tableName, const string& pattern) const;
74
82 void DivideHistos(TH1* histo1, TH1* histo2, TH1* histo3, Double_t scale);
83
88
93
99 void DrawEfficiency(const string& canvasName, const string& histName);
100
106 void DrawMeanEfficiencyLines(const std::vector<TH1*>& histos, const std::vector<Double_t>& efficiencies);
107
113 void DrawAccAndRec(const string& canvasName, const string& histName);
114
121 Double_t CalcEfficiency(const TH1* histRec, const TH1* histAcc, Double_t scale = 1.) const;
122
123 ClassDef(CbmLitTrackingQaStudyReport, 1)
124};
125
126#endif /* CBMLITTRACKINGQASTUDYREPORT_H_ */
Base class for study reports.
Creates study report for tracking QA.
void CalculateEfficiencyHistos()
Calculate efficiency histograms.
void DrawMeanEfficiencyLines(const std::vector< TH1 * > &histos, const std::vector< Double_t > &efficiencies)
Draw mean efficiency lines on histogram.
void DrawAccAndRec(const string &canvasName, const string &histName)
Draw accepted and reconstructed tracks histograms.
void DrawEfficiency(const string &canvasName, const string &histName)
Draw efficiency histogram.
string PrintTable(const string &tableName, const string &pattern, string(*rowNameFormatter)(const string &), string(*cellFormatter)(const TH1 *, Int_t)) const
Return formated string with table of numbers.
string PrintEfficiencyTable(const string &tableName, const string &pattern) const
Return formated string with table of efficiency numbers.
void Draw()
Inherited from CbmLitStudyReport.
Double_t CalcEfficiency(const TH1 *histRec, const TH1 *histAcc, Double_t scale=1.) const
Calculate efficiency for two histograms.
void Create()
Inherited from CbmLitStudyReport.
void DrawEfficiencyHistos()
Main function for drawing efficiency histograms.
void DivideHistos(TH1 *histo1, TH1 *histo2, TH1 *histo3, Double_t scale)
Divide two histograms.
Base class for study reports.