AliHLTEventTriggerData* evtData=reinterpret_cast<AliHLTEventTriggerData*>(trigData.fData);
HLTWarning("invalid trigger mask %s, unknown CTP trigger, initialized %s",
TriggerMaskToString(triggerMask).c_str(), TriggerMaskToString(fMask).c_str() );
- for (int i=0; i<gkAliHLTCommonHeaderCount; i++) HLTWarning("\t CDH[%d]=0x%lx", i, evtData->fCommonHeader[i]);
+ for (int i=0; i<evtData->fCommonHeaderWordCnt; i++) HLTWarning("\t CDH[%d]=0x%lx", i, evtData->fCommonHeader[i]);
return false;
}
AliHLTEventTriggerData* evtData=reinterpret_cast<AliHLTEventTriggerData*>(trigData.fData);
HLTWarning("invalid trigger mask %s, unknown CTP trigger, initialized %s",
TriggerMaskToString(triggerMask).c_str(), TriggerMaskToString(fMask).c_str());
- for (int i=0; i<gkAliHLTCommonHeaderCount; i++)
+ for (int i=0; i<evtData->fCommonHeaderWordCnt; i++)
HLTWarning("\t CDH[%d]=0x%lx", i, evtData->fCommonHeader[i]);
}
Increment(triggerMask);
AliHLTEventTriggerData* evtData=reinterpret_cast<AliHLTEventTriggerData*>(trigData.fData);
HLTWarning("invalid trigger mask %s, unknown CTP trigger, initialized %s",
TriggerMaskToString(triggerMask).c_str(), TriggerMaskToString(fMask).c_str());
- for (int i=0; i<gkAliHLTCommonHeaderCount; i++)
+ for (int i=0; i<evtData->fCommonHeaderWordCnt; i++)
HLTWarning("\t CDH[%d]=0x%lx", i, evtData->fCommonHeader[i]);
}
// Check that the trigger data pointer points to data of a size we can handle.
// Either it is the size of AliHLTEventTriggerData or the size of the old
- // version of AliHLTEventTriggerData using AliHLTEventDDLV0.
+ // version of AliHLTEventTriggerData using AliHLTEventDDLV0 or V1.
if (trigData.fDataSize != sizeof(AliHLTEventTriggerData) and
- trigData.fDataSize != sizeWithoutReadout + sizeof(AliHLTEventDDLV0)
+ trigData.fDataSize != sizeWithoutReadout + sizeof(AliHLTEventDDLV0) and
+ trigData.fDataSize != sizeWithoutReadout + sizeof(AliHLTEventDDLV1)
)
{
if (printErrors)
assert(evtData != NULL);
// Check that the CDH has the right number of words.
- if (cdh != NULL and evtData->fCommonHeaderWordCnt != gkAliHLTCommonHeaderCount)
+ if ( cdh != NULL and
+ evtData->fCommonHeaderWordCnt != gkAliHLTCommonHeaderCount and
+ evtData->fCommonHeaderWordCnt != gkAliHLTCommonHeaderCountV2
+ )
{
if (printErrors)
{
pBlock && iResult>=0;
pBlock=GetNextInputBlock()) {
if (pBlock->fDataType!=hltrdlstdt) continue;
- if (pBlock->fSize==sizeof(AliHLTEventDDL) or pBlock->fSize==sizeof(AliHLTEventDDLV0)) {
+ if (pBlock->fSize==sizeof(AliHLTEventDDL) or
+ pBlock->fSize==sizeof(AliHLTEventDDLV0) or
+ pBlock->fSize==sizeof(AliHLTEventDDLV1))
+ {
HLTDebug("Filling histograms from binary buffer");
AliHLTReadoutList readoutlist(*reinterpret_cast<AliHLTEventDDL*>(pBlock->fPtr));
FillReadoutListHistogram(fBitsHisto, &readoutlist);
FillReadoutListVsCTP(fBitsVsCTP, &readoutlist, &trigData);
} else {
- HLTError("HLTRDLST size missmatch: %d, expected %d or %d", pBlock->fSize, sizeof(AliHLTEventDDL), sizeof(AliHLTEventDDLV0));
+ HLTError("HLTRDLST size missmatch: %d, expected V0:%d, V1:%d or V2%d", pBlock->fSize, sizeof(AliHLTEventDDLV0), sizeof(AliHLTEventDDLV1), sizeof(AliHLTEventDDLV2));
}
}
} else if (fMode==AliHLTReadoutListDumpComponent::kModeHLTDecision) {