X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2Fmapping%2FAliMpPadPair.cxx;h=b6f82d21c3436a322829b57ba33b7817dcf2c655;hb=b08c9fac511ce42b427e069ef364a224988921f2;hp=b4f21ebf5fdcea7fcd7e11b6bbf9319981fa887a;hpb=f79c58a52a23054c7b92eca3093bf5895ce24180;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/mapping/AliMpPadPair.cxx b/MUON/mapping/AliMpPadPair.cxx index b4f21ebf5fd..b6f82d21c34 100644 --- a/MUON/mapping/AliMpPadPair.cxx +++ b/MUON/mapping/AliMpPadPair.cxx @@ -1,69 +1,96 @@ +/************************************************************************** + * 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 // 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(), 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;