]>
Commit | Line | Data |
---|---|---|
73250182 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
700013f0 | 4 | // $Id$ |
13985652 | 5 | // $MpId: AliMpDEIterator.h,v 1.5 2006/05/24 13:58:16 ivana Exp $ |
73250182 | 6 | |
7 | /// \ingroup management | |
8 | /// \class AliMpDEIterator | |
38956661 | 9 | /// \brief The iterator over detection elements |
73250182 | 10 | /// |
73250182 | 11 | /// It can iterate |
38956661 | 12 | /// - over all detection elements, if started with First() function; |
0a478fb1 | 13 | /// - or over detection elements in a selected chamber, if started with |
14 | /// First(Int_t chamberId) function \n | |
73250182 | 15 | /// |
13985652 | 16 | /// \author Ivana Hrivnacova, IPN Orsay |
73250182 | 17 | |
18 | #ifndef ALI_MP_DE_ITERATOR_H | |
19 | #define ALI_MP_DE_ITERATOR_H | |
20 | ||
2a7ea2e6 | 21 | #include <TObject.h> |
22 | ||
73250182 | 23 | #include <TArrayI.h> |
24 | ||
38956661 | 25 | class AliMpDetElement; |
630711ed | 26 | class TIterator; |
73250182 | 27 | class TString; |
28 | ||
29 | class AliMpDEIterator : public TObject { | |
30 | ||
31 | public: | |
32 | AliMpDEIterator(); | |
630711ed | 33 | //AliMpDEIterator(const AliMpDEIterator& rhs); |
73250182 | 34 | virtual ~AliMpDEIterator(); |
35 | ||
36 | // Operators | |
630711ed | 37 | //AliMpDEIterator& operator=(const AliMpDEIterator& rhs); |
73250182 | 38 | |
39 | // Methods for iterating over DE elements | |
40 | // | |
41 | void First(); | |
0a478fb1 | 42 | void First(Int_t chamberId); |
73250182 | 43 | void Next(); |
44 | Bool_t IsDone() const; | |
38956661 | 45 | |
46 | AliMpDetElement* CurrentDE() const; | |
47 | Int_t CurrentDEId() const; | |
73250182 | 48 | |
49 | private: | |
630711ed | 50 | /// Not implemented |
51 | AliMpDEIterator(const AliMpDEIterator& rhs); | |
52 | /// Not implemented | |
53 | AliMpDEIterator& operator=(const AliMpDEIterator& rhs); | |
73250182 | 54 | |
55 | // data members | |
630711ed | 56 | AliMpDetElement* fCurrentDE; ///< current element in iteration |
57 | TIterator* fIterator; ///< iterator | |
58 | Int_t fChamberId; ///< The iterated chamber | |
73250182 | 59 | |
829425a5 | 60 | ClassDef(AliMpDEIterator,0) // The iterator over valid detection element IDs |
73250182 | 61 | }; |
62 | ||
63 | #endif //ALI_MP_DE_ITERATOR_H | |
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 |