]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONBlockHeader.cxx
Adding comment lines to class description needed for Root documentation,
[u/mrichter/AliRoot.git] / MUON / AliMUONBlockHeader.cxx
index 8c1a2d8e9fbdda331ca6bcb2b4e13eb20bc95e2a..7f7639f118bda51e8f398bea911fa73dda93466b 100644 (file)
 #include "AliMUONBlockHeader.h"
 #include "AliMUONDspHeader.h"
 
-/// 
+#include <Riostream.h>
+
+//-----------------------------------------------------------------------------
+/// \class AliMUONBlockHeader
 /// Block structure for tracker raw data
 /// each DDL contains two blocks,
 /// each block contains at most 5 dsp structure.
 /// Beside the total length and length of the below data
 /// the header of the block contains the front end DSP id, trigger words and paddind word
 ///
+/// \author Christian Finck
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMUONBlockHeader)
@@ -42,44 +47,43 @@ AliMUONBlockHeader::AliMUONBlockHeader()
      fL0Trigger(0),
      fMiniEventId(0),
      fEventId1(0),
-     fEventId2(0)
-{
-  //
-  // ctor
-  //
+     fEventId2(0),
+     fDspHeaderArray(new TClonesArray("AliMUONDspHeader", 5))
 
-  fDspHeaderArray = new TClonesArray("AliMUONDspHeader", 5);
+{
+  ///
+  /// ctor
+  ///
 
 }
 
 //___________________________________________
 AliMUONBlockHeader::~AliMUONBlockHeader()
 {
-  // 
-  // dtor
-  //
+  /// 
+  /// dtor
+  ///
   fDspHeaderArray->Delete();
   delete fDspHeaderArray;
 }
 
 //___________________________________________
 AliMUONBlockHeader::AliMUONBlockHeader(const AliMUONBlockHeader& event)
-  :  TObject(event)
+  :  TObject(event),
+     fDataKey(event.fDataKey),
+     fTotalLength(event.fTotalLength),
+     fLength(event.fLength),
+     fDspId(event.fDspId),
+     fL0Trigger(event.fL0Trigger),
+     fMiniEventId(event.fMiniEventId),
+     fEventId1(event.fEventId1),
+     fEventId2(event.fEventId2),
+     fDspHeaderArray(new TClonesArray("AliMUONDspHeader", 5))
 {
-  //
-  // copy ctor
-  //
-
-  fDataKey     = event.fDataKey;
-  fTotalLength = event.fTotalLength;
-  fLength      = event.fLength;
-  fDspId       = event.fDspId;
-  fL0Trigger   = event.fL0Trigger;
-  fMiniEventId = event.fMiniEventId;
-  fEventId1    = event.fEventId1;
-  fEventId2    = event.fEventId2;
+  ///
+  /// copy ctor
+  ///
 
-  fDspHeaderArray = new TClonesArray("AliMUONDspHeader", 5);
   for (Int_t index = 0; index < (event.fDspHeaderArray)->GetEntriesFast(); index++) {
     {new ((*fDspHeaderArray)[fDspHeaderArray->GetEntriesFast()]) 
         AliMUONDspHeader(*(AliMUONDspHeader*)(event.fDspHeaderArray)->At(index));}
@@ -91,11 +95,12 @@ AliMUONBlockHeader::AliMUONBlockHeader(const AliMUONBlockHeader& event)
 AliMUONBlockHeader&
 AliMUONBlockHeader::operator=(const AliMUONBlockHeader &event)
 {
-  // 
-  // assignment operator
-  //
+  /// 
+  /// assignment operator
+  ///
   if (this == &event) return *this;
 
+  fDataKey     = event.fDataKey;
   fTotalLength = event.fTotalLength;
   fLength      = event.fLength;
   fDspId       = event.fDspId;
@@ -117,10 +122,10 @@ AliMUONBlockHeader::operator=(const AliMUONBlockHeader &event)
 //___________________________________________
 void AliMUONBlockHeader::AddDspHeader(const AliMUONDspHeader& dspHeader)
 { 
-  // 
-  // adding the dsp structure
-  // into the TClonesArray
-  //
+  /// 
+  /// adding the dsp structure
+  /// into the TClonesArray
+  ///
   TClonesArray &dspArray = *fDspHeaderArray;
   new(dspArray[dspArray.GetEntriesFast()]) AliMUONDspHeader(dspHeader);
 
@@ -128,9 +133,27 @@ void AliMUONBlockHeader::AddDspHeader(const AliMUONDspHeader& dspHeader)
 //___________________________________________
 void AliMUONBlockHeader::Clear(Option_t* )
 {
-  // Clear TClones arrays
-  // instead of deleting
-  //
+  /// Clear TClones arrays
+  /// instead of deleting
+  ///
   fDspHeaderArray->Clear("C");
  
 }
+
+//___________________________________________
+void AliMUONBlockHeader::Print(Option_t* /*opt*/) const
+{
+  /// print out
+
+  cout << "CRT info"        << endl;
+  cout << "DataKey: "       << fDataKey << endl;
+  cout << "TotalLength: "   << fTotalLength << endl;
+  cout << "Length: "        << fLength << endl;
+  cout << "DspId: "         << fDspId << endl;
+  cout << "L0Trigger: "     << fL0Trigger << endl;
+  cout << "MiniEventId: "   << fMiniEventId<< endl; 
+  cout << "EventId1: "      << fEventId1 << endl;
+  cout << "EventId2: "      << fEventId2 << endl;;
+
+}