Bug fix (protection against out of range
authormivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jan 2013 13:36:16 +0000 (13:36 +0000)
committermivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jan 2013 13:36:16 +0000 (13:36 +0000)
TPC/AliTPCtrackerMI.cxx

index de46c5d..c5dba76 100644 (file)
@@ -697,7 +697,7 @@ Double_t AliTPCtrackerMI::ErrY2(AliTPCseed* seed, const AliTPCclusterMI * cl){
   erry2*=erry2;
   Double_t addErr=0;
   const Double_t *errInner = AliTPCReconstructor::GetRecoParam()->GetSystematicErrorClusterInner();
-  addErr=errInner[0]*TMath::Exp(-TMath::Abs(cl->GetX()-85.)/errInner[2]);
+  addErr=errInner[0]*TMath::Exp(-TMath::Abs((cl->GetX()-85.)/errInner[1]));
   erry2+=addErr*addErr;
   seed->SetErrorY2(erry2);
   //
@@ -853,7 +853,7 @@ Double_t AliTPCtrackerMI::ErrZ2(AliTPCseed* seed, const AliTPCclusterMI * cl){
   errz2*=errz2;
   Double_t addErr=0;
   const Double_t *errInner = AliTPCReconstructor::GetRecoParam()->GetSystematicErrorClusterInner();
-  addErr=errInner[0]*TMath::Exp(-TMath::Abs(cl->GetX()-85.)/errInner[2]);
+  addErr=errInner[0]*TMath::Exp(-TMath::Abs((cl->GetX()-85.)/errInner[1]));
   errz2+=addErr*addErr;
   seed->SetErrorZ2(errz2);
   //