]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected calculation of indexes
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Nov 2007 18:13:00 +0000 (18:13 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Nov 2007 18:13:00 +0000 (18:13 +0000)
TRD/AliTRDQADataMaker.cxx

index 0b87cffe3dc024f46c87e0ea53f121b36be829a6..1cd3984a473bf96a5955e1977699c1e4ba30a8ab 100644 (file)
@@ -94,8 +94,8 @@ void AliTRDQADataMaker::InitESDs()
   
   // 3
   for(Int_t i=0; i<knbits; i++) {
-    hist[i*knbits+3] = new TH1D(Form("qaTRD_esd_pt%s",suf[i]), ";p_{T} (GeV/c);", 50, 0, 10);
-    hist[i+knbits+4] = new TH1D(Form("qaTRD_esd_trdz%s", suf[i]), ";z (cm)", 200, -400, 400); 
+    hist[2*i+3] = new TH1D(Form("qaTRD_esd_pt%s",suf[i]), ";p_{T} (GeV/c);", 50, 0, 10);
+    hist[2*i+4] = new TH1D(Form("qaTRD_esd_trdz%s", suf[i]), ";z (cm)", 200, -400, 400); 
   }
   
   // 3 + 12 = 15
@@ -274,8 +274,8 @@ void AliTRDQADataMaker::MakeESDs(AliESDEvent * esd)
 
     for(Int_t b=0; b<knbits; b++) {
       if (bit[b]) {
-       GetESDsData(b*knbits+3)->Fill(pt); 
-       GetESDsData(b*knbits+4)->Fill(extZ);
+       GetESDsData(2*b+3)->Fill(pt); 
+       GetESDsData(2*b+4)->Fill(extZ);
       }
     }