#include "AliMUONBlockHeader.h"
#include "AliMUONDspHeader.h"
+#include <Riostream.h>
+
+//-----------------------------------------------------------------------------
/// \class AliMUONBlockHeader
/// Block structure for tracker raw data
/// each DDL contains two blocks,
/// the header of the block contains the front end DSP id, trigger words and paddind word
///
/// \author Christian Finck
+//-----------------------------------------------------------------------------
+using std::cout;
+using std::endl;
/// \cond CLASSIMP
ClassImp(AliMUONBlockHeader)
/// \endcond
-const Int_t AliMUONBlockHeader::fgkHeaderLength = 8;
+const Int_t AliMUONBlockHeader::fgkHeaderLength = 8;
const UInt_t AliMUONBlockHeader::fgkDefaultDataKey = 0xFC0000FC;
+const UInt_t AliMUONBlockHeader::fgkDdlDataKey = 0xD000000D;
+
+//___________________________________________
+AliMUONBlockHeader::AliMUONBlockHeader(TRootIOCtor* /*dummy*/)
+: TObject(),
+fDataKey(0),
+fTotalLength(0),
+fLength(0),
+fDspId(0),
+fL0Trigger(0),
+fMiniEventId(0),
+fEventId1(0),
+fEventId2(0),
+fDspHeaderArray(0x0)
+{
+ ///
+ /// ctor
+ ///
+
+}
+
//___________________________________________
AliMUONBlockHeader::AliMUONBlockHeader()
: TObject(),
///
if (this == &event) return *this;
+ fDataKey = event.fDataKey;
fTotalLength = event.fTotalLength;
fLength = event.fLength;
fDspId = event.fDspId;
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;;
+
+}