1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUON1DArray
8 /// \brief Implementation of AliMUONVStore
10 // Author Laurent Aphecetche
12 #ifndef ALIMUON1DARRAY_H
13 #define ALIMUON1DARRAY_H
15 #ifndef ALIMUONVSTORE_H
16 # include "AliMUONVStore.h"
21 class AliMUON1DArray : public AliMUONVStore
24 AliMUON1DArray(Int_t theSize=0);
25 AliMUON1DArray(const AliMUON1DArray& other);
26 AliMUON1DArray& operator=(const AliMUON1DArray& other);
28 virtual ~AliMUON1DArray();
30 virtual AliMUON1DArray* Create() const;
32 /// Add an object. Object must have a valid UniqueID, which is
33 /// used as the index of the array.
34 virtual Bool_t Add(TObject* object);
36 virtual Bool_t CanConnect() const { return kFALSE; }
38 virtual void Clear(Option_t* opt="");
40 virtual TIterator* CreateIterator() const;
42 using AliMUONVStore::FindObject;
44 /// Return the object stored with id.
45 virtual TObject* FindObject(UInt_t identifier) const;
47 using AliMUONVStore::GetSize;
49 virtual Int_t GetSize() const;
52 void CopyTo(AliMUON1DArray& to) const;
53 Bool_t Set(Int_t i, TObject* object, Bool_t replace);
57 TObjArray* fArray; ///< Internal array
59 ClassDef(AliMUON1DArray,1) // Implementation of AliMUONVStore