]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Pass AliMpIntPair/TVector2/TString arguments by const reference.
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Sep 2003 10:03:07 +0000 (10:03 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Sep 2003 10:03:07 +0000 (10:03 +0000)
(I.Hrivnacova)

MUON/mapping/AliMpSector.cxx
MUON/mapping/AliMpVIndexed.cxx
MUON/mapping/AliMpVIndexed.h
MUON/mapping/AliMpVRowSegment.h

index 8f01df1cf6f6b8c2e40e875b4979f6607a615c82..1042a39d626930a061a1a429caf99c2e4af68445 100755 (executable)
@@ -22,7 +22,7 @@
 ClassImp(AliMpSector)
 
 //_____________________________________________________________________________
-AliMpSector::AliMpSector(TString id, Int_t nofZones, Int_t nofRows, 
+AliMpSector::AliMpSector(const TString& id, Int_t nofZones, Int_t nofRows, 
                          AliMpDirection direction) 
   : TObject(),
     fID(id),
index 8094e1fdfce1aa5307509ebf5a1e6a43d3fe68fb..ab63706d732cf9b668dd7a798d66a8035f62a5b3 100755 (executable)
@@ -12,7 +12,8 @@
 ClassImp(AliMpVIndexed)
 
 //_____________________________________________________________________________
-AliMpVIndexed::AliMpVIndexed(AliMpIntPair lowLimit, AliMpIntPair highLimit)
+AliMpVIndexed::AliMpVIndexed(const AliMpIntPair& lowLimit, 
+                             const AliMpIntPair& highLimit)
   : TObject(),
     fLowIndicesLimit(lowLimit),
     fHighIndicesLimit(highLimit) {
index d9deb8ce52ace1297d443f3c0a36bca040cc7e67..ff3e67c378b47847275c8ff715e6f212b54f38e8 100755 (executable)
@@ -19,7 +19,7 @@ class AliMpVPadIterator;
 class AliMpVIndexed : public TObject
 {
  public:
-  AliMpVIndexed(AliMpIntPair lowLimit, AliMpIntPair highLimit);
+  AliMpVIndexed(const AliMpIntPair& lowLimit, const AliMpIntPair& highLimit);
   AliMpVIndexed();
   virtual ~AliMpVIndexed();
 
@@ -28,8 +28,8 @@ class AliMpVIndexed : public TObject
   virtual AliMpIntPair  GlobalIndices(const AliMpIntPair& localIndices) const;
 
   // set methods
-  void SetLowIndicesLimit(AliMpIntPair limit);
-  void SetHighIndicesLimit(AliMpIntPair limit);
+  void SetLowIndicesLimit(const AliMpIntPair& limit);
+  void SetHighIndicesLimit(const AliMpIntPair& limit);
 
   // get methods
   Bool_t    HasIndices(const AliMpIntPair& indices) const;
@@ -47,10 +47,10 @@ class AliMpVIndexed : public TObject
 
 // inline functions
 
-inline void AliMpVIndexed::SetLowIndicesLimit(AliMpIntPair limit)
+inline void AliMpVIndexed::SetLowIndicesLimit(const AliMpIntPair& limit)
 { fLowIndicesLimit = limit; }
   
-inline void AliMpVIndexed::SetHighIndicesLimit(AliMpIntPair limit)
+inline void AliMpVIndexed::SetHighIndicesLimit(const AliMpIntPair& limit)
 { fHighIndicesLimit = limit; }  
   
 inline AliMpIntPair AliMpVIndexed::GetLowIndicesLimit() const
index b74a661bb37672cc7f8db4832dbdca2fef97559e..6e2dde1129095b74c95ab251a6dac6093cfa7c87 100755 (executable)
 #include <TVector2.h>
 
 #include "AliMpVIndexed.h"
-#include "AliMpIntPair.h"
 
 class AliMpRow;
 class AliMpVMotif;
+class AliMpIntPair;
 
 class AliMpVRowSegment : public AliMpVIndexed
 {
@@ -43,7 +43,8 @@ class AliMpVRowSegment : public AliMpVIndexed
     // set methods
     virtual void      SetOffset(const TVector2& offset) = 0;
     virtual void      SetGlobalIndices() = 0;
-    virtual Int_t     SetIndicesToMotifPosition(Int_t i, AliMpIntPair indices) = 0;
+    virtual Int_t     SetIndicesToMotifPosition(Int_t i, 
+                               const AliMpIntPair& indices) = 0;
     
     // get methods
     virtual AliMpRow*  GetRow() const = 0;