#include "AliLog.h"
#include "AliMpExMap.h"
+#include "AliMpExMapIterator.h"
#include "Riostream.h"
-#include "AliMUONCheckItemIterator.h"
//-----------------------------------------------------------------------------
/// \class AliMUONCheckItem
fID(id),
fDead(-1),
fMaximum(maxNumber),
-fMissing(new AliMpExMap(kTRUE))
+fMissing(new AliMpExMap)
{
/// ctor. id is the number of that item, maxNumber is the maximum number
/// of sub-item it can contains, and name is a label, e.g. de, chamber, manu.
}
else
{
- AliMUONCheckItemIterator it(*this);
+ TIter next(CreateIterator());
AliMUONCheckItem* item;
- it.First();
Int_t ndead(0);
fDead=0;
- while ( ( item = dynamic_cast<AliMUONCheckItem*>(it.Next()) ) )
+ while ( ( item = dynamic_cast<AliMUONCheckItem*>(next()) ) )
{
if ( item->IsDead() ) ++ndead;
}
}
}
+//_____________________________________________________________________________
+TIterator*
+AliMUONCheckItem::CreateIterator() const
+{
+ /// Create iterator on this item
+ return fMissing->CreateIterator();
+}
+
//_____________________________________________________________________________
TObject*
AliMUONCheckItem::GetItem(Int_t id) const
{
TObject* object(0x0);
- AliMUONCheckItemIterator it(*this);
-
- it.First();
+ TIter next(CreateIterator());
- while ( ( object = it.Next() ) )
+ while ( ( object = next() ) )
{
object->Print(opt);
}