]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGGA/EMCALTasks/AliEMCalpi0ClusterEvaluationTask.cxx
Updates of trending macro for QA outputs from AliAnalysisTaskTOFqa:
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEMCalpi0ClusterEvaluationTask.cxx
index 09f756aff91993c6639900a0fa6152eba0a619de..b8fd626a044fc45422b91ae36d33d95a5a592c21 100644 (file)
@@ -676,7 +676,8 @@ Double_t AliEMCalpi0ClusterEvaluationTask ::GetMaxCellEnergy(const AliVCluster *
      }
 
     if(!esd){
-    cells = aod->GetEMCALCells();
+      if (aod)cells = aod->GetEMCALCells();
+          else cells = 0;
      }
 
     if (!cells)
@@ -727,7 +728,12 @@ void AliEMCalpi0ClusterEvaluationTask::FillMixed( const TLorentzVector& p1, cons
      esdCent     = esd->GetCentrality();
      }
     if(!esd){
-     esdCent     = aod->GetCentrality();
+     if (aod){
+               esdCent     = aod->GetCentrality();
+        } else {
+               esdCent = NULL;
+               return; 
+        }       
      }
 
     //fleche pour pointers, otherwise point.