#include "ICOMETLog.hxx" #include "IRawDataHeader.hxx" ClassImp(COMET::IRawDataHeader); const unsigned int COMET::IRawDataHeader::Invalid = 0xdeadbeef; //_____________________________________________________________________________ COMET::IRawDataHeader::IRawDataHeader() { Init(); } //_____________________________________________________________________________ COMET::IRawDataHeader::IRawDataHeader(const IRawDataHeader& rhs) { Init(); *this = rhs; } //_____________________________________________________________________________ COMET::IRawDataHeader::~IRawDataHeader() { COMETTrace("COMET::IRawDataHeader: dtor at:" << (void*) this); } //_____________________________________________________________________________ void COMET::IRawDataHeader::Print(const Option_t* opt /* = "" */) const { COMETLog("Header: Run number " << std::dec << this->GetRun() << " MIDAS Sequence number " << this->GetSeqNo() << " Unix time stamp " << this->GetTimeStamp()); } void COMET::IRawDataHeader::Init() { fContext = Invalid; fRecordType = Invalid; fRun = Invalid; fSubRun = Invalid; fTimeStamp = Invalid; fRunType = Invalid; fSeqNo = Invalid; fErrorCode = 0; fTriggerWord = Invalid; fMCMSecond = Invalid; fMCMSubSecond = Invalid; fMCMTimeSinceBusy = Invalid; fP0DSecond = Invalid; fP0DSubSecond = Invalid; fP0DTimeSinceBusy = Invalid; fTPCSecond = Invalid; fTPCSubSecond = Invalid; fTPCTimeSinceBusy = Invalid; fFGDSecond = Invalid; fFGDSubSecond = Invalid; fFGDTimeSinceBusy = Invalid; fECalSecond = Invalid; fECalSubSecond = Invalid; fECalTimeSinceBusy = Invalid; fSMRDSecond = Invalid; fSMRDSubSecond = Invalid; fSMRDTimeSinceBusy = Invalid; fINGRIDSecond = Invalid; fINGRIDSubSecond = Invalid; fINGRIDTimeSinceBusy = Invalid; fCTMTriggerPattern[0] = Invalid; fCTMTriggerPattern[1] = Invalid; fCTMTriggerPattern[2] = Invalid; fFGDCTMTriggerPattern[0] = Invalid; fFGDCTMTriggerPattern[1] = Invalid; fFGDCTMTriggerPattern[2] = Invalid; }