2 void saveTrackQA(Char_t* signalFile=
"signalShapes.root")
12 Char_t* numTrkPerEv=
"numTracksPerEvent";
13 Char_t* numPointsPerTrack=
"numPointsPerTrack";
14 Char_t* vtxDist=
"z_Vtx_From_trk_fit";
15 Char_t* ipProj=
"ProjToIP";
18 TH1D* h=(TH1D*)f.Get(numTrkPerEv);
21 h->SetTitle(
"Number of Tracks per Event");
22 h->SetName(numTrkPerEv);
24 h->GetYaxis()->SetTitle(
"dN");
25 h->GetXaxis()->SetTitle(
"number of tracks in ev");
26 h->SetFillColor(kYellow-9);
28 c.SaveAs(
"numTrkPerEv.png");
31 h=(TH1D*)f.Get(numPointsPerTrack);
34 h->SetTitle(
"Number of Points per Track");
35 h->SetName(numPointsPerTrack);
36 h->SetFillColor(kYellow-9);
38 c.SaveAs(
"numPointsPerTrack.png");
41 h=(TH1D*)f.Get(vtxDist);
44 h->SetTitle(
"Vertex Distribution");
46 h->GetXaxis()->SetTitle(
"z [cm]");
47 h->GetYaxis()->SetTitle(
"dN");
48 h->SetFillColor(kYellow-9);
50 c.SaveAs(
"zVtxDist.png");
54 TH2D* h2=(TH2D*)f.Get(ipProj);
57 h2->SetTitle(
"Vertex Distribution");
60 h2->GetXaxis()->SetTitle(
"z [cm]");
61 h2->GetYaxis()->SetTitle(
"dca [cm]");
62 c.SaveAs(
"z_Dca.png");
66 for(
int iD=1;iD<7;iD++)
68 for(
int iQ=0;iQ<4;iQ++)
71 sprintf(quadName,
"A");
73 sprintf(quadName,
"B");
75 sprintf(quadName,
"C");
77 sprintf(quadName,
"D");
78 for(
int iL=0;iL<2;iL++)
81 sprintf(layerName,
"P");
83 sprintf(layerName,
"R");
84 sprintf(buffer,
"chargeTrackCluster%s_disc%d_quad%d",layerName,iD,iQ);
85 cout <<
"loading " << buffer <<endl;
86 TH1D* h=(TH1D*)f.Get(buffer);
87 TF1* fLandau=
new TF1(
"fLandau",
"landau(0)",0,10000);
89 h->GetXaxis()->SetTitle(
"cluster charge [ACD counts]");
90 h->GetYaxis()->SetTitle(
"dN");
91 h->SetFillColor(kYellow-9);
93 sprintf(buffer,
"%s.png",buffer);
94 cout <<
"save as " << buffer <<endl;