]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpManuIterator.h
In Print(): added an option to print area borders
[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     /// not implemented
36     AliMpManuIterator(const AliMpManuIterator& rhs);
37   /// not implemented
38   AliMpManuIterator& operator=(const AliMpManuIterator& rhs);
39
40     AliMpBusPatch* NextBusPatch() const;
41     
42 private:
43
44     TExMapIter* fIterator; ///< internal iterator
45     AliMpBusPatch* fCurrentBusPatch; ///< current bus patch
46     Int_t fCurrentManuIndex; ///< current manu index in current bus patch
47     
48   ClassDef(AliMpManuIterator,1) // Iterator on MUON tracker manus
49 };
50
51 #endif