]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpadPlane.h
Simplifying calling test, explicite functions for each type of test
[u/mrichter/AliRoot.git] / TRD / AliTRDpadPlane.h
index 9dbccf3c7c6d1b9535bc4f527a8735aabe8657e8..d9bcaf827cda6dec0d447c2cb8b4226167f748d7 100644 (file)
@@ -34,7 +34,8 @@ class AliTRDpadPlane : public TObject {
 
   Int_t    GetPadRowNumber(Double_t z) const;
   Int_t    GetPadColNumber(Double_t rphi, Double_t rowOffset) const;
-
+  Double_t GetTiltOffset(Double_t rowOffset) const 
+                                             { return fTiltingTan * (rowOffset - 0.5*fLengthIPad); };
   Double_t GetPadRowOffset(Int_t row, Double_t z) const
                                              { if ((row < 0) || (row >= fNrows))
                                                  return -1.0;
@@ -55,20 +56,21 @@ class AliTRDpadPlane : public TObject {
   Double_t GetRow0() const                   { return fPadRow[0];    };
   Double_t GetCol0() const                   { return fPadCol[0];    };
 
-  Double_t GetRowEnd() const                 { return fPadRow[fNrows-1]  - fLengthOPad; };
-  Double_t GetColEnd() const                 { return fPadCol[fNcols-11] - fWidthOPad;  };
+  Double_t GetRowEnd() const                 { return fPadRow[fNrows-1] - fLengthOPad; };
+  Double_t GetColEnd() const                 { return fPadCol[fNcols-1] - fWidthOPad;  };
 
-  Double_t GetRowPos(Int_t row) const  { return fPadRow[row];  };
-  Double_t GetColPos(Int_t col) const  { return fPadCol[col];  };
+  Double_t GetRowPos(Int_t row) const        { return fPadRow[row];  };
+  Double_t GetColPos(Int_t col) const        { return fPadCol[col];  };
   
-  Double_t GetRowSize(Int_t row) const { if ((row == 0) || (row == fNrows-1))
+  Double_t GetRowSize(Int_t row) const       { if ((row == 0) || (row == fNrows-1))
                                                  return fLengthOPad;
                                                else
                                                  return fLengthIPad; };
-  Double_t GetColSize(Int_t col) const { if ((col == 0) || (col == fNcols-1))
+  Double_t GetColSize(Int_t col) const       { if ((col == 0) || (col == fNcols-1))
                                                  return fWidthOPad;
                                                else
-                                                 return fWidthIPad;  };
+                                                  return fWidthIPad; };
+  Double_t GetLengthRim() const              { return fLengthRim;    };
 
  protected: