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),
ClassImp(AliMpVIndexed)
//_____________________________________________________________________________
-AliMpVIndexed::AliMpVIndexed(AliMpIntPair lowLimit, AliMpIntPair highLimit)
+AliMpVIndexed::AliMpVIndexed(const AliMpIntPair& lowLimit,
+ const AliMpIntPair& highLimit)
: TObject(),
fLowIndicesLimit(lowLimit),
fHighIndicesLimit(highLimit) {
class AliMpVIndexed : public TObject
{
public:
- AliMpVIndexed(AliMpIntPair lowLimit, AliMpIntPair highLimit);
+ AliMpVIndexed(const AliMpIntPair& lowLimit, const AliMpIntPair& highLimit);
AliMpVIndexed();
virtual ~AliMpVIndexed();
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;
// 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
#include <TVector2.h>
#include "AliMpVIndexed.h"
-#include "AliMpIntPair.h"
class AliMpRow;
class AliMpVMotif;
+class AliMpIntPair;
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;