]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRegHeader.cxx
updated
[u/mrichter/AliRoot.git] / MUON / AliMUONRegHeader.cxx
index 62d7bc5d3e0b8722332781797acae24e9036ac78..3a6be0e01dd8fb2fd0039c5224f5c9d82cf335ef 100644 (file)
 
 /* $Id$ */
 
+#include <TClonesArray.h>
+
 #include "AliMUONRegHeader.h"
 #include "AliMUONLocalStruct.h"
 
-/// 
+//-----------------------------------------------------------------------------
+/// \class AliMUONRegHeader
 /// Regional structure for trigger raw data.
 /// Each Reg structure contains 16 (at most) local card structure.
 /// The structure includes the information of the Reg. boards and
 /// regional inputs
 /// 
+/// \author Christian Finck
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMUONRegHeader)
@@ -32,6 +37,25 @@ ClassImp(AliMUONRegHeader)
  const Int_t  AliMUONRegHeader::fgkHeaderLength = 5;
  const Int_t  AliMUONRegHeader::fgkScalerLength = 10;
  const UInt_t AliMUONRegHeader::fgkEndOfReg     = 0xBEEFFACE;
+ const UInt_t AliMUONRegHeader::fgkErrorWord    = 0xCAFEDEAD;
+
+//___________________________________________
+AliMUONRegHeader::AliMUONRegHeader(TRootIOCtor* /*dummy*/)
+:  TObject(),
+fDarcWord(0),
+fWord(0),
+fMask(0),
+fL0(0),
+fClk(0),
+fHold(0),
+fLocalArray(0x0)
+{
+  /// ctor
+  fInput[0] = fInput[1] = 0;
+  
+  for (Int_t i = 0; i < 8; i++)
+    fScaler[i] = 0;  
+}
 
 //___________________________________________
 AliMUONRegHeader::AliMUONRegHeader()
@@ -44,9 +68,8 @@ AliMUONRegHeader::AliMUONRegHeader()
      fHold(0),
      fLocalArray(new TClonesArray("AliMUONLocalStruct",16))
 {
-  //
-  // ctor
-  //
+  /// ctor
   fInput[0] = fInput[1] = 0;
 
   for (Int_t i = 0; i < 8; i++)
@@ -57,9 +80,8 @@ AliMUONRegHeader::AliMUONRegHeader()
 //___________________________________________
 AliMUONRegHeader::~AliMUONRegHeader()
 {
-  // 
-  // dtor
-  //
+  /// dtor
   fLocalArray->Delete();
   delete fLocalArray;
 }
@@ -75,9 +97,9 @@ AliMUONRegHeader::AliMUONRegHeader(const AliMUONRegHeader& event)
      fHold(event.fHold),
      fLocalArray(new TClonesArray("AliMUONLocalStruct", 16))
 {
-  //
-  // copy ctor
-  //
+  ///
+  /// copy ctor
+  ///
 
   fInput[0] = event.fInput[0];
   fInput[1] = event.fInput[1];
@@ -94,9 +116,9 @@ AliMUONRegHeader::AliMUONRegHeader(const AliMUONRegHeader& event)
 //___________________________________________
 AliMUONRegHeader& AliMUONRegHeader::operator=(const AliMUONRegHeader& event)
 {
-  // 
-  // assignment operator
-  //
+  /// 
+  /// assignment operator
+  ///
 
   if (this == &event) return *this;
 
@@ -125,9 +147,9 @@ AliMUONRegHeader& AliMUONRegHeader::operator=(const AliMUONRegHeader& event)
 //___________________________________________
 void AliMUONRegHeader::SetScalersNumbers()
 {
-  // set numbers for scaler events for Regional header
-  // since this is provided by the experiment
-  // put dummy numbers to check the monitoring
+  /// set numbers for scaler events for Regional header
+  /// since this is provided by the experiment
+  /// put dummy numbers to check the monitoring
   
   fClk  = 10000;
   fHold = 100; 
@@ -139,9 +161,9 @@ void AliMUONRegHeader::SetScalersNumbers()
 //___________________________________________
 void AliMUONRegHeader::Clear(Option_t* )
 {
-  // Clear TClones arrays
-  // instead of deleting
-  //
+  /// Clear TClones arrays
+  /// instead of deleting
+  ///
   fLocalArray->Clear("C");
  
 }