]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONV1DStore.h
Protection against special particle types.
[u/mrichter/AliRoot.git] / MUON / AliMUONV1DStore.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
f056a0c0 6/// \ingroup calib
51f67588 7/// \class AliMUONV1DStore
70b4a8d6 8/// \brief Generic container indexed by a single integer.
9///
5398f946 10// Author Laurent Aphecetche
70b4a8d6 11
12#ifndef AliMUONV1DSTORE_H
13#define AliMUONV1DSTORE_H
14
15#ifndef ROOT_TObject
16# include "TObject.h"
17#endif
18
d274f799 19class AliMUONVDataIterator;
20
70b4a8d6 21class AliMUONV1DStore : public TObject
22{
23public:
24 AliMUONV1DStore();
25 virtual ~AliMUONV1DStore();
26
27 /// Return the object stored at i.
28 virtual TObject* Get(Int_t i) const = 0;
29
d274f799 30 /// Return iterator
31 virtual AliMUONVDataIterator* Iterator() const { return 0x0; }
32
70b4a8d6 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*, Bool_t replace) = 0;
37
38 /// Whether or not this container is the owner of its contents.
39 virtual Bool_t IsOwner() const = 0;
40
d274f799 41 virtual void Print(Option_t* opt="") const;
42
43
70b4a8d6 44private:
45 ClassDef(AliMUONV1DStore,0) // Generic container indexed by a single integer
46};
47
48#endif