Adding code to patch St1 HV mapping
[u/mrichter/AliRoot.git] / MUON / AliMUON1DArray.h
CommitLineData
70b4a8d6 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2* See cxx source for full Copyright notice */
3
4// $Id$
5
46df088d 6/// \ingroup core
090443dd 7/// \class AliMUON1DArray
4178b5c7 8/// \brief Implementation of AliMUONVStore
70b4a8d6 9///
5398f946 10// Author Laurent Aphecetche
70b4a8d6 11
12#ifndef ALIMUON1DARRAY_H
13#define ALIMUON1DARRAY_H
14
4178b5c7 15#ifndef ALIMUONVSTORE_H
16# include "AliMUONVStore.h"
70b4a8d6 17#endif
18
19class TObjArray;
20
4178b5c7 21class AliMUON1DArray : public AliMUONVStore
70b4a8d6 22{
23public:
24 AliMUON1DArray(Int_t theSize=0);
25 AliMUON1DArray(const AliMUON1DArray& other);
26 AliMUON1DArray& operator=(const AliMUON1DArray& other);
27
28 virtual ~AliMUON1DArray();
29
4178b5c7 30 virtual AliMUON1DArray* Create() const;
70b4a8d6 31
4178b5c7 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);
35
36 virtual Bool_t CanConnect() const { return kFALSE; }
37
38 virtual void Clear(Option_t* opt="");
39
40 virtual TIterator* CreateIterator() const;
41
42 using AliMUONVStore::FindObject;
43
44 /// Return the object stored with id.
45 virtual TObject* FindObject(UInt_t identifier) const;
46
47 using AliMUONVStore::GetSize;
70b4a8d6 48
4178b5c7 49 virtual Int_t GetSize() const;
70b4a8d6 50
51private:
52 void CopyTo(AliMUON1DArray& to) const;
4178b5c7 53 Bool_t Set(Int_t i, TObject* object, Bool_t replace);
70b4a8d6 54
55private:
56
18b6b8c7 57 TObjArray* fArray; ///< Internal array
70b4a8d6 58
4178b5c7 59 ClassDef(AliMUON1DArray,1) // Implementation of AliMUONVStore
70b4a8d6 60};
61
62#endif