#include "AliRawEventHeaderBase.h"
#include "AliRawDataHeader.h"
+#include "AliRawDataHeaderV3.h"
#include "AliTOFDecoderV2.h"
#include "AliTOFTDCHit.h"
// destructor
fPackedDigits = 0;
-
delete fDecoder;
delete fDecoderV2;
Int_t currentEquipment;
Int_t currentDDL;
- const AliRawDataHeader *currentCDH;
+ const AliRawDataHeader *currentCDH = 0x0;
+ const AliRawDataHeaderV3 *currentCDHV3 = 0x0;
//pointers
UChar_t *data = 0x0;
}
currentCDH = fRawReader->GetDataHeader();
+ if (!currentCDH) currentCDHV3 = fRawReader->GetDataHeaderV3();
const Int_t kDataSize = fRawReader->GetDataSize();
const Int_t kDataWords = kDataSize / 4;
data = new UChar_t[kDataSize];
fDecoder->SetPackedDataBuffer(&fPackedDataBuffer[currentDDL]);
//start decoding
- if (fDecoder->Decode((UInt_t *)data, kDataWords, currentCDH) == kTRUE) {
+ if (fDecoder->Decode((UInt_t *)data, kDataWords, currentCDH, currentCDHV3) == kTRUE) {
fRawReader->AddMajorErrorLog(kDDLDecoder,Form("DDL # = %d",currentDDL));
- AliWarning(Form("Error while decoding DDL # %d: decoder returned with errors", currentDDL));
+ if (verbose) AliWarning(Form("Error while decoding DDL # %d: decoder returned with errors", currentDDL));
ResetDataBuffer(currentDDL);
ResetPackedDataBuffer(currentDDL);
}
//start decoding
if (fDecoderV2->Decode((UInt_t *)data, kDataWords) == kTRUE) {
fRawReader->AddMajorErrorLog(kDDLDecoder,Form("DDL # = %d",currentDDL));
- AliWarning(Form("Error while decoding DDL # %d: decoder returned with errors", currentDDL));
+ if (verbose) AliWarning(Form("Error while decoding DDL # %d: decoder returned with errors", currentDDL));
}
delete [] data;
/* read and check CDH info */
const AliRawDataHeader *currentCDH = fRawReader->GetDataHeader();
- Int_t currentMiniEventID = currentCDH->GetMiniEventID();
- Int_t currentEventID1 = currentCDH->GetEventID1();
+ const AliRawDataHeaderV3 *currentCDHV3 = fRawReader->GetDataHeaderV3();
+ Int_t currentMiniEventID = currentCDH ? currentCDH->GetMiniEventID(): -1;
+ currentMiniEventID = currentCDHV3 ? currentCDHV3->GetMiniEventID(): currentMiniEventID;
+ Int_t currentEventID1 = currentCDH? currentCDH->GetEventID1() : -1;
+ currentEventID1 = currentCDHV3? currentCDHV3->GetEventID1() : currentEventID1;
/* read decoder summary data */
AliTOFDecoderSummaryData *decodersd;
/* check error detected/recovered */
if (decodersd->GetErrorDetected()) {
- AliWarning(Form("Error detected while decoding DDL %d (errorSlotID mask = %04x)", indexDDL, decodersd->GetErrorSlotID()));
+ AliDebug(2, Form("Error detected while decoding DDL %d (errorSlotID mask = %04x)", indexDDL, decodersd->GetErrorSlotID()));
if (decodersd->GetRecoveringError()) {
- AliWarning("Couldn't recover from error");
+ AliDebug(2, "Couldn't recover from error");
}
else {
- AliWarning("Error recovered, anyway something is probably lost");
+ AliDebug(2, "Error recovered, anyway something is probably lost");
}
}
/* check DRM header/trailer */
}
/* check partecipating mask */
if (drmsd->GetPartecipatingSlotID() != drmsd->GetDecoderSlotEnableMask()) {
- AliWarning(Form("DRM slot enable mask differs from decoder slot enable mask (%08x != %08x) in DDL %d", drmsd->GetSlotEnableMask(), drmsd->GetDecoderSlotEnableMask(), indexDDL));
+ AliDebug(2, Form("DRM slot enable mask differs from decoder slot enable mask (%08x != %08x) in DDL %d", drmsd->GetSlotEnableMask(), drmsd->GetDecoderSlotEnableMask(), indexDDL));
for (Int_t ibit = 0; ibit < 11; ibit++)
if ((drmsd->GetPartecipatingSlotID() & (0x1 << ibit)) && !(drmsd->GetDecoderSlotEnableMask() & (0x1 << ibit)))
- AliWarning(Form("readout slot %d data is missing in decoder", ibit + 2));
+ AliDebug(2, Form("readout slot %d data is missing in decoder", ibit + 2));
}
/* get DRM data */