CbmRoot
CbmLitTrackingQaStudyReport.h
Go to the documentation of this file.
1 
7 #ifndef CBMLITTRACKINGQASTUDYREPORT_H_
8 #define CBMLITTRACKINGQASTUDYREPORT_H_
9 
10 #include "CbmStudyReport.h"
11 #include <string>
12 using std::string;
13 class TH1;
14 
29 public:
34 
39 
40 protected:
44  void Create();
45 
49  void Draw();
50 
59  string PrintTable(const string& tableName,
60  const string& pattern,
61  string (*rowNameFormatter)(const string&),
62  string (*cellFormatter)(const TH1*, Int_t)) const;
63 
70  string PrintEfficiencyTable(const string& tableName,
71  const string& pattern) const;
72 
80  void DivideHistos(TH1* histo1, TH1* histo2, TH1* histo3, Double_t scale);
81 
86 
90  void DrawEfficiencyHistos();
91 
97  void DrawEfficiency(const string& canvasName, const string& histName);
98 
104  void DrawMeanEfficiencyLines(const std::vector<TH1*>& histos,
105  const std::vector<Double_t>& efficiencies);
106 
112  void DrawAccAndRec(const string& canvasName, const string& histName);
113 
120  Double_t CalcEfficiency(const TH1* histRec,
121  const TH1* histAcc,
122  Double_t scale = 1.) const;
123 
124  ClassDef(CbmLitTrackingQaStudyReport, 1)
125 };
126 
127 #endif /* CBMLITTRACKINGQASTUDYREPORT_H_ */
CbmLitTrackingQaStudyReport::DrawMeanEfficiencyLines
void DrawMeanEfficiencyLines(const std::vector< TH1 * > &histos, const std::vector< Double_t > &efficiencies)
Draw mean efficiency lines on histogram.
Definition: CbmLitTrackingQaStudyReport.cxx:242
CbmLitTrackingQaStudyReport::PrintTable
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.
Definition: CbmLitTrackingQaStudyReport.cxx:94
CbmLitTrackingQaStudyReport::DivideHistos
void DivideHistos(TH1 *histo1, TH1 *histo2, TH1 *histo3, Double_t scale)
Divide two histograms.
Definition: CbmLitTrackingQaStudyReport.cxx:231
CbmStudyReport
Base class for study reports.
Definition: CbmStudyReport.h:26
CbmLitTrackingQaStudyReport::DrawEfficiencyHistos
void DrawEfficiencyHistos()
Main function for drawing efficiency histograms.
Definition: CbmLitTrackingQaStudyReport.cxx:159
CbmLitTrackingQaStudyReport::CalculateEfficiencyHistos
void CalculateEfficiencyHistos()
Calculate efficiency histograms.
Definition: CbmLitTrackingQaStudyReport.cxx:270
CbmLitTrackingQaStudyReport::DrawEfficiency
void DrawEfficiency(const string &canvasName, const string &histName)
Draw efficiency histogram.
Definition: CbmLitTrackingQaStudyReport.cxx:182
CbmLitTrackingQaStudyReport::CbmLitTrackingQaStudyReport
CbmLitTrackingQaStudyReport()
Constructor.
Definition: CbmLitTrackingQaStudyReport.cxx:58
CbmLitTrackingQaStudyReport::PrintEfficiencyTable
string PrintEfficiencyTable(const string &tableName, const string &pattern) const
Return formated string with table of efficiency numbers.
Definition: CbmLitTrackingQaStudyReport.cxx:120
CbmLitTrackingQaStudyReport
Creates study report for tracking QA.
Definition: CbmLitTrackingQaStudyReport.h:28
CbmLitTrackingQaStudyReport::DrawAccAndRec
void DrawAccAndRec(const string &canvasName, const string &histName)
Draw accepted and reconstructed tracks histograms.
Definition: CbmLitTrackingQaStudyReport.cxx:208
CbmLitTrackingQaStudyReport::~CbmLitTrackingQaStudyReport
virtual ~CbmLitTrackingQaStudyReport()
Destructor.
Definition: CbmLitTrackingQaStudyReport.cxx:63
CbmLitTrackingQaStudyReport::CalcEfficiency
Double_t CalcEfficiency(const TH1 *histRec, const TH1 *histAcc, Double_t scale=1.) const
Calculate efficiency for two histograms.
Definition: CbmLitTrackingQaStudyReport.cxx:259
CbmStudyReport.h
Base class for study reports.
CbmLitTrackingQaStudyReport::Draw
void Draw()
Inherited from CbmLitStudyReport.
Definition: CbmLitTrackingQaStudyReport.cxx:153
CbmLitTrackingQaStudyReport::Create
void Create()
Inherited from CbmLitStudyReport.
Definition: CbmLitTrackingQaStudyReport.cxx:65