Extended Global2Local to include slice as input
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 13:15:43 +0000 (13:15 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 13:15:43 +0000 (13:15 +0000)
HLT/src/AliL3Transform.cxx
HLT/src/AliL3Transform.h

index 13c6e3386aa9d72d27cc035d0b3919a1b2c976e2..b7cf8dc220c937fed9f2d542fead76507dbb279c 100644 (file)
@@ -544,10 +544,14 @@ Double_t AliL3Transform::GetMaxY(Int_t slicerow)
      return fPadPitchWidthUp*fNPads[slicerow]/2;
 }
 
-void AliL3Transform::Global2Local(Float_t *xyz,Int_t sector)
+void AliL3Transform::Global2Local(Float_t *xyz,Int_t sector,Bool_t isSlice)
 {
+  
   Int_t slice;
-  Sector2Slice(slice, sector);  
+  if(!isSlice)
+    Sector2Slice(slice, sector);  
+  else
+    slice = sector;
   Float_t cs = fCos[slice];
   Float_t sn = fSin[slice];
   Float_t x1 = xyz[0]*cs + xyz[1]*sn;
index f5e79b38e82d9c8f2c30748d35a868176970464e..549344c4bccbeef253efba82a5923feb002f1366 100644 (file)
@@ -54,7 +54,7 @@ class AliL3Transform {
 
   void Raw2Local(Float_t *xyz,Int_t sector,Int_t row,Float_t pad,Float_t time);
   void Local2Global(Float_t *xyz,Int_t sector,Int_t row);
-  void Global2Local(Float_t *xyz,Int_t sector);
+  void Global2Local(Float_t *xyz,Int_t sector,Bool_t isSlice=kFALSE);
   void Raw2Global(Float_t *xyz,Int_t sector,Int_t row,Float_t pad,Float_t time);
   void Local2Raw(Float_t *xyz,Int_t sector,Int_t row);
   void Global2Raw(Float_t *xyz,Int_t sector,Int_t row);