X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONV1DStore.cxx;h=ccfc549ffa09d704a935a9cd925a1a3b5717333b;hb=7e4ed1edab2dea5faf03370c6b0d550d33c85403;hp=60e07e843a9569cccd5dd33dba4d364ec0022a6f;hpb=6cc447df875346026b0eba6dd37488e6d8381550;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONV1DStore.cxx b/MUON/AliMUONV1DStore.cxx index 60e07e843a9..ccfc549ffa0 100644 --- a/MUON/AliMUONV1DStore.cxx +++ b/MUON/AliMUONV1DStore.cxx @@ -17,9 +17,61 @@ #include "AliMUONV1DStore.h" +#include "AliMUONVDataIterator.h" +#include "AliMUONObjectPair.h" +#include +#include + +/// \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(it->Next() ) ) ) + { + TObject* o = pair->Second(); + if (o) + { + o->Print(opt); + } + if ( it->IsOwner() ) delete pair; + } + + delete it; } + + + +