From 6501706612104fc15f3e0e9b4e01689bbb65f95f Mon Sep 17 00:00:00 2001 From: prino Date: Thu, 14 Apr 2011 22:52:30 +0000 Subject: [PATCH] Fix in SDD correction maps for cases of negative drift length --- ITS/AliITSCorrMapSDD.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/ITS/AliITSCorrMapSDD.cxx b/ITS/AliITSCorrMapSDD.cxx index 81aa8ee30f2..3d5a7ab9cbe 100644 --- a/ITS/AliITSCorrMapSDD.cxx +++ b/ITS/AliITSCorrMapSDD.cxx @@ -67,6 +67,7 @@ void AliITSCorrMapSDD::ComputeGridPoints(Float_t z, Float_t x, AliITSsegmentatio if(bina>=nAnodesHybrid) bina-=nAnodesHybrid; Float_t stept = seg->Dx()*kMicronTocm/(Float_t)fNDriftPts; fDrLen= seg->Dx()*kMicronTocm-TMath::Abs(x); + if(fDrLen<0) fDrLen=0; Int_t bint = TMath::Abs((Int_t)(fDrLen/stept)); if(bint==fNDriftPts) bint-=1; if(bint>=fNDriftPts){ -- 2.43.0