]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONCheckItemIterator.cxx
AliMUONDigitCalibrator
[u/mrichter/AliRoot.git] / MUON / AliMUONCheckItemIterator.cxx
CommitLineData
ea199e33 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
7* Permission to use, copy, modify and distribute this software and its *
8* documentation strictly for non-commercial purposes is hereby granted *
9* without fee, provided that the above copyright notice appears in all *
10* copies and that both the copyright notice and this permission notice *
11* appear in the supporting documentation. The authors make no claims *
12* about the suitability of this software for any purpose. It is *
13* provided "as is" without express or implied warranty. *
14**************************************************************************/
15
16// $Id$
17
18#include "AliMUONCheckItemIterator.h"
19#include "TExMap.h"
20#include "AliMpExMap.h"
21#include "AliMUONCheckItem.h"
630711ed 22#include "AliLog.h"
ea199e33 23
3d1463c8 24//-----------------------------------------------------------------------------
ea199e33 25/// \class AliMUONCheckItemIterator
26///
27/// Iterator on AliMUONCheckItem objects
28///
29///
30/// \author Laurent Aphecetche
3d1463c8 31//-----------------------------------------------------------------------------
ea199e33 32
33/// \cond CLASSIMP
34ClassImp(AliMUONCheckItemIterator)
35/// \endcond
36
37//_____________________________________________________________________________
38AliMUONCheckItemIterator::AliMUONCheckItemIterator() : TObject(), fIter(0x0)
39{
40 /// default ctor
41}
42
43//_____________________________________________________________________________
44AliMUONCheckItemIterator::AliMUONCheckItemIterator(const AliMUONCheckItem& item)
45: TObject(),
46fIter(0x0)
47{
48 /// ctor
630711ed 49 /// \todo To be reimplemented
ea199e33 50 AliMpExMap* m = item.fMissing;
630711ed 51 AliFatal("Reimplement me w/o AliMpExMap::GetIterator()");
52// fIter = new TExMapIter(m->GetIterator());
ea199e33 53}
54
55//_____________________________________________________________________________
56AliMUONCheckItemIterator::~AliMUONCheckItemIterator()
57{
58 /// dtor
59 delete fIter;
60}
61
62//_____________________________________________________________________________
63void
64AliMUONCheckItemIterator::First()
65{
66 /// Rewind the iterator
67 if ( fIter) fIter->Reset();
68}
69
70//_____________________________________________________________________________
71TObject*
72AliMUONCheckItemIterator::Next()
73{
74 /// Advance one object. Return 0 if ended.
75 if (!fIter) return 0x0;
76 Long_t key, value;
77 Bool_t ok = fIter->Next(key,value);
78 if (ok)
79 {
80 return reinterpret_cast<TObject*>(value);
81 }
82 else
83 {
84 return 0x0;
85 }
86}