]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bugfix in GetEta(raw coordinates); needs slice.
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Nov 2002 17:22:54 +0000 (17:22 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Nov 2002 17:22:54 +0000 (17:22 +0000)
HLT/src/AliL3Transform.cxx
HLT/src/AliL3Transform.h

index aa2cad9a641b0b2bb4c02ad391923851e58e9c39..f2f26f1bdfc4d8cf9c86523e30bd874804823c99 100644 (file)
@@ -762,11 +762,11 @@ void AliL3Transform::XYZtoRPhiEta(Float_t *rpe, Float_t *xyz)
   rpe[2] = 0.5 * log((rpe[0]+xyz[2])/(rpe[0]-xyz[2]));
 }
 
-Double_t AliL3Transform::GetEta(Int_t padrow,Int_t pad,Int_t time)
+Double_t AliL3Transform::GetEta(Int_t slice,Int_t padrow,Int_t pad,Int_t time)
 {
   Float_t xyz[3];
   Int_t sector,row;
-  Slice2Sector(0,padrow,sector,row);
+  Slice2Sector(slice,padrow,sector,row);
   Raw2Local(xyz,sector,row,pad,time);
   
   return GetEta(xyz);
index 36c9c54fcc34758f4ca626fc4d0b433c34b71b75..cc3c3d96201fc65a9912316867e82fbe62238c23 100644 (file)
@@ -91,7 +91,7 @@ class AliL3Transform {
   static Double_t Row2X(Int_t slicerow);
   static Double_t GetMaxY(Int_t slicerow);
   static Double_t GetEta(Float_t *xyz);
-  static Double_t GetEta(Int_t row, Int_t pad, Int_t time);
+  static Double_t GetEta(Int_t slice,Int_t padrow, Int_t pad, Int_t time);
   static Double_t GetPhi(Float_t *xyz);
 
   static void XYZtoRPhiEta(Float_t *rpe, Float_t *xyz);