]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpVIndexed.h
Added comments for inline functions
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVIndexed.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
829425a5 5// $MpId: AliMpVIndexed.h,v 1.6 2006/05/23 13:07:29 ivana Exp $
dee1d5f1 6
7/// \ingroup basic
8/// \class AliMpVIndexed
9/// \brief Base class that defines the limits of global pad indices.
10///
11/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
5f91c9e8 12
13#ifndef ALI_MP_V_INDEXED_H
14#define ALI_MP_V_INDEXED_H
15
16#include <TObject.h>
17
18#include "AliMpIntPair.h"
19
20class AliMpVPadIterator;
21
22class AliMpVIndexed : public TObject
23{
24 public:
d1d8330f 25 AliMpVIndexed(const AliMpIntPair& lowLimit, const AliMpIntPair& highLimit);
5f91c9e8 26 AliMpVIndexed();
27 virtual ~AliMpVIndexed();
28
29 // methods
30 virtual AliMpVPadIterator* CreateIterator() const = 0;
31 virtual AliMpIntPair GlobalIndices(const AliMpIntPair& localIndices) const;
32
33 // set methods
d1d8330f 34 void SetLowIndicesLimit(const AliMpIntPair& limit);
35 void SetHighIndicesLimit(const AliMpIntPair& limit);
5f91c9e8 36
37 // get methods
38 Bool_t HasIndices(const AliMpIntPair& indices) const;
39 Bool_t HasValidIndices() const;
40 AliMpIntPair GetLowIndicesLimit() const;
41 AliMpIntPair GetHighIndicesLimit() const;
42
43 private:
44 // data members
829425a5 45 AliMpIntPair fLowIndicesLimit; ///< the lowest global pad indices
46 AliMpIntPair fHighIndicesLimit; ///< the hihgest global pad indices
5f91c9e8 47
48 ClassDef(AliMpVIndexed,1) // A motif position
49};
50
51// inline functions
52
d1d8330f 53inline void AliMpVIndexed::SetLowIndicesLimit(const AliMpIntPair& limit)
5f91c9e8 54{ fLowIndicesLimit = limit; }
55
d1d8330f 56inline void AliMpVIndexed::SetHighIndicesLimit(const AliMpIntPair& limit)
5f91c9e8 57{ fHighIndicesLimit = limit; }
58
59inline AliMpIntPair AliMpVIndexed::GetLowIndicesLimit() const
60{ return fLowIndicesLimit; }
61
62inline AliMpIntPair AliMpVIndexed::GetHighIndicesLimit() const
63{ return fHighIndicesLimit; }
64
65#endif //ALI_MP_V_INDEXED_H