]>
Commit | Line | Data |
---|---|---|
f6e5d0e9 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | // $Id$ | |
17 | ||
18 | #include "AliMUON3DMap.h" | |
19 | ||
20 | ClassImp(AliMUON3DMap) | |
21 | ||
22 | #include "AliMUON1DMap.h" | |
23 | #include "AliMUON2DMap.h" | |
24 | ||
25 | #include "Riostream.h" | |
26 | ||
27 | //_____________________________________________________________________________ | |
28 | AliMUON3DMap::AliMUON3DMap() : AliMUONV3DStore(), fStore(new AliMUON1DMap) | |
29 | { | |
30 | } | |
31 | ||
32 | //_____________________________________________________________________________ | |
33 | AliMUON3DMap::~AliMUON3DMap() | |
34 | { | |
35 | delete fStore; | |
36 | } | |
37 | ||
38 | //_____________________________________________________________________________ | |
39 | TObject* | |
40 | AliMUON3DMap::Get(Int_t i, Int_t j, Int_t k) const | |
41 | { | |
42 | AliMUONV2DStore* m = static_cast<AliMUONV2DStore*>(fStore->Get(i)); | |
43 | if (!m) return 0x0; | |
44 | return m->Get(j,k); | |
45 | } | |
46 | ||
47 | //_____________________________________________________________________________ | |
48 | Bool_t | |
49 | AliMUON3DMap::IsOwner() const | |
50 | { | |
51 | return kTRUE; | |
52 | } | |
53 | ||
54 | //_____________________________________________________________________________ | |
55 | void | |
56 | AliMUON3DMap::Print(Option_t*) const | |
57 | { | |
58 | cout << "Would need an iterator here to be able to print !" << endl; | |
59 | } | |
60 | ||
61 | //_____________________________________________________________________________ | |
62 | Bool_t | |
63 | AliMUON3DMap::Set(Int_t i, Int_t j, Int_t k, TObject* object, Bool_t replace) | |
64 | { | |
65 | AliMUONV2DStore* m = static_cast<AliMUONV2DStore*>(fStore->Get(i)); | |
66 | if (!m) | |
67 | { | |
68 | fStore->Set(i,new AliMUON2DMap,replace); | |
69 | m = static_cast<AliMUONV2DStore*>(fStore->Get(i)); | |
70 | } | |
71 | return m->Set(j,k,object,replace); | |
72 | } | |
73 | ||
74 | ||
75 |