]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONV1DStore.cxx
Updated list of MUON libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONV1DStore.cxx
CommitLineData
70b4a8d6 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 "AliMUONV1DStore.h"
19
d274f799 20#include "AliMUONVDataIterator.h"
21#include "AliMUONObjectPair.h"
d274f799 22#include <TString.h>
23#include <Riostream.h>
24
5398f946 25/// \class AliMUONV1DStore
70b4a8d6 26/// Defines an interface equivalent to a list of TObject, indexed
27/// by integer (somehow a vector, except that indices are not necessarily
28/// sequential).
29///
30/// It's extremely simple and hopefully allow many implementations.
31/// It also makes the object ownership self-evident.
32///
5398f946 33/// \author Laurent Aphecetche
70b4a8d6 34
5398f946 35/// \cond CLASSIMP
70b4a8d6 36ClassImp(AliMUONV1DStore)
5398f946 37/// \endcond
70b4a8d6 38
39//_____________________________________________________________________________
40AliMUONV1DStore::AliMUONV1DStore()
41{
5398f946 42/// Default constructor
70b4a8d6 43}
44
45//_____________________________________________________________________________
46AliMUONV1DStore::~AliMUONV1DStore()
47{
5398f946 48/// Destructor
70b4a8d6 49}
50
f056a0c0 51//_____________________________________________________________________________
d274f799 52void
53AliMUONV1DStore::Print(Option_t* opt) const
54{
55 /// Printout
f056a0c0 56 /// Si AliMUONVCalibParam concrete implementation for the meaning of opt
d274f799 57
58 AliMUONVDataIterator* it = this->Iterator();
59
60 AliMUONObjectPair* pair;
61
d274f799 62 while ( ( pair = static_cast<AliMUONObjectPair*>(it->Next() ) ) )
63 {
d274f799 64 TObject* o = pair->Second();
65 if (o)
66 {
f056a0c0 67 o->Print(opt);
d274f799 68 }
f056a0c0 69 if ( it->IsOwner() ) delete pair;
d274f799 70 }
71
72 delete it;
73}
74
75
70b4a8d6 76
77