In CreateIterator(): return the AliMpSectorPadsIterator
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Feb 2007 09:50:40 +0000 (09:50 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Feb 2007 09:50:40 +0000 (09:50 +0000)
instead of calling the base class method

MUON/mapping/AliMpSectorSegmentation.cxx

index f6f1731..0885fd2 100755 (executable)
@@ -39,6 +39,7 @@
 #include "AliMpNeighboursPadIterator.h"
 #include "AliMpSectorAreaHPadIterator.h"
 #include "AliMpSectorAreaVPadIterator.h"
+#include "AliMpSectorPadIterator.h"
 #include "AliMpIntPair.h"
 #include "AliMpArea.h"
 #include "AliMpConstants.h"
@@ -328,8 +329,9 @@ AliMpSectorSegmentation::PadByYDirection(const TVector2& startPosition,
 AliMpVPadIterator* 
 AliMpSectorSegmentation::CreateIterator() const
 {
-  /// Currently uses default implementation
-  return AliMpVSegmentation::CreateIterator();
+/// Create the sector iterator
+
+  return new AliMpSectorPadIterator(fkSector);
 }
 
 //______________________________________________________________________________