// $Id$ // Category: basic // // Class AliMpIntPair // -------------- // Class that defines the pair of integers. // The pair created by the default constructor is in invalide state, // setting one of values changes the state to valid. // // Authors: David Guez, Ivana Hrivnacova; IPN Orsay #include #include "AliMpIntPair.h" ClassImp(AliMpIntPair) /////////////////////////////////////////////////// // // This class is a replacement for the standard STL // pair class, which can not be handed // by the normal ROOT automatic streamer // (at least in the ROOT version 3.03/03) // /////////////////////////////////////////////////// //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair(Int_t ix,Int_t iy) : TObject(), fFirst(ix), fSecond(iy), fValidity(true) { // } //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair(Int_t ix,Int_t iy, Bool_t validity) : TObject(), fFirst(ix), fSecond(iy), fValidity(validity) { // } //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair() : TObject(), //fFirst(9999), //fSecond(9999), fFirst(0), fSecond(0), fValidity(false) { // } //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair(const AliMpIntPair& src): TObject(src), fFirst(src.fFirst), fSecond(src.fSecond), fValidity(src.fValidity) { } //_____________________________________________________________________________ AliMpIntPair::~AliMpIntPair() { // } //_____________________________________________________________________________ Bool_t AliMpIntPair::operator< (const AliMpIntPair& pos2) const { // fFirst prior to fSecond if (fFirstpos2.fFirst) return kFALSE; if (fSecond