Implemented iterator (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUON2DMap.cxx
index 8287d75..932e339 100644 (file)
 #include "AliMUON2DMap.h"
 
 #include "AliLog.h"
+#include "AliMUONVDataIterator.h"
+#include "AliMUON2DMapIterator.h"
 #include "AliMpExMap.h"
+#include "AliMpIntPair.h"
 
 /// \class AliMUON2DMap
 /// \brief Basic implementation of AliMUONV2DStore container using
@@ -92,6 +95,19 @@ AliMUON2DMap::Get(Int_t i, Int_t j) const
 }
 
 //_____________________________________________________________________________
+AliMUONVDataIterator*
+AliMUON2DMap::Iterator() const
+{
+  // Create and return an iterator on this map
+  // Returned iterator must be deleted by user.
+  if ( fMap ) 
+  {
+    return new AliMUON2DMapIterator(*fMap);
+  }
+  return 0x0;
+}
+
+//_____________________________________________________________________________
 void
 AliMUON2DMap::Print(Option_t*) const
 {