]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONV1DStore.cxx
Updated list of MUON libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONV1DStore.cxx
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
20 #include "AliMUONVDataIterator.h"
21 #include "AliMUONObjectPair.h"
22 #include <TString.h>
23 #include <Riostream.h>
24
25 /// \class AliMUONV1DStore
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 ///
33 /// \author Laurent Aphecetche
34
35 /// \cond CLASSIMP
36 ClassImp(AliMUONV1DStore)
37 /// \endcond
38
39 //_____________________________________________________________________________
40 AliMUONV1DStore::AliMUONV1DStore()
41 {
42 /// Default constructor
43 }
44
45 //_____________________________________________________________________________
46 AliMUONV1DStore::~AliMUONV1DStore()
47 {
48 /// Destructor
49 }
50
51 //_____________________________________________________________________________
52 void
53 AliMUONV1DStore::Print(Option_t* opt) const
54 {
55   /// Printout
56   /// Si AliMUONVCalibParam concrete implementation for the meaning of opt
57   
58   AliMUONVDataIterator* it = this->Iterator();
59   
60   AliMUONObjectPair* pair;
61   
62   while ( ( pair = static_cast<AliMUONObjectPair*>(it->Next() ) ) )
63   {
64     TObject* o = pair->Second();
65     if (o) 
66     {
67       o->Print(opt);
68     }
69     if ( it->IsOwner() ) delete pair;
70   }
71   
72   delete it;
73 }
74
75
76
77