]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/src/AliL3Transform.cxx
Comments formatted the way THtml likes it.
[u/mrichter/AliRoot.git] / HLT / src / AliL3Transform.cxx
index b7cf8dc220c937fed9f2d542fead76507dbb279c..47d37aa85c63fc43192e81b4c4a61fa102fd0ce9 100644 (file)
@@ -1,13 +1,12 @@
-
-//Author:        Anders Strand Vestbo
-//Author:        Uli Frankenfeld
-//Last Modified: 05.12.2000
+// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>, Uli Frankenfeld <mailto:franken@fi.uib.no>
+//*-- Copyright &copy ASV
 
 #include "AliL3Logging.h"
 #include "AliL3Transform.h"
 //#include <TFile.h>
 #include <math.h>
-//___________________________
+
+//_____________________________________________________________
 // AliL3Transform
 //
 // Transformation class for ALICE TPC.
@@ -511,13 +510,20 @@ void AliL3Transform::Raw2Local(Float_t *xyz,Int_t sector,Int_t row,Float_t pad,F
   else
     xyz[1]=(pad-0.5*(npads-1))*fPadPitchWidthUp;
   xyz[2]=fZWidth*time-3.*fZSigma;
-  Int_t sign=-1;
-  Int_t nis=fNSectorLow;
-  Int_t nos=fNSectorUp;
+  Int_t sign=1;
+  
+  
+  if(slice < 18)
+    sign = 1;
+  else
+    sign = -1;
   
-  if((sector<nis)/2 || ((sector-nis)<nos/2)) sign=1;
   xyz[2]=sign*(250.-xyz[2]);
-
+  
+  //Int_t nis=fNSectorLow;
+  //Int_t nos=fNSectorUp;
+  //if((sector<nis)/2 || ((sector-nis)<nos/2)) sign=1;
+  
 }
 
 void AliL3Transform::Local2Global(Float_t *xyz,Int_t sector,Int_t row)