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.
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;