]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUON3DMap.cxx
- Adding volume path attribute (moved from AliMUONGeometryModule)
[u/mrichter/AliRoot.git] / MUON / AliMUON3DMap.cxx
CommitLineData
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
20ClassImp(AliMUON3DMap)
21
22#include "AliMUON1DMap.h"
23#include "AliMUON2DMap.h"
24
25#include "Riostream.h"
26
27//_____________________________________________________________________________
28AliMUON3DMap::AliMUON3DMap() : AliMUONV3DStore(), fStore(new AliMUON1DMap)
29{
30}
31
32//_____________________________________________________________________________
33AliMUON3DMap::~AliMUON3DMap()
34{
35 delete fStore;
36}
37
38//_____________________________________________________________________________
39TObject*
40AliMUON3DMap::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//_____________________________________________________________________________
48Bool_t
49AliMUON3DMap::IsOwner() const
50{
51 return kTRUE;
52}
53
54//_____________________________________________________________________________
55void
56AliMUON3DMap::Print(Option_t*) const
57{
58 cout << "Would need an iterator here to be able to print !" << endl;
59}
60
61//_____________________________________________________________________________
62Bool_t
63AliMUON3DMap::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