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 "AliMUON1DMap.h"
21 #include "AliMpExMap.h"
23 ClassImp(AliMUON1DMap)
25 //_____________________________________________________________________________
26 AliMUON1DMap::AliMUON1DMap() : AliMUONV1DStore(), fMap(new AliMpExMap(true))
30 //_____________________________________________________________________________
31 AliMUON1DMap::~AliMUON1DMap()
36 //_____________________________________________________________________________
38 AliMUON1DMap::Get(Int_t detElemId) const
40 return fMap->GetValue(detElemId);
43 //_____________________________________________________________________________
45 AliMUON1DMap::IsOwner() const
50 //_____________________________________________________________________________
52 AliMUON1DMap::Set(Int_t detElemId, TObject* object, Bool_t replace)
54 TObject* o = Get(detElemId);
57 AliError(Form("Object %p is already there for detElemId %d",o,detElemId));
64 fMap->Add(detElemId,object);