]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALPID.cxx
Update tracking class and macros, and pid class to read correctly the ESDs
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPID.cxx
index 60be817782690760f6fd187a3eef0cdee310a585..a98382558394ca0803c16e3099e2f39a27fb8f48 100644 (file)
@@ -167,12 +167,13 @@ void AliEMCALPID::RunPID(AliESDEvent *esd)
     return ;
   }
 
-  Int_t nClusters = esd->GetNumberOfEMCALClusters();
-  Int_t firstCluster = esd->GetFirstEMCALCluster();
+  Int_t nClusters = esd->GetNumberOfCaloClusters();
+  Int_t firstCluster = 0;
   Double_t energy, lambda0;
   for (Int_t iCluster = firstCluster; iCluster < (nClusters + firstCluster); iCluster++) {
 
     AliESDCaloCluster *clust = esd->GetCaloCluster(iCluster);
+       if (!clust->IsEMCAL()) continue ; 
     energy = clust->E();
     lambda0 = clust->GetM02();
     // verify cluster type