#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)
fErrorWord(0),
fBusPatchArray(new TClonesArray("AliMUONBusStruct",5))
{
- //
- //ctor
- //
+ ///
+ ///ctor
+ ///
}
//___________________________________________
AliMUONDspHeader::~AliMUONDspHeader()
{
- //
- // dtr
- //
+ ///
+ /// dtr
+ ///
fBusPatchArray->Delete();
delete fBusPatchArray;
}
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()])
//___________________________________________
AliMUONDspHeader& AliMUONDspHeader::operator=(const AliMUONDspHeader& event)
{
- //
- // assignemnt constructor
- //
+ ///
+ /// assignemnt constructor
+ ///
if (this == &event) return *this;
fDataKey = event.fDataKey;
//___________________________________________
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;
+
+}