+/**************************************************************************
+ * 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.6 2005/08/26 15:43:36 ivana Exp $
// Category: basic
//
// Class AliMpPadPair
AliMpPadPair::AliMpPadPair(const AliMpPad& pad1, const AliMpPad& pad2)
: TObject(),
fPadFirst(pad1),
- fPadSecond(pad2) {
-//
+ fPadSecond(pad2)
+{
+/// Standard constructor
}
//_____________________________________________________________________________
AliMpPadPair::AliMpPadPair(const AliMpPadPair& right)
: TObject(),
fPadFirst(right.GetFirst()),
- fPadSecond(right.GetSecond()) {
-//
+ fPadSecond(right.GetSecond())
+{
+/// Copy constructor
}
//_____________________________________________________________________________
AliMpPadPair::AliMpPadPair()
: TObject(),
fPadFirst(AliMpPad::Invalid()),
- fPadSecond(AliMpPad::Invalid()) {
-//
+ fPadSecond(AliMpPad::Invalid())
+{
+/// Default constructor
}
//_____________________________________________________________________________
-AliMpPadPair::~AliMpPadPair() {
-//
+AliMpPadPair::~AliMpPadPair()
+{
+/// Destructor
}
//_____________________________________________________________________________
Bool_t AliMpPadPair::operator == (const AliMpPadPair& right) const
{
+/// 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
+ // assignment operator
fPadFirst = right.fPadFirst;
fPadSecond = right.fPadSecond;