FairRoot/PandaRoot
Functions
plot_trackingQA.C File Reference

Go to the source code of this file.

Functions

int plot_trackingQA (TString fileName)
 

Function Documentation

int plot_trackingQA ( TString  fileName)

Definition at line 1 of file plot_trackingQA.C.

References c1, c2, c3, c4, and f.

1  {
2  TFile* f = new TFile(fileName);
3  TH1* histMVDPixel = (TH1*)f->Get("MVDHitsPixel");
4  histMVDPixel->GetXaxis()->SetRangeUser(0., 10.);
5  histMVDPixel->SetXTitle("NHits");
6  histMVDPixel->SetYTitle("Efficiency");
7  TH1* histMVDStrip = (TH1*)f->Get("MVDHitsStrip");
8  histMVDStrip->SetXTitle("NHits");
9  histMVDStrip->SetYTitle("Efficiency");
10  histMVDStrip->GetXaxis()->SetRangeUser(0., 10.);
11 
12  TH1* histSTTHit = (TH1*)f->Get("STTHit");
13  histSTTHit->SetXTitle("NHits");
14  histSTTHit->SetYTitle("Efficiency");
15  TH1* histGEMHit = (TH1*)f->Get("GEMHit");
16  histGEMHit->GetXaxis()->SetRangeUser(0., 10.);
17  histGEMHit->SetXTitle("NHits");
18  histGEMHit->SetYTitle("Efficiency");
19  TH1* histFTSHit = (TH1*)f->Get("FTSHit");
20  histFTSHit->SetXTitle("NHits");
21  histFTSHit->SetYTitle("Efficiency");
22 
23  TCanvas* c1 = new TCanvas();
24  c1->Divide(2,3);
25  c1->cd(1);
26  histMVDPixel->Draw("colz");
27  c1->cd(2);
28  histMVDStrip->Draw("colz");
29  c1->cd(3);
30  histSTTHit->Draw("colz");
31  c1->cd(4);
32  histGEMHit->Draw("colz");
33  c1->cd(5);
34  histFTSHit->Draw("colz");
35 
36  TH1* histoP = (TH1*)f->Get("fPHisto");
37  TH1* histoPRel = (TH1*)f->Get("fPRelHisto");
38  TH1* histoPt = (TH1*)f->Get("fPtHisto");
39  TH1* histoPtRel = (TH1*)f->Get("fPtRelHisto");
40  TH1* histoPl = (TH1*)f->Get("fPlHisto");
41  TH1* histoPlRel = (TH1*)f->Get("fPlRelHisto");
42 
43 
44 
45  TCanvas* c2 = new TCanvas();
46  c2->Divide(2,3);
47  c2->cd(1);
48  histoP->Draw();
49  c2->cd(2);
50  histoPRel->Draw();
51  c2->cd(3);
52  histoPt->Draw();
53  c2->cd(4);
54  histoPtRel->Draw();
55  c2->cd(5);
56  histoPl->Draw();
57  c2->cd(6);
58  histoPlRel->Draw();
59 
60  TH1* histoQualy = (TH1*)f->Get("fQualyHisto");
61  TH1* histoQualyColor = (TH1*)f->Get("fQualyHistoColor");
62  TH1* histoQualyRelAll = (TH1*)f->Get("fQualyHisto_rel_all");
63  TH1* histoQualyRelPos = (TH1*)f->Get("fQualyHisto_rel_possible");
64 
65  TCanvas* c3 = new TCanvas();
66  c3->Divide(2,2);
67  c3->cd(1);
68  histoQualy->Draw("TEXT HISTO");
69  c3->cd(2);
70  histoQualyColor->Draw("TEXT HISTO");
71  c3->cd(3);
72  histoQualyRelAll->Draw("TEXT HISTO");
73  c3->cd(4);
74  histoQualyRelPos->Draw("TEXT HISTO");
75 
76  TCanvas* c4 = new TCanvas();
77  c4->cd(1);
78  histoQualyRelPos->Draw("TEXT HISTO");
79 
80 
81 
82 
83 
84  return 0;
85 }
c4
Definition: plot_dirc.C:71
c2
Definition: plot_dirc.C:39
TFile * f
Definition: bump_analys.C:12
c1
Definition: plot_dirc.C:35
c3
Definition: plot_dirc.C:50