]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/AliEMCALQATask.cxx
Changes for report #69974: Virtual class for calorimeter analysis objects
[u/mrichter/AliRoot.git] / ESDCheck / AliEMCALQATask.cxx
index 475a11b43619040a084ff7aa20f41460ad680a2d..c3fbf957c5d8061eb0afa99f52997bf485592230 100644 (file)
@@ -192,14 +192,14 @@ void AliEMCALQATask::Exec(Option_t *)
     AliESDCaloCluster * caloCluster = fESD->GetCaloCluster(emcalCluster) ;
     if (caloCluster) {
       Float_t pos[3] ;
-      if(caloCluster->GetClusterType() == AliESDCaloCluster::kEMCALClusterv1) {  
+      if(caloCluster->IsEMCAL()) {  
        caloCluster->GetPosition(pos) ;
        fhEMCALPos->Fill(pos[0],pos[1],pos[2]) ;
        fhEMCALEnergy->Fill(caloCluster->E()) ;
        fhEMCALDigits->Fill(entry, caloCluster->GetNCells()) ;
        numberOfEmcalClustersv1++ ;
        numberOfDigitsInEmcal += caloCluster->GetNCells() ;    
-       // Float_t * pid = clus->GetPid() ;
+       // const Double_t * pid = clus->GetPID() ;
        // if(pid[AliPID::kPhoton]>0.9){
        emcalVector[numberOfPhotonsInEmcal] = new TVector3(pos[0],pos[1],pos[2]) ;
        emcalPhotonsEnergy[numberOfPhotonsInEmcal] = caloCluster->E() ;