]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONmapping/AliMpManuIterator.h
MUON + CheckCompiler
[u/mrichter/AliRoot.git] / MUON / MUONmapping / AliMpManuIterator.h
diff --git a/MUON/MUONmapping/AliMpManuIterator.h b/MUON/MUONmapping/AliMpManuIterator.h
new file mode 100644 (file)
index 0000000..f1ce2ae
--- /dev/null
@@ -0,0 +1,48 @@
+#ifndef ALIMPMANUITERATOR_H
+#define ALIMPMANUITERATOR_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+* See cxx source for full Copyright notice                               */
+
+// $Id$
+
+/// \ingroup management
+/// \class AliMpManuIterator
+/// \brief Class to loop over all manus of MUON Tracker
+/// 
+//  Author Laurent Aphecetche, Subatech
+
+#ifndef ROOT_TObject
+#  include "TObject.h"
+#endif
+
+class AliMpBusPatch;
+class TIterator;
+
+class AliMpManuIterator : public TObject
+{
+public:
+  
+  AliMpManuIterator();
+  virtual ~AliMpManuIterator();
+  
+  Bool_t Next(Int_t& detElemId, Int_t& manuId);
+  
+  void Reset();
+  
+private:
+   /// not implemented
+   AliMpManuIterator(const AliMpManuIterator& rhs);
+   /// not implemented
+   AliMpManuIterator& operator=(const AliMpManuIterator& rhs);
+
+private:
+
+    TIterator* fIterator; ///< internal iterator
+    AliMpBusPatch* fCurrentBusPatch; ///< current bus patch
+    Int_t fCurrentManuIndex; ///< current manu index in current bus patch
+    
+  ClassDef(AliMpManuIterator,2) // Iterator on MUON tracker manus
+};
+
+#endif