CbmRoot
CbmLitTrackingQaReport.h
Go to the documentation of this file.
1 
7 #ifndef CBMLITTRACKINGQAREPORT_H_
8 #define CBMLITTRACKINGQAREPORT_H_
9 
10 #include "CbmSimulationReport.h"
11 #include <string>
12 #include <vector>
13 using std::string;
14 using std::vector;
15 class TH1;
16 
24 public:
29 
33  virtual ~CbmLitTrackingQaReport();
34 
35 protected:
39  virtual void Create();
40 
44  virtual void Draw();
45 
50  string PrintNofObjects() const;
51 
56  string PrintTrackHits() const;
57 
62  string PrintNofGhosts() const;
63 
70  string PrintTrackingEfficiency(Bool_t includeRich,
71  Bool_t isPidEfficiency) const;
72 
77  string PrintPionSuppression() const;
78 
82  void DrawEfficiencyHistos();
83 
89  void DrawEfficiency(const string& canvasName,
90  const string& histNamePattern,
91  string (*labelFormatter)(const string&, Double_t));
92 
93  void DrawPionSuppression(const string& canvasName,
94  const string& histNamePattern,
95  string (*labelFormatter)(const string&, Double_t));
96 
102  void DrawMeanEfficiencyLines(const vector<TH1*>& histos,
103  const vector<Double_t>& efficiencies);
104 
110  void DrawAccAndRec(const string& canvasName, const string& histNamePattern);
111 
115  void DrawHitsHistos();
116 
123  void DrawHitsHistos(const string& canvasName, const string& hist);
124 
128  void DrawYPtHistos();
129 
136  void DrawYPt(const string& canvasName,
137  const string& effHistName,
138  Bool_t drawOnlyEfficiency = false);
139 
146  Double_t CalcEfficiency(const TH1* histRec,
147  const TH1* histAcc,
148  Double_t scale = 1.) const;
149 
151 
159  void DivideHistos(TH1* histo1, TH1* histo2, TH1* histo3, Double_t scale);
160 
165 
167 
168  vector<string> fGlobalTrackVariants;
169 
170  ClassDef(CbmLitTrackingQaReport, 1)
171 };
172 
173 #endif /* CBMLITTRACKINGQAREPORT_H_ */
CbmLitTrackingQaReport::~CbmLitTrackingQaReport
virtual ~CbmLitTrackingQaReport()
Destructor.
Definition: CbmLitTrackingQaReport.cxx:54
CbmLitTrackingQaReport::PrintTrackingEfficiency
string PrintTrackingEfficiency(Bool_t includeRich, Bool_t isPidEfficiency) const
Return string with tracking efficiency.
Definition: CbmLitTrackingQaReport.cxx:132
CbmLitTrackingQaReport::PrintTrackHits
string PrintTrackHits() const
Return string with hits histogram statistics (nof all, true, fake hits in track/ring).
Definition: CbmLitTrackingQaReport.cxx:92
CbmLitTrackingQaReport::DivideHistos
void DivideHistos(TH1 *histo1, TH1 *histo2, TH1 *histo3, Double_t scale)
Divide two histograms.
Definition: CbmLitTrackingQaReport.cxx:586
CbmLitTrackingQaReport
Create report for tracking QA.
Definition: CbmLitTrackingQaReport.h:23
CbmLitTrackingQaReport::CbmLitTrackingQaReport
CbmLitTrackingQaReport()
Constructor.
Definition: CbmLitTrackingQaReport.cxx:49
CbmLitTrackingQaReport::fGlobalTrackVariants
vector< string > fGlobalTrackVariants
Definition: CbmLitTrackingQaReport.h:168
CbmLitTrackingQaReport::PrintNofObjects
string PrintNofObjects() const
Return string with number of objects statistics.
Definition: CbmLitTrackingQaReport.cxx:78
CbmLitTrackingQaReport::PrintNofGhosts
string PrintNofGhosts() const
Return string with number of ghosts statistics.
Definition: CbmLitTrackingQaReport.cxx:116
CbmLitTrackingQaReport::FillGlobalTrackVariants
void FillGlobalTrackVariants()
Definition: CbmLitTrackingQaReport.cxx:574
CbmLitTrackingQaReport::CalculateEfficiencyHistos
void CalculateEfficiencyHistos()
Calculate efficiency histograms.
Definition: CbmLitTrackingQaReport.cxx:597
CbmLitTrackingQaReport::Create
virtual void Create()
Inherited from CbmSimulationReport.
Definition: CbmLitTrackingQaReport.cxx:56
CbmLitTrackingQaReport::CalculatePionSuppressionHistos
void CalculatePionSuppressionHistos()
Definition: CbmLitTrackingQaReport.cxx:611
CbmLitTrackingQaReport::DrawYPt
void DrawYPt(const string &canvasName, const string &effHistName, Bool_t drawOnlyEfficiency=false)
Draw Rapidity-Pt histograms.
Definition: CbmLitTrackingQaReport.cxx:475
CbmLitTrackingQaReport::DrawPionSuppression
void DrawPionSuppression(const string &canvasName, const string &histNamePattern, string(*labelFormatter)(const string &, Double_t))
Definition: CbmLitTrackingQaReport.cxx:384
CbmLitTrackingQaReport::DrawMeanEfficiencyLines
void DrawMeanEfficiencyLines(const vector< TH1 * > &histos, const vector< Double_t > &efficiencies)
Draw mean efficiency lines on histogram.
Definition: CbmLitTrackingQaReport.cxx:412
CbmLitTrackingQaReport::Draw
virtual void Draw()
Inherited from CbmSimulationReport.
Definition: CbmLitTrackingQaReport.cxx:225
CbmLitTrackingQaReport::DrawYPtHistos
void DrawYPtHistos()
Main function for drawing Rapidity-Pt histograms.
Definition: CbmLitTrackingQaReport.cxx:455
CbmLitTrackingQaReport::PrintPionSuppression
string PrintPionSuppression() const
Return string with pion suppression efficiency.
Definition: CbmLitTrackingQaReport.cxx:197
CbmLitTrackingQaReport::DrawEfficiencyHistos
void DrawEfficiencyHistos()
Main function for drawing efficiency histograms.
Definition: CbmLitTrackingQaReport.cxx:235
CbmSimulationReport.h
Base class for simulation reports.
CbmSimulationReport
Base class for simulation reports.
Definition: CbmSimulationReport.h:28
CbmLitTrackingQaReport::DrawAccAndRec
void DrawAccAndRec(const string &canvasName, const string &histNamePattern)
Draw accepted and reconstructed tracks histograms.
Definition: CbmLitTrackingQaReport.cxx:429
CbmLitTrackingQaReport::DrawEfficiency
void DrawEfficiency(const string &canvasName, const string &histNamePattern, string(*labelFormatter)(const string &, Double_t))
Draw efficiency histogram.
Definition: CbmLitTrackingQaReport.cxx:356
CbmLitTrackingQaReport::CalcEfficiency
Double_t CalcEfficiency(const TH1 *histRec, const TH1 *histAcc, Double_t scale=1.) const
Calculate efficiency for two histograms.
Definition: CbmLitTrackingQaReport.cxx:563
CbmLitTrackingQaReport::DrawHitsHistos
void DrawHitsHistos()
Draw histograms for hits.
Definition: CbmLitTrackingQaReport.cxx:510