/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // $Id$ // $MpId: AliMpIntPair.cxx,v 1.5 2005/08/26 15:43:36 ivana Exp $ // 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. // // Included in AliRoot: 2003/05/02 // 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) { /// Standard constructor } //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair(Int_t ix,Int_t iy, Bool_t validity) : TObject(), fFirst(ix), fSecond(iy), fValidity(validity) { /// Standard constructor with validity argument } //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair() : TObject(), //fFirst(9999), //fSecond(9999), fFirst(0), fSecond(0), fValidity(false) { /// Default constructor } //_____________________________________________________________________________ AliMpIntPair::AliMpIntPair(const AliMpIntPair& src): TObject(src), fFirst(src.fFirst), fSecond(src.fSecond), fValidity(src.fValidity) { /// Copy constructor } //_____________________________________________________________________________ AliMpIntPair::~AliMpIntPair() { /// Destructor } //_____________________________________________________________________________ Bool_t AliMpIntPair::operator< (const AliMpIntPair& pos2) const { /// Less operator // fFirst prior to fSecond if (fFirstpos2.fFirst) return kFALSE; if (fSecond