Removing leftover return
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerBoard.cxx
index 6b26d63..798a917 100644 (file)
 
 /* $Id$ */
 
-//*-- Author: Rachid Guernane (LPCCFd)
-//    TRIGGER BOARD SUPER CLASS IMPLEMENTATION
-//    CAN BE A LOCAL, REGIONAL, OR GLOBAL BOARD
-//    REGIONAL BOARD IS PER CONVENTION
-//    ALWAYS IN THE SLOT 0
+//-----------------------------------------------------------------------------
+///  \class AliMUONTriggerBoard
+///
+///  Trigger board super class implementation.
+///  Can be a local, regional, or global board
+///  Regional board is per convention always in the slot 0
+///
+///  \author Rachid Guernane (LPCCFd)
+//-----------------------------------------------------------------------------
 
 #include "AliMUONTriggerBoard.h"
 #include "AliLog.h"
 
+/// \cond CLASSIMP
+ClassImp(AliMUONTriggerBoard)
+/// \endcond
+
 //___________________________________________
 AliMUONTriggerBoard::AliMUONTriggerBoard()
     : TNamed(),
       fSlot(0),
       fResponse(0)
 {
-// Default Ctor
+/// Default Ctor
 
 }
 
@@ -40,30 +48,47 @@ AliMUONTriggerBoard::AliMUONTriggerBoard(const char *Name, Int_t islot)
       fSlot(islot),
       fResponse(0)
 {
-// Standard Ctor
+/// Standard Ctor
 
 }
 
+
 //___________________________________________
-AliMUONTriggerBoard::AliMUONTriggerBoard(const AliMUONTriggerBoard &board): TNamed(board)
+AliMUONTriggerBoard::AliMUONTriggerBoard(const AliMUONTriggerBoard &rhs) 
+    : TNamed(rhs),
+      fSlot(rhs.fSlot),
+      fResponse(rhs.fResponse)
 {
-// Dummy Copy Ctor
-   board.Copy(*this);
+  //
+  /// Copy constructor
+  //
 }
 
+
 //___________________________________________
-AliMUONTriggerBoard& AliMUONTriggerBoard::operator=(const AliMUONTriggerBoard&)
+AliMUONTriggerBoard& AliMUONTriggerBoard::operator=(const AliMUONTriggerBoard &rhs)
 {
-   AliFatal("Assignment operator not implemented");
-   return *this;
+/// Assigment operator;
+
+  if (this == &rhs)
+    return *this;
+
+  // base class assignement
+  TNamed::operator=(rhs);
+
+  fSlot = rhs.fSlot;
+  fResponse = rhs.fResponse;
+
+  return *this;
 }
 
+
 //___________________________________________
-void AliMUONTriggerBoard::Copy(TObject&) const
+AliMUONTriggerBoard::~AliMUONTriggerBoard()
 {
-   Fatal("Copy","Not implemented!\n");
-}
+/// Destructor
+}  
+
 
-ClassImp(AliMUONTriggerBoard)