]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Small optimization (Laurent)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Feb 2007 14:23:14 +0000 (14:23 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Feb 2007 14:23:14 +0000 (14:23 +0000)
MUON/mapping/AliMpMotif.cxx
MUON/mapping/AliMpPCB.cxx

index 2a799933df923d5b1abcbd4747d2dd5b97f4df78..8f97e08827910d2e998bb48e8abc1b63f56c1485 100755 (executable)
@@ -100,7 +100,9 @@ AliMpIntPair AliMpMotif::PadIndicesLocal(const TVector2& localPos) const
   /// or (-1,-1) if this position doesn't correspond to any valid
   /// connection
 
-  TVector2 lowerLeft = localPos+Dimensions();
+  TVector2 lowerLeft(localPos);
+  
+  lowerLeft += Dimensions();
 
   if ( lowerLeft.X() < - AliMpConstants::LengthTolerance() || 
        lowerLeft.Y() < - AliMpConstants::LengthTolerance() ) 
index 2019ef0b957590aa01db2029af5d5f9f78756591..787c3f465234aacc1404628eb23f75a7b0c3d95d 100644 (file)
@@ -745,7 +745,11 @@ AliMpPCB::Save() const
   TList lines;
   lines.SetOwner(kTRUE);
   
-  for ( Int_t i = 0; i < fMotifPositions.GetEntriesFast(); ++i )
+#ifdef WITH_ROOT
+  for ( Size_t i = 0; i < fMotifPositions.GetEntriesFast(); ++i )
+#else  
+  for ( Size_t i = 0; i < fMotifPositions.size(); ++i )
+#endif    
   {
     AliMpMotifPosition* pos = GetMotifPosition(i);
     AliMpVMotif* motif = pos->GetMotif();