1 // Display some histograms from scanning.
3 // BIT(1) stores the original selection.
4 // BIT(0) stores the user selection (set to same value as b1 at init).
6 // This allows to check all possible combinations.
9 void show_scan_results()
11 TFile *f = TFile::Open("scan_results.root");
13 TTree* t = (TTree*) gDirectory->Get("SR");
16 Error("show_scan_results", "Tree 'SR' with scan results not found.");
21 //----------------------------------------------------------------------------
23 //----------------------------------------------------------------------------
25 c = new TCanvas("Tracks", "Track Scanning Results", 800, 600);
29 t->Draw("Sum$(T.fLabel & 1)");
32 t->Draw("T.GetSign()", "T.fLabel & 1");
35 t->Draw("T.Pt()", "T.fLabel & 1");
38 t->Draw("T.Eta()", "T.fLabel & 1");
41 t->Draw("T.Phi()", "T.fLabel & 1");
47 //----------------------------------------------------------------------------
49 //----------------------------------------------------------------------------
51 c = new TCanvas("Tracklets", "Tracklet Scanning Results", 800, 600);
55 t->Draw("Sum$(M.fLabels & 1)");
58 t->Draw("M.fNsingle");
61 t->Draw("M.fFiredChips[1]:Sum$(M.fLabels & 1)");
64 t->Draw("M.fDeltTh", "M.fLabels & 1");
67 t->Draw("M.fDeltPhi", "M.fLabels & 1");
70 t->Draw("M.fPhi", "M.fLabels & 1");
76 //----------------------------------------------------------------------------
78 //----------------------------------------------------------------------------
80 c = new TCanvas("Vertices", "Vertex Scanning Results", 800, 600);
84 t->Draw("VT.GetX()", "VT.GetNContributors()>0");
87 t->Draw("VT.GetY()", "VT.GetNContributors()>0");
90 t->Draw("VT.GetZ()", "VT.GetNContributors()>0");
93 t->Draw("VSPD.GetX()", "VSPD.GetNContributors()>0 && VSPD.fTitle.Contains(\"3D\")");
96 t->Draw("VSPD.GetY()", "VSPD.GetNContributors()>0 && VSPD.fTitle.Contains(\"3D\")");
99 t->Draw("VSPD.GetZ()", "VSPD.GetNContributors()>0 && VSPD.fTitle.Contains(\"3D\")");
102 t->Draw("VTPC.GetX()", "VTPC.GetNContributors()>0");
105 t->Draw("VTPC.GetY()", "VTPC.GetNContributors()>0");
108 t->Draw("VTPC.GetZ()", "VTPC.GetNContributors()>0");
110 //----------------------------------------------------------------------------
112 //----------------------------------------------------------------------------