]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpMotifPositionPadIterator.cxx
Replacement of TVector2 object with two doubles
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifPositionPadIterator.cxx
index 0b653f32d67d51fe1af62257df0f84b0d3b126b7..0e7291427a1b5821b6ca32b854b8cf901ada56eb 100755 (executable)
@@ -153,12 +153,19 @@ AliMpPad AliMpMotifPositionPadIterator::CurrentItem() const
       AliMpMotifType* mt = fkMotifPos->GetMotif()->GetMotifType();
       AliMpConnection* connect = 
         mt->FindConnectionByLocalIndices(ind);
+
+      Double_t posx, posy;
+      fkMotifPos->GetMotif()->PadPositionLocal(ind, posx, posy);
+      posx += fkMotifPos->GetPositionX();
+      posy += fkMotifPos->GetPositionY();
+        
+      Double_t dx, dy;
+      fkMotifPos->GetMotif()->GetPadDimensionsByIndices(ind, dx, dy);           
+
       return AliMpPad(
                   fkMotifPos->GetID(),connect->GetManuChannel(), 
                   fkMotifPos->GlobalIndices(ind),
-                  fkMotifPos->Position()+
-                  fkMotifPos->GetMotif()->PadPositionLocal(ind),
-                  fkMotifPos->GetMotif()->GetPadDimensionsByIndices(ind));
+                  posx, posy, dx, dy);
     }
 }