+// $Id$
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
#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"
// 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 );