Skip to content

Commit

Permalink
Disable RawStreamDecode warnings for start time bin in HLT after some…
Browse files Browse the repository at this point in the history
… threshold
  • Loading branch information
davidrohr authored and mkrzewic committed Dec 3, 2015
1 parent 1822401 commit 779e3fa
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions RAW/RAWDatarec/AliAltroRawStreamV3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,26 @@ Bool_t AliAltroRawStreamV3::NextBunch()

fStartTimeBin = fBunchData[fBunchDataIndex++];
if (fCheckAltroPayload) {
static bool show_info = !(getenv("HLT_ONLINE_MODE") && strcmp(getenv("HLT_ONLINE_MODE"), "on") == 0);
if ((fStartTimeBin-fBunchLength+1) < 0) {
AliWarning(Form("Invalid start time-bin @ %d in Address=0x%x (DDL=%03d)! (%d-%d+1) < 0", fBunchDataIndex-1,
fHWAddress,fDDLNumber,fStartTimeBin,fBunchLength));
static int nErrors = 0;
if (show_info || nErrors++ < 100)
{
AliWarning(Form("Invalid start time-bin @ %d in Address=0x%x (DDL=%03d)! (%d-%d+1) < 0", fBunchDataIndex-1,
fHWAddress,fDDLNumber,fStartTimeBin,fBunchLength));
}
fRawReader->AddMinorErrorLog(kAltroPayloadErr,Form("hw=0x%x",fHWAddress));
if (AliDebugLevel() > 0) HexDumpChannel();
fCount = fBunchLength = -1;
return kFALSE;
}
if (fStartTimeBin >= prevTimeBin) {
AliWarning(Form("Invalid start time-bin @ %d in Address=0x%x (DDL=%03d)! (%d>=%d)", fBunchDataIndex-1,
fHWAddress,fDDLNumber,fStartTimeBin,prevTimeBin));
static int nErrors = 0;
if (show_info || nErrors++ < 100)
{
AliWarning(Form("Invalid start time-bin @ %d in Address=0x%x (DDL=%03d)! (%d>=%d)", fBunchDataIndex-1,
fHWAddress,fDDLNumber,fStartTimeBin,prevTimeBin));
}
fRawReader->AddMinorErrorLog(kAltroPayloadErr,Form("hw=0x%x",fHWAddress));
if (AliDebugLevel() > 0) HexDumpChannel();
fCount = fBunchLength = -1;
Expand Down

0 comments on commit 779e3fa

Please sign in to comment.