+ // end of cycle plots (hist 19)
+ const char *sufRatio[4] = {"TRDrTRDo", "TRDoTPCo", "TRDrTPCo", "TRDzTPCo"};
+
+ for(int i=0; i<4; i++) {
+ hist[++histoCounter] = new TH1D(Form("qaTRD_esd_pt%s",sufRatio[i]),
+ Form("Efficiency in Pt %s;p_{T};eff", sufRatio[i]),
+ 100, 0, 10);
+
+ hist[++histoCounter] = new TH1D(Form("qaTRD_esd_trdz%s",sufRatio[i]),
+ Form("Efficiency in Z %s;z (cm);eff", sufRatio[i]),
+ 200, -400, 400);
+ }
+
+ // 27 - 31
+ hist[27] = new TH1D("qaTRD_esd_quality", ";quality", 120, 0, 12);
+ hist[28] = new TH1D("qaTRD_esd_budget", ";NN", 110, -1000, 100);
+ hist[29] = new TH1D("qaTRD_esd_chi2", ";chi2", 200, 0, 100);
+ hist[30] = new TH1D("qaTRD_esd_timeBin", ";time bin", 7, -0.5, 6.5);
+ hist[31] = new TH1D("qaTRD_esd_pidQuality", "pid Quality", 7, -0.5, 6.5);
+
+ // stack by stack electron identyfication
+ hist[32] = new TH1D("qaTRD_esd_tracksStack", "number of all tracks;stack", 90, -0.5, 89.5);
+ hist[33] = new TH1D("qaTRD_esd_electronStack", "number of electron tracks;stack", 90, -0.5, 89.5);
+ hist[34] = new TH1D("qaTRD_esd_elRatioStack", "fraction of electron tracks;stack", 90, -0.5, 89.5);
+ hist[35] = new TH1D("qaTRD_esd_thetaOut", ";tan(theta);", 100, -1, 1);
+
+ const char *partType[5] = {"Electron", "Muon", "Pion", "Kaon", "Proton"};
+
+ for(Int_t i=0; i<AliPID::kSPECIES; i++)
+ hist[36+i] = new TH1D(Form("qaTRD_esd_pid%d",i),
+ Form("%s;probability",partType[i]), 100, 0, 1);
+
+ // dE/dX vs momentum in three regions
+ const char *zoneName[4] = {"total charge", "ampilification range", "plateau", "TR range"};
+
+ // prepare the scale from 0.1 to 10 GeV
+ const Int_t nscalex= 50;
+ Double_t scalex[nscalex+1];
+ Double_t dd = (TMath::Log(10) - TMath::Log(0.5)) / nscalex;
+ for(Int_t ix=0; ix<nscalex+1; ix++) {
+ scalex[ix] = 0.5 * TMath::Exp(dd * ix);
+ }
+
+ const Int_t nscaley = 50;
+ Double_t scaley[nscaley+1];
+ for(Int_t iy=0; iy<nscaley+1; iy++) {
+ scaley[iy] = iy * (3e3/nscaley);
+ }
+
+
+ for(Int_t i=0; i<4; i++) {
+ hist[41+i] = new TH2D(Form("qaTRD_esd_signalPzone_%d",i),
+ Form("%s;momentum (GeV/c);singal (a.u.)", zoneName[i]),
+ nscalex, scalex, nscaley, scaley);
+ }
+
+ for(Int_t i=0; i<kNhist; i++) {