1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 #include "AliMUON3DMap.h"
20 ClassImp(AliMUON3DMap)
22 #include "AliMUON1DMap.h"
23 #include "AliMUON2DMap.h"
25 #include "Riostream.h"
27 //_____________________________________________________________________________
28 AliMUON3DMap::AliMUON3DMap() : AliMUONV3DStore(), fStore(new AliMUON1DMap)
32 //_____________________________________________________________________________
33 AliMUON3DMap::~AliMUON3DMap()
38 //_____________________________________________________________________________
40 AliMUON3DMap::Get(Int_t i, Int_t j, Int_t k) const
42 AliMUONV2DStore* m = static_cast<AliMUONV2DStore*>(fStore->Get(i));
47 //_____________________________________________________________________________
49 AliMUON3DMap::IsOwner() const
54 //_____________________________________________________________________________
56 AliMUON3DMap::Print(Option_t*) const
58 cout << "Would need an iterator here to be able to print !" << endl;
61 //_____________________________________________________________________________
63 AliMUON3DMap::Set(Int_t i, Int_t j, Int_t k, TObject* object, Bool_t replace)
65 AliMUONV2DStore* m = static_cast<AliMUONV2DStore*>(fStore->Get(i));
68 fStore->Set(i,new AliMUON2DMap,replace);
69 m = static_cast<AliMUONV2DStore*>(fStore->Get(i));
71 return m->Set(j,k,object,replace);