Track points are moved according to vertex position so vertex is in (0,0,0)
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderESD.cxx
index 53988462feb01f2bc5a07fc6b153ca20fea13a5c..14eae7fbed51f652344d6494b620fe00cadfedfd 100644 (file)
@@ -419,12 +419,14 @@ Int_t AliHBTReaderESD::ReadESD(AliESD* esd)
       if (fNTrackPoints > 0) 
        {
          tpts = new AliHBTTrackPoints(fNTrackPoints,esdtrack,mf,fdR);
+         tpts->Move(-vertexpos[0],-vertexpos[1],-vertexpos[2]);
        }
       
       AliHBTTrackPoints* itstpts = 0x0;
       if (fITSTrackPoints) 
        {
          itstpts = new AliHBTTrackPoints(AliHBTTrackPoints::kITS,esdtrack);
+         itstpts->Move(-vertexpos[0],-vertexpos[1],-vertexpos[2]);
        }