Revert last change
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Dec 2003 13:25:07 +0000 (13:25 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Dec 2003 13:25:07 +0000 (13:25 +0000)
HBTAN/AliHBTReaderESD.cxx

index 03f1884..42dc41f 100644 (file)
@@ -141,7 +141,8 @@ Int_t AliHBTReaderESD::ReadNext()
            continue;
          }
         
-        if (esdtrack->HasVertexParameters() == kFALSE)
+        //if (esdtrack->HasVertexParameters() == kFALSE) 
+        if ((esdtrack->GetStatus() & AliESDtrack::kITSrefit) == kFALSE)
          {
            if (AliHBTParticle::fgDebug > 2) 
              Info("ReadNext","Particle skipped: Data at vertex not available.");
@@ -156,8 +157,10 @@ Int_t AliHBTReaderESD::ReadNext()
          }
        
         esdtrack->GetESDpid(pidtable);
-        esdtrack->GetVertexPxPyPz(mom[0],mom[1],mom[2]);
-        esdtrack->GetVertexXYZ(pos[0],pos[1],pos[2]);
+        //esdtrack->GetVertexPxPyPz(mom[0],mom[1],mom[2]); 
+        esdtrack->GetPxPyPz(mom);
+        //esdtrack->GetVertexXYZ(pos[0],pos[1],pos[2]);
+        esdtrack->GetXYZ(pos);
         
         Double_t extx;
         Double_t extp[5];