]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliPriorsTask.cxx
Using the new root does not allow changing the location of the tmp directory before...
[u/mrichter/AliRoot.git] / ANALYSIS / AliPriorsTask.cxx
index b4590a4d3589b0b1be6da0935d75240eb5e3af1b..d8d1e128513397433585227f4d5f570d97ff8274 100644 (file)
@@ -173,7 +173,7 @@ void AliPriorsTask::UserExec(Option_t *)
     if ((Int_t)id < (Int_t)AliPID::kSPECIES)   fRecId[id]++; 
     
     if(fNiterations == 0 ){
-      Int_t pdgcode = TMath::Abs(((fMCEvent->GetTrack(iTrack))->Particle())->GetPdgCode());
+      Int_t pdgcode = TMath::Abs(((fMCEvent->GetTrack(track->GetLabel()))->Particle())->GetPdgCode());
       switch(pdgcode){
       case 11  :         fMCId[AliPID::kElectron]++; break;
       case 13  :         fMCId[AliPID::kMuon]++;     break;