]>
Commit | Line | Data |
---|---|---|
f246123b | 1 | #ifndef ALIMUON2DMAPITERATOR_H |
2 | #define ALIMUON2DMAPITERATOR_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
a3d37091 | 9 | /// \ingroup calib |
f246123b | 10 | /// \class AliMUON2DMapIterator |
cb6388d5 | 11 | /// \brief Implementation of TIterator for 2D maps |
f246123b | 12 | /// |
78649106 | 13 | // Author Laurent Aphecetche |
f246123b | 14 | |
f246123b | 15 | #ifndef ROOT_TExMap |
16 | # include "TExMap.h" | |
17 | #endif | |
cb6388d5 | 18 | #ifndef ROOT_TIterator |
19 | # include "TIterator.h" | |
f246123b | 20 | #endif |
21 | ||
22 | class AliMpExMap; | |
23 | ||
24 | //_____________________________________________________________________________ | |
cb6388d5 | 25 | class AliMUON2DMapIterator : public TIterator |
f246123b | 26 | { |
27 | public: | |
cb6388d5 | 28 | AliMUON2DMapIterator(const AliMpExMap& theMap); |
29 | AliMUON2DMapIterator(const AliMUON2DMapIterator& rhs); | |
30 | AliMUON2DMapIterator& operator=(const AliMUON2DMapIterator& rhs); | |
31 | TIterator& operator=(const TIterator& rhs); | |
f246123b | 32 | |
33 | virtual ~AliMUON2DMapIterator(); | |
34 | ||
cb6388d5 | 35 | ///The returned object must not be deleted by the user. |
f246123b | 36 | virtual TObject* Next(); |
37 | ||
38 | virtual void Reset(); | |
39 | ||
cb6388d5 | 40 | virtual const TCollection* GetCollection() const; |
a3d37091 | 41 | |
f246123b | 42 | private: |
c4ee792d | 43 | TObject* GetValue(TExMapIter& iter, Int_t& key) const; |
cb6388d5 | 44 | AliMpExMap* GetMap(TExMapIter& iter, Int_t& key) const; |
f246123b | 45 | |
46 | private: | |
c4ee792d | 47 | TExMapIter fIter; //!< first iterator |
48 | TExMapIter* fIter2; //!< second iterator | |
49 | Int_t fCurrentI; //!< current index in direction i | |
50 | Int_t fCurrentJ; //!< current index in direction j | |
cb6388d5 | 51 | |
f246123b | 52 | ClassDef(AliMUON2DMapIterator,0) // VDataIterator for 2D maps |
53 | }; | |
54 | ||
55 | ||
56 | #endif |