Check on curvature not position
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Mar 2004 16:00:54 +0000 (16:00 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Mar 2004 16:00:54 +0000 (16:00 +0000)
HBTAN/AliHBTTrackPoints.cxx

index 82552b3..1c7d5a9 100644 (file)
@@ -57,7 +57,7 @@ AliHBTTrackPoints::AliHBTTrackPoints(Int_t n, AliESDtrack* track, Float_t mf, Fl
   Double_t x;
   Double_t par[5];
   track->GetInnerExternalParameters(x,par);     //get properties of the track
-  if (x == 0)
+  if (par[4] == 0)
    {
      Error("AliHBTTrackPoints","This ESD track does not contain TPC information");
      return;