o add Reset function to CalPad and CalROC o Add functionality to AliTPCdataQA - Reset...
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerCrate.cxx
index c123ff7..e569bb9 100644 (file)
 
 /* $Id$ */
 
-//*-- Author: Rachid Guernane (LPCCFd)
+//-----------------------------------------------------------------------------
+/// \class AliMUONTriggerCrate
+///  Collection of trigger boards
+///  - one regional
+///  - sixteen local
+///  slot 0 holds the regional board
+/// \author Rachid Guernane (LPCCFd)
+//-----------------------------------------------------------------------------
+
+#include <TObjArray.h>
 
-#include "AliMUONTriggerCrate.h"
 #include "AliMUONTriggerBoard.h"
+#include "AliMUONTriggerCrate.h"
 
 ClassImp(AliMUONTriggerCrate)
 
 //___________________________________________
 AliMUONTriggerCrate::AliMUONTriggerCrate()
-: fNslots(0),
-  fNboards(0),
-  fBoards(0x0)
+    : fNslots(0),
+      fNboards(0),
+      fBoards(0x0),
+      fSourceFileName(0)    
 {
-    // Def Ctor
+/// Default constructor
 }
 
 //___________________________________________
 AliMUONTriggerCrate::~AliMUONTriggerCrate()
 {
+/// Destructor
+
   delete fBoards;
 }
 
 //___________________________________________
-AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) : TNamed(name,"Regional trigger crate")
+AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) : 
+    TNamed(name,"Regional trigger crate"),
+    fNslots(n),
+    fNboards(0),
+    fBoards(new TObjArray(fNslots)),
+    fSourceFileName(0)
 {
-   fNslots = n;
-   fBoards = new TObjArray(fNslots);
+  /// Standard constructor
+  fBoards->SetOwner(kTRUE);
 }
 
 //___________________________________________
 void AliMUONTriggerCrate::AddBoard(AliMUONTriggerBoard *board, Int_t i)
 {
+/// Add board in crate container
    fBoards->AddAt(board,i);
    fNboards++;
 }
 
-//___________________________________________
-AliMUONTriggerCrate::AliMUONTriggerCrate(const AliMUONTriggerCrate &crate) : TNamed(crate)
-{
-// Dummy Copy Ctor
-   crate.Copy(*this);
-}
-
-//___________________________________________
-AliMUONTriggerCrate& AliMUONTriggerCrate::operator=(const AliMUONTriggerCrate &rhs)
-{
-// Assignment optor
-   rhs.Copy(*this);
-   return (*this);
-}
-
-//___________________________________________
-void AliMUONTriggerCrate::Copy(TObject&) const
-{
-   Fatal("Copy","Not implemented!\n");
-}