X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=MUON%2FAliMUON1DArray.h;h=0442ed9a1151e21e8a15d11c7e1c71d7b7d7979b;hb=f26a8959717a427ed9ca78dc6f19d62417a4410f;hp=bf161a233cfeb24daa7cfc2433a9c7b61f79871d;hpb=5cc83322f7ca7982a349c30357d03a25f8b63343;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUON1DArray.h b/MUON/AliMUON1DArray.h index bf161a233cf..0442ed9a115 100644 --- a/MUON/AliMUON1DArray.h +++ b/MUON/AliMUON1DArray.h @@ -3,22 +3,22 @@ // $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); @@ -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