Corrected two bugs. (Sergey)
authorkaamodt <kaamodt@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Sep 2008 22:14:12 +0000 (22:14 +0000)
committerkaamodt <kaamodt@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Sep 2008 22:14:12 +0000 (22:14 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackParam.cxx
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackerComponent.cxx

index 950b419..2b81e09 100644 (file)
@@ -394,7 +394,7 @@ void AliHLTTPCCATrackParam::GetExtParam( AliExternalTrackParam &T, Double_t alph
   if(par[2]<-.999 ) par[2]=-.999;
 
   const Double_t kCLight = 0.000299792458;  
-  Double_t c = 1./(Bz*kCLight);
+  Double_t c = (TMath::Abs(Bz)>1.e-4) ?1./(Bz*kCLight) :1./(5.*kCLight);
   { // kappa => 1/pt
     par[4] *= c;
     cov[10]*= c;
index 362eeab..cd78b43 100644 (file)
@@ -501,7 +501,7 @@ int AliHLTTPCCATrackerComponent::DoEvent
     currOutTracklet->fPt = TMath::Abs(tp.GetSignedPt());
     Double_t snp =  tp.GetSnp() ;
     if( snp>.999 ) snp=.999;
-    if( snp>-.999 ) snp=-.999;
+    if( snp<-.999 ) snp=-.999;
     currOutTracklet->fPsi = TMath::ASin( snp );
     currOutTracklet->fTgl = tp.GetTgl();
     Double_t h = -currOutTracklet->fPt*currOutTracklet->fPt;