// $Id$
-/// \ingroup calib
+/// \ingroup core
/// \class AliMUON1DArray
-/// \brief Implementation of AliMUONV1DStore
+/// \brief Implementation of AliMUONVStore
///
// Author Laurent Aphecetche
#ifndef ALIMUON1DARRAY_H
#define ALIMUON1DARRAY_H
-#ifndef ALIMUONV1DSTORE_H
-# include "AliMUONV1DStore.h"
+#ifndef ALIMUONVSTORE_H
+# include "AliMUONVStore.h"
#endif
class TObjArray;
-class AliMUON1DArray : public AliMUONV1DStore
+class AliMUON1DArray : public AliMUONVStore
{
public:
AliMUON1DArray(Int_t theSize=0);
virtual ~AliMUON1DArray();
- /// Return the object stored at i.
- virtual TObject* Get(Int_t i) const;
+ virtual AliMUON1DArray* Create() const;
- /** 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* object, Bool_t replace);
+ /// Add an object. Object must have a valid UniqueID, which is
+ /// used as the index of the array.
+ virtual Bool_t Add(TObject* object);
+
+ virtual Bool_t CanConnect() const { return kFALSE; }
+
+ virtual void Clear(Option_t* opt="");
+
+ virtual TIterator* CreateIterator() const;
+
+ using AliMUONVStore::FindObject;
+
+ /// Return the object stored with id.
+ virtual TObject* FindObject(UInt_t identifier) const;
+
+ using AliMUONVStore::GetSize;
- /// Whether or not this container is the owner of its contents.
- virtual Bool_t IsOwner() const { return kTRUE; }
+ virtual Int_t GetSize() const;
private:
void CopyTo(AliMUON1DArray& to) const;
+ Bool_t Set(Int_t i, TObject* object, Bool_t replace);
private:
TObjArray* fArray; ///< Internal array
- ClassDef(AliMUON1DArray,1) // Implementation of AliMUONV1DStore
+ ClassDef(AliMUON1DArray,1) // Implementation of AliMUONVStore
};
#endif