// $Id$
-/// \ingroup base
-/// \class AliMUON1DStore
-/// \brief Generic container indexed by a detection element ID
+/// \ingroup calib
+/// \class AliMUONV1DStore
+/// \brief Generic container indexed by a single integer.
///
-/// \author Laurent Aphecetche
+// Author Laurent Aphecetche
#ifndef AliMUONV1DSTORE_H
#define AliMUONV1DSTORE_H
# include "TObject.h"
#endif
+class AliMUONVDataIterator;
+
class AliMUONV1DStore : public TObject
{
public:
-
+ AliMUONV1DStore();
virtual ~AliMUONV1DStore();
- virtual TObject* Get(Int_t detElemId) const = 0;
-
- virtual Bool_t Set(Int_t detElemId, TObject*, Bool_t replace) = 0;
+ /// Return the object stored at i.
+ virtual TObject* Get(Int_t i) const = 0;
+
+ /// Return iterator
+ virtual AliMUONVDataIterator* Iterator() const { return 0x0; }
+ /** Set the object stored at i.
+ if replace=false and there's already an object there, returns kFALSE
+ */
+ virtual Bool_t Set(Int_t i, TObject*, Bool_t replace) = 0;
+
+ /// Whether or not this container is the owner of its contents.
virtual Bool_t IsOwner() const = 0;
-private:
-
- ClassDef(AliMUONV1DStore,0) //
+ virtual void Print(Option_t* opt="") const;
+
+
+private:
+ ClassDef(AliMUONV1DStore,0) // Generic container indexed by a single integer
};
#endif