]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDspHeader.cxx
Update of ACORDE-QA-Raw data histograms (now they go from -0.5 to 59.5)
[u/mrichter/AliRoot.git] / MUON / AliMUONDspHeader.cxx
index e5acb0b611a18372e9010bc156e3a3404d55d0ac..8de2119a7cac0eea18310bc10545fd3123938870 100644 (file)
  
 #include "AliMUONDspHeader.h"
 #include "AliMUONBusStruct.h"
+#include <Riostream.h>
 
-/// 
+//-----------------------------------------------------------------------------
+/// \class AliMUONDspHeader
 /// DSP structure for tracker raw data.
 /// Each block contains at most 5 Dsp structures.
 /// Beside the total length and length of the below data
 /// the header of the Dsp contains the front end DSP id, trigger words
 /// and event word (1 for nb of word is odd and 0 if not 
 ///
+/// \author Christian Finck
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMUONDspHeader)
@@ -49,18 +53,18 @@ AliMUONDspHeader::AliMUONDspHeader()
      fErrorWord(0),
      fBusPatchArray(new TClonesArray("AliMUONBusStruct",5))
 {
-  //
-  //ctor
-  //
+  ///
+  ///ctor
+  ///
 
 }
 
 //___________________________________________
 AliMUONDspHeader::~AliMUONDspHeader()
 {
-  //
-  // dtr
-  //
+  ///
+  /// dtr
+  ///
   fBusPatchArray->Delete();
   delete fBusPatchArray;
 }
@@ -80,9 +84,9 @@ AliMUONDspHeader::AliMUONDspHeader(const AliMUONDspHeader& event)
      fErrorWord(event.fErrorWord),
      fBusPatchArray(new TClonesArray("AliMUONBusStruct", 5))
 {
-  // 
-  // copy constructor
-  //
+  /// 
+  /// copy constructor
+  ///
 
   for (Int_t index = 0; index < (event.fBusPatchArray)->GetEntriesFast(); index++) {
     {new ((*fBusPatchArray)[fBusPatchArray->GetEntriesFast()]) 
@@ -95,9 +99,9 @@ AliMUONDspHeader::AliMUONDspHeader(const AliMUONDspHeader& event)
 //___________________________________________
 AliMUONDspHeader& AliMUONDspHeader::operator=(const AliMUONDspHeader& event)
 {
-  //
-  // assignemnt constructor
-  //
+  ///
+  /// assignemnt constructor
+  ///
   if (this == &event) return *this;
 
   fDataKey       = event.fDataKey;
@@ -122,19 +126,38 @@ AliMUONDspHeader& AliMUONDspHeader::operator=(const AliMUONDspHeader& event)
 //___________________________________________
 void AliMUONDspHeader::AddBusPatch(const AliMUONBusStruct& busPatch)
 {
-  // 
-  // adding buspatch info
-  // into TClonesArray
-  //
+  /// 
+  /// adding buspatch info
+  /// into TClonesArray
+  ///
   TClonesArray &eventArray = *fBusPatchArray;
   new(eventArray[eventArray.GetEntriesFast()]) AliMUONBusStruct(busPatch);
 }
 //___________________________________________
 void AliMUONDspHeader::Clear(Option_t* )
 {
-  // Clear TClones arrays
-  // instead of deleting
-  //
+  /// Clear TClones arrays
+  /// instead of deleting
+  ///
   fBusPatchArray->Clear("C");
  
 }
+
+//___________________________________________
+void AliMUONDspHeader::Print(Option_t* /*opt*/) const
+{
+  /// print out
+
+  cout << "FRT info"        << endl;
+  cout << "DataKey: "       << fDataKey << endl;
+  cout << "TotalLength: "   << fTotalLength << endl;
+  cout << "Length : "       << fLength << endl;
+  cout << "DspId: "         << fDspId << endl;
+  cout << "BlkL1ATrigger: " << fBlkL1ATrigger << endl;
+  cout << "MiniEventId: "   << fMiniEventId << endl;
+  cout << "L1ATrigger: "    << fL1ATrigger << endl;
+  cout << "L1RTrigger: "    << fL1RTrigger << endl;
+  cout << "PaddingWord: "   << fPaddingWord << endl;
+  cout << "ErrorWord: "     << fErrorWord << endl;
+
+}