]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONV1DStore.cxx
DIPO added
[u/mrichter/AliRoot.git] / MUON / AliMUONV1DStore.cxx
index 60e07e843a9569cccd5dd33dba4d364ec0022a6f..ccfc549ffa09d704a935a9cd925a1a3b5717333b 100644 (file)
 
 #include "AliMUONV1DStore.h"
 
+#include "AliMUONVDataIterator.h"
+#include "AliMUONObjectPair.h"
+#include <TString.h>
+#include <Riostream.h>
+
+/// \class AliMUONV1DStore
+/// Defines an interface equivalent to a list of TObject, indexed
+/// by integer (somehow a vector, except that indices are not necessarily
+/// sequential).
+/// 
+/// It's extremely simple and hopefully allow many implementations.
+/// It also makes the object ownership self-evident.
+///
+/// \author Laurent Aphecetche
+
+/// \cond CLASSIMP
 ClassImp(AliMUONV1DStore)
+/// \endcond
+
+//_____________________________________________________________________________
+AliMUONV1DStore::AliMUONV1DStore()
+{
+/// Default constructor
+}
 
 //_____________________________________________________________________________
 AliMUONV1DStore::~AliMUONV1DStore()
 {
+/// Destructor
+}
+
+//_____________________________________________________________________________
+void
+AliMUONV1DStore::Print(Option_t* opt) const
+{
+  /// Printout
+  /// Si AliMUONVCalibParam concrete implementation for the meaning of opt
+  
+  AliMUONVDataIterator* it = this->Iterator();
+  
+  AliMUONObjectPair* pair;
+  
+  while ( ( pair = static_cast<AliMUONObjectPair*>(it->Next() ) ) )
+  {
+    TObject* o = pair->Second();
+    if (o) 
+    {
+      o->Print(opt);
+    }
+    if ( it->IsOwner() ) delete pair;
+  }
+  
+  delete it;
 }
+
+
+
+