* provided "as is" without express or implied warranty. *
**************************************************************************/
-/* $Id$ */
+// $Id$
+// $MpId: AliMpDEIterator.cxx,v 1.4 2006/03/13 12:22:15 ivana Exp $
+// Category: management
+
+// ------------------------
+// Class AliMpDEIterator
+// ------------------------
+// The iterator over valid detection element IDs
+// Author: Ivana Hrivnacova, IPN Orsay
#include "AliMpDEIterator.h"
#include "AliMpDEManager.h"
//______________________________________________________________________________
void AliMpDEIterator::First(Int_t moduleId)
{
+/// Reset the iterator, so that it points to the first DE
fModuleId = -1;
fIndex = -1;
//______________________________________________________________________________
void AliMpDEIterator::Next()
{
+/// Increment iterator to next DE
+
fIndex++;
// Invalidate if at the end
//______________________________________________________________________________
Bool_t AliMpDEIterator::IsDone() const
{
+/// Is the iterator in the end?
+
return ( fIndex < 0 );
}
//______________________________________________________________________________
Int_t AliMpDEIterator::CurrentDE() const
{
+/// Current DE Id
+
if ( ! IsDone() )
return fgDetElemIds.At(fIndex);
else {