1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 // $MpId: AliMpPadPair.cxx,v 1.6 2005/08/26 15:43:36 ivana Exp $
22 // Wrap up for std::pair<AliMpPad, AliMpPad>
23 // to avoid problems with CINT.
24 // Included in AliRoot: 2003/05/02
25 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
27 #include "AliMpPadPair.h"
29 ClassImp(AliMpPadPair)
32 //_____________________________________________________________________________
33 AliMpPadPair::AliMpPadPair(const AliMpPad& pad1, const AliMpPad& pad2)
38 /// Standard constructor
41 //_____________________________________________________________________________
42 AliMpPadPair::AliMpPadPair(const AliMpPadPair& right)
44 fPadFirst(right.GetFirst()),
45 fPadSecond(right.GetSecond())
50 //_____________________________________________________________________________
51 AliMpPadPair::AliMpPadPair()
53 fPadFirst(AliMpPad::Invalid()),
54 fPadSecond(AliMpPad::Invalid())
56 /// Default constructor
59 //_____________________________________________________________________________
60 AliMpPadPair::~AliMpPadPair()
65 //_____________________________________________________________________________
66 Bool_t AliMpPadPair::operator == (const AliMpPadPair& right) const
70 return (fPadFirst == right.fPadFirst && fPadSecond == right.fPadSecond);
73 //_____________________________________________________________________________
74 Bool_t AliMpPadPair::operator!= (const AliMpPadPair& right) const
76 /// Non-equality operator
78 return !(*this == right);
81 //_____________________________________________________________________________
82 AliMpPadPair& AliMpPadPair::operator = (const AliMpPadPair& right)
84 /// Assignment operator
86 // check assignment to self
87 if (this == &right) return *this;
89 // base class assignment
90 TObject::operator=(right);
92 // assignment operator
93 fPadFirst = right.fPadFirst;
94 fPadSecond = right.fPadSecond;