#include "AliLog.h"
#include "AliMpExMap.h"
+#include "AliMpExMapIterator.h"
#include "Riostream.h"
-#include "AliMUONCheckItemIterator.h"
//-----------------------------------------------------------------------------
/// \class AliMUONCheckItem
}
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);
}