]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct account of tilting angle (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Jul 2005 08:49:41 +0000 (08:49 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Jul 2005 08:49:41 +0000 (08:49 +0000)
TRD/AliTRDpadPlane.cxx
TRD/AliTRDpadPlane.h

index 0a6692e4b4fcef89803a21073fca8d377e23e95f..4a511fada3302ffe6d05f3f5c0e11f813a0e8960 100644 (file)
@@ -417,7 +417,7 @@ Int_t AliTRDpadPlane::GetPadRowNumber(Double_t z) const
 
 //_____________________________________________________________________________
 Int_t AliTRDpadPlane::GetPadColNumber(Double_t rphi
-                                    , Double_t rowOffset) const
+                                     , Double_t /*rowOffset*/) const
 {
   //
   // Finds the pad column number for a given global rphi-position
@@ -429,11 +429,13 @@ Int_t AliTRDpadPlane::GetPadColNumber(Double_t rphi
   Int_t    middle    = 0;
   Double_t rphiShift = 0;
 
-  //
+  // MI change don't apply tilting angle here - better to do it directly on hit level
   // Take the tilting angle into account by shifting the hit position
   // into the opposite direction
-  //
-  rphiShift = rphi - (fTiltingTan * rowOffset);
+  // 
+
+
+  rphiShift = rphi ;
 
   if ((rphiShift > GetCol0()) || (rphiShift < GetColEnd())) {
 
index 9dbccf3c7c6d1b9535bc4f527a8735aabe8657e8..d8ee614653b6510446742c32599d0efb163c144a 100644 (file)
@@ -34,7 +34,7 @@ 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*fLengthOPad);}
   Double_t GetPadRowOffset(Int_t row, Double_t z) const
                                              { if ((row < 0) || (row >= fNrows))
                                                  return -1.0;