]>
Commit | Line | Data |
---|---|---|
83c386fb | 1 | #ifndef ALIMUON1DMAPITERATOR_H |
2 | #define ALIMUON1DMAPITERATOR_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 |
83c386fb | 10 | /// \class AliMUON1DMapIterator |
11 | /// \brief Implementation of AliMUONVDataIterator for 1D maps | |
12 | /// | |
13 | // Author Laurent Aphecetche | |
14 | ||
15 | #ifndef ROOT_TObject | |
16 | # include "TObject.h" | |
17 | #endif | |
18 | #ifndef ROOT_TExMap | |
19 | # include "TExMap.h" | |
20 | #endif | |
21 | #ifndef ALIMUONVDATAITERATOR_H | |
22 | # include "AliMUONVDataIterator.h" | |
23 | #endif | |
24 | ||
25 | class AliMpExMap; | |
26 | ||
27 | //_____________________________________________________________________________ | |
28 | class AliMUON1DMapIterator : public AliMUONVDataIterator | |
29 | { | |
30 | public: | |
31 | AliMUON1DMapIterator(AliMpExMap& theMap); | |
32 | ||
33 | virtual ~AliMUON1DMapIterator(); | |
34 | ||
35 | /** The object returned by this iterator is an AliMUONObjectPair(TObject* key,TObject* value) | |
36 | where key is an AliMpIntPair (i,0), and value is | |
37 | an AliMUONVCalibParam. | |
a3d37091 | 38 | The returned object must be deleted by the user (as advertised by the IsOwner method below) |
83c386fb | 39 | */ |
40 | virtual TObject* Next(); | |
41 | ||
42 | virtual void Reset(); | |
43 | ||
44 | virtual Bool_t Remove(); | |
45 | ||
a3d37091 | 46 | virtual Bool_t IsOwner() const { return kTRUE; } |
47 | ||
83c386fb | 48 | private: |
49 | /// copy ctor will not implemented | |
50 | AliMUON1DMapIterator(const AliMUON1DMapIterator&); | |
51 | /// assignement operator will not implemented | |
52 | AliMUON1DMapIterator& operator=(const AliMUON1DMapIterator&); | |
53 | ||
54 | private: | |
55 | TExMapIter fIter; //!< iterator | |
56 | Int_t fCurrentI; //!< current index in direction i | |
57 | ||
58 | ClassDef(AliMUON1DMapIterator,0) // VDataIterator for 1D maps | |
59 | }; | |
60 | ||
61 | ||
62 | #endif |