From: martinez Date: Thu, 18 Sep 2003 10:03:07 +0000 (+0000) Subject: Pass AliMpIntPair/TVector2/TString arguments by const reference. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=d1d8330f1711924611fa5227eed24499f46b9976;p=u%2Fmrichter%2FAliRoot.git Pass AliMpIntPair/TVector2/TString arguments by const reference. (I.Hrivnacova) --- diff --git a/MUON/mapping/AliMpSector.cxx b/MUON/mapping/AliMpSector.cxx index 8f01df1cf6f..1042a39d626 100755 --- a/MUON/mapping/AliMpSector.cxx +++ b/MUON/mapping/AliMpSector.cxx @@ -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), diff --git a/MUON/mapping/AliMpVIndexed.cxx b/MUON/mapping/AliMpVIndexed.cxx index 8094e1fdfce..ab63706d732 100755 --- a/MUON/mapping/AliMpVIndexed.cxx +++ b/MUON/mapping/AliMpVIndexed.cxx @@ -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) { diff --git a/MUON/mapping/AliMpVIndexed.h b/MUON/mapping/AliMpVIndexed.h index d9deb8ce52a..ff3e67c378b 100755 --- a/MUON/mapping/AliMpVIndexed.h +++ b/MUON/mapping/AliMpVIndexed.h @@ -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 diff --git a/MUON/mapping/AliMpVRowSegment.h b/MUON/mapping/AliMpVRowSegment.h index b74a661bb37..6e2dde11290 100755 --- a/MUON/mapping/AliMpVRowSegment.h +++ b/MUON/mapping/AliMpVRowSegment.h @@ -13,10 +13,10 @@ #include #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;