]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Can specify patch=-1, this means all numbers will be relative to a whole
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Nov 2002 12:21:49 +0000 (12:21 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Nov 2002 12:21:49 +0000 (12:21 +0000)
slice. E.g. GetNRows(-1) return the number 159 (all rows in a slice).

HLT/src/AliL3Transform.cxx
HLT/src/AliL3Transform.h

index 33d2e90880b6fe066eb0b59e57892e100e071bc9..478698089e4fa404c93a434606da8664896baa62 100644 (file)
@@ -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 "<<patch<<endl;
+      return 0;
+    }
+  else
+    return fRows[patch][0];
+}
+
+Int_t AliL3Transform::GetLastRow(Int_t patch)
+{
+  if(patch==-1)
+    return fRows[5][1];
+  else if(patch < -1 || patch >= 6)
+    {
+      cerr<<"AliL3Transform::GetLastRow() : Wrong patch "<<patch<<endl;
+      return 0;
+    }
+  else
+    return fRows[patch][1];
+}
+
+Int_t AliL3Transform::GetNRows(Int_t patch)
+{
+  if(patch==-1)
+    return fNRow;
+  else if(patch < -1 || patch >= 6)
+    {
+      cerr<<"AliL3Transform::GetNRows() : Wrong patch "<<patch<<endl;
+      return 0;
+    }
+  else
+    return fNRows[patch];
+}
+
 Double_t AliL3Transform::GetPadLength(Int_t padrow)
 {
   if(padrow >= fNRow)
index 36f03332fc1f71abb336fb15a4b60749afcf3092..36c9c54fcc34758f4ca626fc4d0b433c34b71b75 100644 (file)
@@ -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;}