]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUON1DArray.h
Make the Scan method public
[u/mrichter/AliRoot.git] / MUON / AliMUON1DArray.h
index 9c4e28c2e092accf227477fba66cc54c1f481992..0442ed9a1151e21e8a15d11c7e1c71d7b7d7979b 100644 (file)
@@ -3,22 +3,22 @@
 
 // $Id$
 
-/// \ingroup base
+/// \ingroup core
 /// \class AliMUON1DArray
-/// \brief Implementation of AliMUONV1DStore
+/// \brief Implementation of AliMUONVStore
 /// 
-/// \author Laurent Aphecetche
+//  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);
@@ -27,25 +27,36 @@ public:
   
   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