Fix in transfer of vertex dispersion to final vertex (Francesco)
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 22:31:03 +0000 (22:31 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 22:31:03 +0000 (22:31 +0000)
STEER/ESD/AliVertexerTracks.cxx

index b62270c..34e77f9 100644 (file)
@@ -1794,6 +1794,7 @@ AliESDVertex* AliVertexerTracks::VertexForSelectedTracks(const TObjArray *trkArr
     }
   }
   AliDebug(1," Vertex finding completed\n");
+  Double_t vdispersion=fVert.GetDispersion();
 
   // vertex fitter
   if(optUseFitter) {
@@ -1806,7 +1807,7 @@ AliESDVertex* AliVertexerTracks::VertexForSelectedTracks(const TObjArray *trkArr
     Int_t    nTrksUsed=fVert.GetNContributors();
     fCurrentVertex = new AliESDVertex(position,covmatrix,chi2,nTrksUsed);    
   }
-  fCurrentVertex->SetDispersion(fVert.GetDispersion());
+  fCurrentVertex->SetDispersion(vdispersion);
 
 
   // set indices of used tracks and propagate track to found vertex