CbmRoot
Loading...
Searching...
No Matches
CbmLitTrackingQaReport.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2013 UGiessen/JINR-LIT, Giessen/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev, Semen Lebedev [committer] */
4
11#ifndef CBMLITTRACKINGQAREPORT_H_
12#define CBMLITTRACKINGQAREPORT_H_
13
14#include "CbmSimulationReport.h"
15
16#include <string>
17#include <vector>
18using std::string;
19using std::vector;
20class TH1;
21
29 public:
34
39
40 protected:
44 virtual void Create();
45
49 virtual void Draw();
50
55 string PrintNofObjects() const;
56
61 string PrintTrackHits() const;
62
67 string PrintNofGhosts() const;
68
75 string PrintTrackingEfficiency(Bool_t includeRich, Bool_t isPidEfficiency) const;
76
81 string PrintPionSuppression() const;
82
87
93 void DrawEfficiency(const string& canvasName, const string& histNamePattern,
94 string (*labelFormatter)(const string&, Double_t));
95
96 void DrawPionSuppression(const string& canvasName, const string& histNamePattern,
97 string (*labelFormatter)(const string&, Double_t));
98
104 void DrawMeanEfficiencyLines(const vector<TH1*>& histos, const vector<Double_t>& efficiencies);
105
111 void DrawAccAndRec(const string& canvasName, const string& histNamePattern);
112
116 void DrawHitsHistos();
117
124 void DrawHitsHistos(const string& canvasName, const string& hist);
125
129 void DrawYPtHistos();
130
137 void DrawYPt(const string& canvasName, const string& effHistName, Bool_t drawOnlyEfficiency = false);
138
145 Double_t CalcEfficiency(const TH1* histRec, const TH1* histAcc, Double_t scale = 1.) const;
146
148
156 void DivideHistos(TH1* histo1, TH1* histo2, TH1* histo3, Double_t scale);
157
162
164
165 vector<string> fGlobalTrackVariants;
166
167 ClassDef(CbmLitTrackingQaReport, 1)
168};
169
170#endif /* CBMLITTRACKINGQAREPORT_H_ */
Base class for simulation reports.
Create report for tracking QA.
void CalculateEfficiencyHistos()
Calculate efficiency histograms.
void DrawYPt(const string &canvasName, const string &effHistName, Bool_t drawOnlyEfficiency=false)
Draw Rapidity-Pt histograms.
virtual void Draw()
Inherited from CbmSimulationReport.
void DrawPionSuppression(const string &canvasName, const string &histNamePattern, string(*labelFormatter)(const string &, Double_t))
vector< string > fGlobalTrackVariants
string PrintNofGhosts() const
Return string with number of ghosts statistics.
virtual ~CbmLitTrackingQaReport()
Destructor.
virtual void Create()
Inherited from CbmSimulationReport.
void DrawMeanEfficiencyLines(const vector< TH1 * > &histos, const vector< Double_t > &efficiencies)
Draw mean efficiency lines on histogram.
void DrawYPtHistos()
Main function for drawing Rapidity-Pt histograms.
string PrintNofObjects() const
Return string with number of objects statistics.
Double_t CalcEfficiency(const TH1 *histRec, const TH1 *histAcc, Double_t scale=1.) const
Calculate efficiency for two histograms.
void DrawEfficiency(const string &canvasName, const string &histNamePattern, string(*labelFormatter)(const string &, Double_t))
Draw efficiency histogram.
string PrintTrackingEfficiency(Bool_t includeRich, Bool_t isPidEfficiency) const
Return string with tracking efficiency.
string PrintTrackHits() const
Return string with hits histogram statistics (nof all, true, fake hits in track/ring).
void DrawAccAndRec(const string &canvasName, const string &histNamePattern)
Draw accepted and reconstructed tracks histograms.
string PrintPionSuppression() const
Return string with pion suppression efficiency.
void DrawEfficiencyHistos()
Main function for drawing efficiency histograms.
void DrawHitsHistos()
Draw histograms for hits.
void DivideHistos(TH1 *histo1, TH1 *histo2, TH1 *histo3, Double_t scale)
Divide two histograms.
Base class for simulation reports.