]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONV1DStore.h
Updated list of MUON libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONV1DStore.h
index 96fff0e9670f84b3ce01b67b028285fdb855ffd2..78c5254f68a332df2e870730b4f4fa0a236e3560 100644 (file)
@@ -3,11 +3,11 @@
 
 // $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