]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUON1DArray.h
- Adding the array of slat segmentation and GetLayerSegmentation(..) method
[u/mrichter/AliRoot.git] / MUON / AliMUON1DArray.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice                               */
3
4 // $Id$
5
6 /// \ingroup base
7 /// \class AliMUON1DArray
8 /// \brief Implementation of AliMUONV1DStore
9 /// 
10 //  Author Laurent Aphecetche
11
12 #ifndef ALIMUON1DARRAY_H
13 #define ALIMUON1DARRAY_H
14
15 #ifndef ALIMUONV1DSTORE_H
16 #  include "AliMUONV1DStore.h"
17 #endif
18
19 class TObjArray;
20
21 class AliMUON1DArray : public AliMUONV1DStore
22 {
23 public:
24   AliMUON1DArray(Int_t theSize=0);
25   AliMUON1DArray(const AliMUON1DArray& other);
26   AliMUON1DArray& operator=(const AliMUON1DArray& other);
27   
28   virtual ~AliMUON1DArray();
29   
30   /// Return the object stored at i.
31   virtual TObject* Get(Int_t i) const;
32   
33   /** Set the object stored at i.
34     if replace=false and there's already an object there, returns kFALSE
35     */
36   virtual Bool_t Set(Int_t i, TObject* object, Bool_t replace);
37   
38   /// Whether or not this container is the owner of its contents.
39   virtual Bool_t IsOwner() const { return kTRUE; }
40   
41 private:
42    void CopyTo(AliMUON1DArray& to) const;
43   
44 private:  
45     
46     TObjArray* fArray; ///< Internal array
47   
48     ClassDef(AliMUON1DArray,1) // Implementation of AliMUONV1DStore
49 };
50
51 #endif