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 aa2cad9..f2f26f1 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 36c9c54..cc3c3d9 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);