From 3ac821067fc26feced9a0601ce2ebb238bd06ba6 Mon Sep 17 00:00:00 2001 From: vestbo Date: Fri, 15 Nov 2002 17:22:54 +0000 Subject: [PATCH] Bugfix in GetEta(raw coordinates); needs slice. --- HLT/src/AliL3Transform.cxx | 4 ++-- HLT/src/AliL3Transform.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HLT/src/AliL3Transform.cxx b/HLT/src/AliL3Transform.cxx index aa2cad9a641..f2f26f1bdfc 100644 --- a/HLT/src/AliL3Transform.cxx +++ b/HLT/src/AliL3Transform.cxx @@ -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); diff --git a/HLT/src/AliL3Transform.h b/HLT/src/AliL3Transform.h index 36c9c54fcc3..cc3c3d96201 100644 --- a/HLT/src/AliL3Transform.h +++ b/HLT/src/AliL3Transform.h @@ -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); -- 2.43.0