]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Set local coordinate for HasPad method (Ivana)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Mar 2005 11:43:55 +0000 (11:43 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Mar 2005 11:43:55 +0000 (11:43 +0000)
MUON/AliMUONGeometrySegmentation.cxx

index 55149e6fc11af759a82ad0fe723a6165144d08b2..166b3e1006d53b16ec3472a6736ca24bf0930a37 100644 (file)
@@ -213,16 +213,16 @@ Bool_t  AliMUONGeometrySegmentation::GetPadI(Int_t detElemId,
 // ---
 
   if (!Notify(detElemId)) return false;
-  
-  if (!fCurrentSegmentation->HasPad(xg, yg, zg)) return false;
 
   Float_t xl, yl, zl;
   fCurrentDetElement->Global2Local(xg, yg, zg, xl, yl, zl); 
 
+  if (!fCurrentSegmentation->HasPad(xl, yl, zl)) return false;
+
   fCurrentSegmentation->GetPadI(xl, yl, zl, ix, iy);
   return true;
 }
-                      
+              
 //______________________________________________________________________________
 Bool_t  AliMUONGeometrySegmentation::GetPadC(Int_t detElemId,
                                         Int_t ix, Int_t iy,