// "read" the data header
fHeader = (AliRawDataHeader*) fPosition;
if ((fPosition + fHeader->fSize) != fEnd) {
- Warning("ReadHeader",
- "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
- fHeader->fSize, fEnd - fPosition);
+ if (fHeader->fSize != 0xFFFFFFFF)
+ Warning("ReadHeader",
+ "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
+ fHeader->fSize, fEnd - fPosition);
fHeader->fSize = fEnd - fPosition;
}
fPosition += sizeof(AliRawDataHeader);
// check consistency of data size in the data header and in the sub event
AliRawDataHeader* header = (AliRawDataHeader*) position;
if ((position + header->fSize) != end) {
- Warning("ReadHeader",
- "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
- header->fSize, end - position);
+ if (header->fSize != 0xFFFFFFFF)
+ Warning("ReadHeader",
+ "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
+ header->fSize, end - position);
header->fSize = end - position;
result |= kErrSize;
}
// "read" the data header
fHeader = (AliRawDataHeader*) fPosition;
if ((fPosition + fHeader->fSize) != fEnd) {
- Warning("ReadHeader",
- "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
- fHeader->fSize, fEnd - fPosition);
+ if (fHeader->fSize != 0xFFFFFFFF)
+ Warning("ReadHeader",
+ "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
+ fHeader->fSize, fEnd - fPosition);
fHeader->fSize = fEnd - fPosition;
}
fPosition += sizeof(AliRawDataHeader);
// check consistency of data size in the data header and in the sub event
AliRawDataHeader* header = (AliRawDataHeader*) position;
if ((position + header->fSize) != end) {
- Warning("ReadHeader",
- "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
- header->fSize, end - position);
+ if (header->fSize != 0xFFFFFFFF)
+ Warning("ReadHeader",
+ "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
+ header->fSize, end - position);
header->fSize = end - position;
result |= kErrSize;
}
fHeader=fHeaderSwapped;
#endif
if ((fPosition + fHeader->fSize) != fEnd) {
- Warning("ReadHeader",
- "Equipment %d : raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
- fEquipment->GetEquipmentHeader()->GetId(),fHeader->fSize, fEnd - fPosition);
+ if (fHeader->fSize != 0xFFFFFFFF)
+ Warning("ReadHeader",
+ "Equipment %d : raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
+ fEquipment->GetEquipmentHeader()->GetId(),fHeader->fSize, fEnd - fPosition);
fHeader->fSize = fEnd - fPosition;
}
fPosition += sizeof(AliRawDataHeader);
// check consistency of data size in the header and in the equipment
AliRawDataHeader* header = (AliRawDataHeader*) position;
if ((position + header->fSize) != end) {
- Warning("ReadHeader",
- "Equipment %d : raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
- equipment->GetEquipmentHeader()->GetId(),header->fSize, end - position);
+ if (header->fSize != 0xFFFFFFFF)
+ Warning("ReadHeader",
+ "Equipment %d : raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !",
+ equipment->GetEquipmentHeader()->GetId(),header->fSize, end - position);
header->fSize = end - position;
result |= kErrSize;
}