From: vestbo Date: Tue, 18 Sep 2001 10:48:24 +0000 (+0000) Subject: Added new funtion GetEta X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=bd7e82e0e42a444724eadd090750d3fa53dd044a Added new funtion GetEta --- diff --git a/HLT/src/AliL3Transform.cxx b/HLT/src/AliL3Transform.cxx index 5048a13e338..95fb71ad1a4 100644 --- a/HLT/src/AliL3Transform.cxx +++ b/HLT/src/AliL3Transform.cxx @@ -413,6 +413,15 @@ Double_t AliL3Transform::GetEta(Float_t *xyz) return eta; } +Double_t AliL3Transform::GetEta(Int_t row,Int_t pad,Int_t time) +{ + Float_t xyz[3]; + Raw2Local(xyz,0,row,pad,time); + + return GetEta(xyz); +} + + Double_t AliL3Transform::GetPhi(Float_t *xyz) { diff --git a/HLT/src/AliL3Transform.h b/HLT/src/AliL3Transform.h index eb29a4799fe..f5e79b38e82 100644 --- a/HLT/src/AliL3Transform.h +++ b/HLT/src/AliL3Transform.h @@ -45,6 +45,7 @@ class AliL3Transform { Int_t GetNTimeBins(){return fNTimeBins;} Double_t GetEta(Float_t *xyz); + Double_t GetEta(Int_t row,Int_t pad,Int_t time); Double_t GetPhi(Float_t *xyz); Double_t GetMaxY(Int_t slicerow); void Local2Global(Float_t *xyz,Int_t slice);