1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpVIndexed.h,v 1.5 2005/08/26 15:43:36 ivana Exp $
8 /// \class AliMpVIndexed
9 /// \brief Base class that defines the limits of global pad indices.
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_V_INDEXED_H
14 #define ALI_MP_V_INDEXED_H
18 #include "AliMpIntPair.h"
20 class AliMpVPadIterator;
22 class AliMpVIndexed : public TObject
25 AliMpVIndexed(const AliMpIntPair& lowLimit, const AliMpIntPair& highLimit);
27 virtual ~AliMpVIndexed();
30 virtual AliMpVPadIterator* CreateIterator() const = 0;
31 virtual AliMpIntPair GlobalIndices(const AliMpIntPair& localIndices) const;
34 void SetLowIndicesLimit(const AliMpIntPair& limit);
35 void SetHighIndicesLimit(const AliMpIntPair& limit);
38 Bool_t HasIndices(const AliMpIntPair& indices) const;
39 Bool_t HasValidIndices() const;
40 AliMpIntPair GetLowIndicesLimit() const;
41 AliMpIntPair GetHighIndicesLimit() const;
45 AliMpIntPair fLowIndicesLimit; // the lowest global pad indices
46 AliMpIntPair fHighIndicesLimit; // the hihgest global pad indices
48 ClassDef(AliMpVIndexed,1) // A motif position
53 inline void AliMpVIndexed::SetLowIndicesLimit(const AliMpIntPair& limit)
54 { fLowIndicesLimit = limit; }
56 inline void AliMpVIndexed::SetHighIndicesLimit(const AliMpIntPair& limit)
57 { fHighIndicesLimit = limit; }
59 inline AliMpIntPair AliMpVIndexed::GetLowIndicesLimit() const
60 { return fLowIndicesLimit; }
62 inline AliMpIntPair AliMpVIndexed::GetHighIndicesLimit() const
63 { return fHighIndicesLimit; }
65 #endif //ALI_MP_V_INDEXED_H