+/**************************************************************************
+ * 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: AliMpPadPair.cxx,v 1.7 2006/05/24 13:58:29 ivana Exp $
// Category: basic
-//
+
+//-----------------------------------------------------------------------------
// Class AliMpPadPair
// ------------------
// Wrap up for std::pair<AliMpPad, AliMpPad>
// to avoid problems with CINT.
-//
+// Included in AliRoot: 2003/05/02
// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+//-----------------------------------------------------------------------------
#include "AliMpPadPair.h"
+/// \cond CLASSIMP
ClassImp(AliMpPadPair)
-
+/// \endcond
//_____________________________________________________________________________
AliMpPadPair::AliMpPadPair(const AliMpPad& pad1, const AliMpPad& pad2)
: TObject(),
- fPair(pad1, pad2) {
-//
+ fPadFirst(pad1),
+ fPadSecond(pad2)
+{
+/// Standard constructor
}
//_____________________________________________________________________________
AliMpPadPair::AliMpPadPair(const AliMpPadPair& right)
: TObject(),
- fPair(right.GetFirst(), right.GetSecond()) {
-//
+ fPadFirst(right.GetFirst()),
+ fPadSecond(right.GetSecond())
+{
+/// Copy constructor
}
//_____________________________________________________________________________
AliMpPadPair::AliMpPadPair()
: TObject(),
- fPair(AliMpPad::Invalid(), AliMpPad::Invalid()) {
-//
+ fPadFirst(AliMpPad::Invalid()),
+ fPadSecond(AliMpPad::Invalid())
+{
+/// Default constructor
}
//_____________________________________________________________________________
-AliMpPadPair::~AliMpPadPair() {
-//
+AliMpPadPair::~AliMpPadPair()
+{
+/// Destructor
}
//_____________________________________________________________________________
Bool_t AliMpPadPair::operator == (const AliMpPadPair& right) const
{
- return fPair == right.fPair;
+/// Equality operator
+
+ return (fPadFirst == right.fPadFirst && fPadSecond == right.fPadSecond);
}
//_____________________________________________________________________________
Bool_t AliMpPadPair::operator!= (const AliMpPadPair& right) const
{
+/// Non-equality operator
+
return !(*this == right);
}
//_____________________________________________________________________________
AliMpPadPair& AliMpPadPair::operator = (const AliMpPadPair& right)
{
- // check assignement to self
+/// Assignment operator
+
+ // check assignment to self
if (this == &right) return *this;
- // base class assignement
+ // base class assignment
TObject::operator=(right);
- // assignement operator
- fPair = right.fPair;
+ // assignment operator
+ fPadFirst = right.fPadFirst;
+ fPadSecond = right.fPadSecond;
return *this;
}