]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUON2DMap.h
- Dipole rotated wr to ALICE coordinate system
[u/mrichter/AliRoot.git] / MUON / AliMUON2DMap.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 AliMUON2DMap
8 /// \brief Basic implementation of AliMUONV2DStore container using
9 /// AliMpExMap internally.
10 ///
11 //  Author Laurent Aphecetche
12
13 #ifndef AliMUON2DMAP_H
14 #define AliMUON2DMAP_H
15
16 #include "AliMUONV2DStore.h"
17
18 class AliMpExMap;
19
20 class AliMUON2DMap : public AliMUONV2DStore
21 {
22 public:
23   AliMUON2DMap(Bool_t optimizeForDEManu=kFALSE);  
24   virtual ~AliMUON2DMap();
25
26   AliMUONV2DStore* CloneEmpty() const;
27   
28   /// The returned iterator is owned by the client.
29   AliMUONVDataIterator* Iterator() const;
30   
31   virtual TObject* Get(Int_t i, Int_t j) const;
32   virtual Bool_t Set(Int_t i, Int_t j, TObject* object, Bool_t replace);
33   /// Whether or not this container is the owner of its contents.
34   virtual Bool_t IsOwner() const { return kTRUE; } 
35
36   AliMUON2DMap(const AliMUON2DMap& other);
37   AliMUON2DMap&  operator = (const AliMUON2DMap& other);
38
39 private:
40   void CopyTo(AliMUON2DMap& destination) const;
41
42 private:
43   AliMpExMap* fMap; ///< Our internal map (an AliMpExMap of AliMpExMaps)
44   Bool_t fOptimizeForDEManu; ///< whether (i,j) pair is supposed to be (DetElemId,ManuId) (allow us to allocate right amount of memory, that's all it does.
45   
46   ClassDef(AliMUON2DMap,2) // A 2D container
47 };
48
49 #endif