#ifndef ALIMUONOBJECTPAIR_H #define ALIMUONOBJECTPAIR_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ /// \ingroup core /// \class AliMUONObjectPair /// \brief The equivalent of a std::pair ;-) /// // Author Laurent Aphecetche #ifndef ROOT_TObject # include "TObject.h" #endif class AliMUONObjectPair : public TObject { public: AliMUONObjectPair(); AliMUONObjectPair(TObject* first, TObject* second, Bool_t isOwnerOfFirst=kTRUE, Bool_t isOwnerOfSecond=kFALSE); AliMUONObjectPair(const AliMUONObjectPair& other); AliMUONObjectPair& operator=(const AliMUONObjectPair& other); virtual ~AliMUONObjectPair(); /// Return the first element of the pair TObject* First() const { return fFirst; } /// Return the second element of the pair TObject* Second() const { return fSecond; } /// Return the first element of the pair TObject* Key() const { return fFirst; } /// Return the second element of the pair TObject* Value() const { return fSecond; } virtual void Copy(TObject& other) const; virtual void Print(Option_t* opt="") const; virtual void Clear(Option_t* opt=""); private: TObject* fFirst; ///< first element of the pair TObject* fSecond; ///< second element of the pair Bool_t fIsOwnerOfFirst; ///< whether we own the first element Bool_t fIsOwnerOfSecond; ///