]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Serious bugfix in Local2Raw function. This function failed to transform
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Oct 2002 14:29:15 +0000 (14:29 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Oct 2002 14:29:15 +0000 (14:29 +0000)
corretly on the z<0 side of the tpc, because of a "wrongly" check. I have
no idea why I did not see this bug before, but probably because the
function is seldom used.

HLT/src/AliL3Transform.cxx

index ca20686bd5dd506612c76a4826f26544c12b857b..92533b46a2317de8a3ffe98a6e85c625c765993b 100644 (file)
@@ -888,10 +888,12 @@ void AliL3Transform::Local2Raw(Float_t *xyz,Int_t sector,Int_t row)
   else
     xyz[1]=xyz[1]/fPadPitchWidthUp+0.5*(fNPads[slicerow]-1);
   Int_t sign=-1;
   else
     xyz[1]=xyz[1]/fPadPitchWidthUp+0.5*(fNPads[slicerow]-1);
   Int_t sign=-1;
-  Int_t nis=fNSectorLow;
-  Int_t nos=fNSectorUp;
-  if ((sector<nis/2) || ((sector-nis)<nos/2)) sign=1; 
+  
+  //Int_t nis=fNSectorLow;
+  //Int_t nos=fNSectorUp;
+  //if ((sector<nis/2) || ((sector-nis)<nos/2)) sign=1; 
+  
+  if(slice < 18) sign = 1;
   xyz[2]=fZLength-sign*xyz[2];
   xyz[2]=(xyz[2]+fZOffset)/fZWidth;
 
   xyz[2]=fZLength-sign*xyz[2];
   xyz[2]=(xyz[2]+fZOffset)/fZWidth;