From e376e129692aa4bbe08cb0440b479b6bf37a06ba Mon Sep 17 00:00:00 2001 From: vestbo Date: Tue, 12 Nov 2002 12:21:49 +0000 Subject: [PATCH] Can specify patch=-1, this means all numbers will be relative to a whole slice. E.g. GetNRows(-1) return the number 159 (all rows in a slice). --- HLT/src/AliL3Transform.cxx | 39 ++++++++++++++++++++++++++++++++++++++ HLT/src/AliL3Transform.h | 6 +++--- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/HLT/src/AliL3Transform.cxx b/HLT/src/AliL3Transform.cxx index 33d2e90880b..478698089e4 100644 --- a/HLT/src/AliL3Transform.cxx +++ b/HLT/src/AliL3Transform.cxx @@ -681,6 +681,45 @@ Bool_t AliL3Transform::MakeInitFile(Char_t *filename,Char_t *path) #endif } +Int_t AliL3Transform::GetFirstRow(Int_t patch) +{ + if(patch==-1) + return 0; + else if(patch < -1 || patch >= 6) + { + cerr<<"AliL3Transform::GetFirstRow() : Wrong patch "<= 6) + { + cerr<<"AliL3Transform::GetLastRow() : Wrong patch "<= 6) + { + cerr<<"AliL3Transform::GetNRows() : Wrong patch "<= fNRow) diff --git a/HLT/src/AliL3Transform.h b/HLT/src/AliL3Transform.h index 36f03332fc1..36c9c54fcc3 100644 --- a/HLT/src/AliL3Transform.h +++ b/HLT/src/AliL3Transform.h @@ -56,9 +56,9 @@ class AliL3Transform { static const Char_t* GetParamName() {return "75x40_100x60_150x60";} - static Int_t GetFirstRow(Int_t patch) {return fRows[patch][0];} - static Int_t GetLastRow(Int_t patch) {return fRows[patch][1];} - static Int_t GetNRows(Int_t patch) {return fNRows[patch];} + static Int_t GetFirstRow(Int_t patch); + static Int_t GetLastRow(Int_t patch); + static Int_t GetNRows(Int_t patch); static Int_t GetNRows() {return fNRow;} static Int_t GetNPatches() {return fNPatches;} static Double_t GetBField() {return fBField;} -- 2.43.0