]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Check for existence of fVertexer before trying to use it (Christian)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 May 2007 12:27:24 +0000 (12:27 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 May 2007 12:27:24 +0000 (12:27 +0000)
STEER/AliReconstruction.cxx

index 95520240c1f3eaf6485221184869358f68ba5173..6f404007155031921300254d4ddfc7c7b39f93de 100644 (file)
@@ -1041,8 +1041,10 @@ Bool_t AliReconstruction::RunVertexFinder(AliESD*& esd)
   }
   esd->SetVertex(vertex);
   // if SPD multiplicity has been determined, it is stored in the ESD
+  if (fVertexer) {
   AliMultiplicity *mult= fVertexer->GetMultiplicity();
   if(mult)esd->SetMultiplicity(mult);
+  }
 
   for (Int_t iDet = 0; iDet < fgkNDetectors; iDet++) {
     if (fTracker[iDet]) fTracker[iDet]->SetVertex(vtxPos, vtxErr);