]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/EVE/AliHLTEveHLT.cxx
Correct use of ROOT_INCLUDE_DIR
[u/mrichter/AliRoot.git] / HLT / EVE / AliHLTEveHLT.cxx
index 72dd416f52d0677a5b7270d0ec0e2308b54a8982..73f4aa6df549f5491efee95e99ecece9ad84aae9 100644 (file)
@@ -1,3 +1,4 @@
+// $Id$
 /**************************************************************************
  * This file is property of and copyright by the ALICE HLT Project        *
  * ALICE Experiment at CERN, All rights reserved.                         *
@@ -34,8 +35,8 @@
 #include "AliEveTrack.h"
 #include "TEveVSDStructs.h"
 #include "TString.h"
-#include "TPCLib/tracking-ca/AliHLTTPCCATrackParam.h"
-#include "TPCLib/tracking-ca/AliHLTTPCCATrackConvertor.h"
+#include "tracking-ca/AliHLTTPCCATrackParam.h"
+#include "tracking-ca/AliHLTTPCCATrackConvertor.h"
 #include "AliEveMagField.h"
 #include "TH1.h"
 #include "TH1F.h"
@@ -545,40 +546,39 @@ AliEveTrack* AliHLTEveHLT::MakeEsdTrack (AliESDtrack *at, TEveTrackList* cont) {
     // set a reference at the half of trajectory for better drawing
     //
     
-    for( double dxx=dx/2; ok && TMath::Abs(dxx)>=1.; dxx*=.9 ){
-
-      if( !t.TransportToX(x0+dxx, bz, .999 ) ){
-       ok = 0;
-       break;
+    if( ok ){ 
+      double dxx=dx/2; 
+      if( TMath::Abs(dxx)>=1. ){
+
+       if( !t.TransportToX(x0+dxx, bz, .999 ) ){
+         ok = 0;
+       } else {
+         AliExternalTrackParam tt;
+         AliHLTTPCCATrackConvertor::GetExtParam( t, tt, trackParam.GetAlpha() ); 
+         tt.GetXYZ(vbuf);
+         tt.GetPxPyPz(pbuf);
+         TEvePathMark midPoint(TEvePathMark::kReference);
+         midPoint.fV.Set(vbuf);
+         midPoint.fP.Set(pbuf);    
+         track->AddPathMark( midPoint );     
+       }
       }
-      AliExternalTrackParam tt;
-      AliHLTTPCCATrackConvertor::GetExtParam( t, tt, trackParam.GetAlpha() ); 
-      tt.GetXYZ(vbuf);
-      tt.GetPxPyPz(pbuf);
-      TEvePathMark midPoint(TEvePathMark::kReference);
-      midPoint.fV.Set(vbuf);
-      midPoint.fP.Set(pbuf);    
-      track->AddPathMark( midPoint );
-      break;
     }
    
     //
     // Set a reference at the end of the trajectory
     // and a "decay point", to let the event display know where the track ends
     //
     
-    for( ; ok; dx*=.9 ){
 
-      if( !t.TransportToX(x0+dx, bz, .999 ) ){
-       ok = 0; 
-       break;
-       if( TMath::Abs(dx)<1. ) break;      
-       continue;
-      }
-      break;
-    }
+    ///Removing meaningless loop, please have a look Sergey!!
 
+    // FIXME this loop does not make sense anymore
+    // Matthias 2010-05-02
+    if( !t.TransportToX(x0+dx, bz, .999 ) ){
+      ok = 0; 
+    }
+    
     {
       if( !ok ){ 
        AliHLTTPCCATrackConvertor::SetExtParam( t, trackParam );