]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpManuIterator.h
Initial version (Laurent)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpManuIterator.h
1 #ifndef ALIMPMANUITERATOR_H
2 #define ALIMPMANUITERATOR_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
9 /// \ingroup management
10 /// \class AliMpManuIterator
11 /// \brief Class to loop over all manus of MUON Tracker
12 /// 
13 //  Author Laurent Aphecetche, Subatech
14
15 #ifndef ROOT_TObject
16 #  include "TObject.h"
17 #endif
18
19 class AliMpBusPatch;
20 class TExMapIter;
21
22 class AliMpManuIterator : public TObject
23 {
24 public:
25   
26   AliMpManuIterator();
27   virtual ~AliMpManuIterator();
28   
29   Bool_t Next(Int_t& detElemId, Int_t& manuId);
30   
31   void Reset();
32   
33 private:
34
35     AliMpBusPatch* NextBusPatch() const;
36     
37 private:
38
39     TExMapIter* fIterator; ///< internal iterator
40     AliMpBusPatch* fCurrentBusPatch; ///< current bus patch
41     Int_t fCurrentManuIndex; ///< current manu index in current bus patch
42     
43   ClassDef(AliMpManuIterator,1) // Iterator on MUON tracker manus
44 };
45
46 #endif