]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG3/vertexingHF/AliAnalysisTaskSEJPSItoEle.cxx
Added check for a valid pointer to the primary vertex
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliAnalysisTaskSEJPSItoEle.cxx
index 280144f09939dcda45be36a436dfa866fc918032..4b9471a4827b217e2843645e0950c2eab94abd48 100644 (file)
@@ -386,6 +386,10 @@ void AliAnalysisTaskSEJPSItoEle::UserExec(Option_t */*option*/)
     return;
   }
 
+  // fix for temporary bug in ESDfilter 
+  // the AODs with null vertex pointer didn't pass the PhysSel
+  if(!aod->GetPrimaryVertex()) return;
+
   // load MC particles and read MC info (for sim only)
   TClonesArray* mcArray=0;
   if(fOkAODMC){