Removing leftover return
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerBoard.cxx
index 895de1e..798a917 100644 (file)
 
 /* $Id$ */
 
-//*-- Author: Rachid Guernane (LPCCFd)
+//-----------------------------------------------------------------------------
+///  \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
-   fSlot  = fResponse = 0;
+/// Default Ctor
+
 }
 
 //___________________________________________
-AliMUONTriggerBoard::AliMUONTriggerBoard(const char *Name, Int_t islot) : TNamed(Name,"Trigger board")
+AliMUONTriggerBoard::AliMUONTriggerBoard(const char *Name, Int_t islot) 
+    : TNamed(Name,"Trigger board"),
+      fSlot(islot),
+      fResponse(0)
 {
-   fSlot = islot;
+/// Standard Ctor
 
-   fResponse = 0;
 }
 
+
 //___________________________________________
-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)