]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONV1DStore.h
Introduced new DE names unique to each det element;
[u/mrichter/AliRoot.git] / MUON / AliMUONV1DStore.h
index 96fff0e9670f84b3ce01b67b028285fdb855ffd2..17fab3fe6811dd56a0e82fc5ce650ddc7e2011c7 100644 (file)
@@ -4,10 +4,10 @@
 // $Id$
 
 /// \ingroup base
-/// \class AliMUON1DStore
-/// \brief Generic container indexed by a detection element ID
+/// \class AliMUONV1DStore
+/// \brief Generic container indexed by a single integer.
 /// 
-/// \author Laurent Aphecetche
+//  Author Laurent Aphecetche
 
 #ifndef AliMUONV1DSTORE_H
 #define AliMUONV1DSTORE_H
 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;
+  
+  /** 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) // 
+private:  
+  ClassDef(AliMUONV1DStore,0) // Generic container indexed by a single integer
 };
 
 #endif