#include "AliTRDarrayADC.h"\r
#include "AliTRDSignalIndex.h"\r
#include "AliTRDdigitsParam.h"\r
-#include "AliTRDrawTPStream.h"\r
\r
#include "AliRawReader.h"\r
\r
, fExtendedCOL(0)\r
, fIsShared(0)\r
, fWarnError(kTRUE)\r
+ , fWarnWarning(kFALSE)\r
, fBufferRead(0)\r
, fGeometry(0)\r
, fRawReader(0)\r
, fExtendedCOL(0)\r
, fIsShared(0)\r
, fWarnError(kTRUE)\r
+ , fWarnWarning(kFALSE)\r
, fBufferRead(0)\r
, fGeometry(0)\r
, fRawReader(rawReader)\r
, fExtendedCOL(0)\r
, fIsShared(0)\r
, fWarnError(kTRUE)\r
+ , fWarnWarning(kFALSE)\r
, fBufferRead(0)\r
, fGeometry(0)\r
, fRawReader(0)\r
return kTRUE;\r
}\r
else {\r
- if (fWarnError) AliWarning(Form("Skip %d words failed. %d available", iw, fpEnd - fpPos - 1));\r
+ if (fWarnWarning) AliWarning(Form("Skip %u words failed. %u available", iw, fpEnd - fpPos - 1));\r
return kFALSE;\r
}\r
\r
if (DecodeTracklets() == kFALSE) {\r
SeekEndOfData();\r
\r
- if (fWarnError) AliError(Form("Tracklet decoding failed stack %d link %d", GetStack(), fStackLinkNumber));\r
+ if (fWarnWarning) AliWarning(Form("Tracklet decoding failed stack %d link %d", GetStack(), fStackLinkNumber));\r
\r
// copy error codes in memory into error container\r
if (errorCodeContainer) {\r
fpPos = fpBegin;\r
\r
if (fpBegin == 0 || length <= 0) {\r
- AliError(Form("Buffer size or pointer is strange. pointer to the buffer is 0x%08x of size %d", fpBegin, length));\r
+ AliError(Form("Buffer size or pointer is strange. pointer to the buffer is 0x%p of size %u", fpBegin, length));\r
return kFALSE;\r
}\r
\r
\r
if (fpPos >= fpEnd) {\r
if (fRawReader) fRawReader->AddMajorErrorLog(kLinkDataMissing, "Link data missing"); \r
- if (fWarnError) AliError("Link data missing.");\r
+ if (fWarnWarning) AliWarning("Link data missing.");\r
break;\r
}\r
\r
}\r
}\r
else {\r
- if (fWarnError) AliWarning("No additional sm headers and stack index words present.");\r
+ if (fWarnWarning) AliWarning("No additional sm headers and stack index words present.");\r
if (fRawReader) fRawReader->AddMajorErrorLog(kDecodeStackInfo, "Stack info missing");\r
return kFALSE;\r
}\r
if (fgDebugFlag) AliDebug(5, "GTU headers are OK.");\r
}\r
else {\r
- if (fWarnError) AliWarning("No data just after GTU headers.");\r
+ if (fWarnError) AliError("No data just after GTU headers.");\r
if (fRawReader) fRawReader->AddMajorErrorLog(kMissingData, "Missing sm data");\r
return kFALSE;\r
}\r
fEndOfTrackletCount = 0; // tracklet endmarker counter of this link\r
fHC->fNTracklets = 0; // number of tracklet of this link, should be less than 256\r
\r
- if (fgDebugFlag) AliDebug(10, Form("Decode tracklets at 0x%08x : 0x%08x", fpPos, *fpPos));\r
+ if (fgDebugFlag) AliDebug(10, Form("Decode tracklets at 0x%p : 0x%08x", fpPos, *fpPos));\r
\r
while (!(*fpPos == END_OF_TRACKLET_MARKEROLD || *fpPos == END_OF_TRACKLET_MARKERNEW) && fpPos < fpEnd) {\r
- if (fgDebugFlag) AliDebug(10, Form("Tracklet found at 0x%08x : 0x%08x", fpPos, *fpPos));\r
+ if (fgDebugFlag) AliDebug(10, Form("Tracklet found at 0x%p : 0x%08x", fpPos, *fpPos));\r
\r
fLinkTrackletCounter++;\r
\r
fHC->fNTracklets = fLinkTrackletCounter;\r
\r
while ((*fpPos == END_OF_TRACKLET_MARKEROLD || *fpPos == END_OF_TRACKLET_MARKERNEW) && fpPos < fpEnd) {\r
- if (fgDebugFlag) AliDebug(10, Form("EoTracklets found at 0x%08x : 0x%08x", fpPos, *fpPos));\r
+ if (fgDebugFlag) AliDebug(10, Form("EoTracklets found at 0x%p : 0x%08x", fpPos, *fpPos));\r
\r
fEndOfTrackletCount++;\r
fpPos++;\r
}\r
\r
if (DecodeHCheader() == kFALSE) {\r
- if (fWarnError) AliWarning(Form("HC Header decode failed. H0 Error: %d H1 Error: %d",fHC->fH0Corrupted,fHC->fH1Corrupted));\r
+ if (fWarnWarning) AliWarning(Form("HC Header decode failed. H0 Error: %d H1 Error: %d",fHC->fH0Corrupted,fHC->fH1Corrupted));\r
return kFALSE;\r
}\r
else {\r
}\r
}\r
\r
- if ((fHC->fRawVMajor & 64) == 64) { // test pattern data\r
- AliTRDrawTPStream *tpStream = new AliTRDrawTPStream(fHC->fRawVMajorOpt, fpPos);\r
- if (tpStream->DecodeTPdata() == kFALSE) {\r
- if (fWarnError) AliError("Failed to decode test pattern data");\r
- return kFALSE;\r
- }\r
- return kTRUE;\r
- }\r
+// if ((fHC->fRawVMajor & 64) == 64) { // test pattern data\r
+// AliTRDrawTPStream *tpStream = new AliTRDrawTPStream(fHC->fRawVMajorOpt, fpPos);\r
+// if (tpStream->DecodeTPdata() == kFALSE) {\r
+// if (fWarnError) AliError("Failed to decode test pattern data");\r
+// return kFALSE;\r
+// }\r
+// return kTRUE;\r
+// }\r
\r
fHC->fMCMmax = 0; // count number of mcms in a hc \r
while (*fpPos != ENDOFRAWDATAMARKER && fpPos < fpEnd) {\r
\r
if (IsHCheaderOK() == kFALSE) {\r
fHC->fH0Corrupted += 2;\r
- if (fgDebugFlag) AliDebug(11,Form("H0 Header Insane. Word 0x%08x", *fHC->fPos));\r
+ if (fgDebugFlag) AliDebug(11,Form("H0 Header Insane. Word 0x%p", *fHC->fPos));\r
return kFALSE;\r
}\r
\r
\r
hc->fH0Corrupted = HC_HEADER_MASK_ERR(vword);\r
if (hc->fH0Corrupted > 0) {\r
- if (fgDebugFlag) AliDebug(11,Form("H0 Header Mask Error. Word 0x%08x",*fHC->fPos ));\r
+ if (fgDebugFlag) AliDebug(11,Form("H0 Header Mask Error. Word 0x%p",*fHC->fPos ));\r
return kFALSE;\r
}\r
hc->fSpecialRawV = HC_SPECIAL_RAW_VERSION(vword);\r
\r
hc->fH1Corrupted = HC_HEADER_MASK_ERR(vword);\r
if (hc->fH1Corrupted > 0) {\r
- if (fgDebugFlag) AliDebug(11,Form("H1 Header Mask Error. Word 0x%08x", *(fHC->fPos+1) ));\r
+ if (fgDebugFlag) AliDebug(11,Form("H1 Header Mask Error. Word 0x%p", *(fHC->fPos+1) ));\r
return kFALSE;\r
}\r
hc->fTimeBins = HC_NTIMEBINS(vword);\r
\r
while ( *fpPos != ENDOFRAWDATAMARKER && fpPos < fpEnd ) {\r
if (MCM_HEADER_MASK_ERR(*fpPos) == 0 && MCM_HEADER_MASK_ERR(*(fpPos+1)) == 0) {\r
- if (fgDebugFlag) AliDebug(11,Form("Found : Pos 0x%08x : Val 0x%08x", fpPos, *fpPos));\r
+ if (fgDebugFlag) AliDebug(11,Form("Found : Pos 0x%p : Val 0x%08x", fpPos, *fpPos));\r
return kTRUE;\r
}\r
if ( *fpPos == END_OF_TRACKLET_MARKERNEW) {\r
// get number of time bin info from HC headers then set \r
Int_t nHCs=0;\r
while (SetNTimebins()==kFALSE){\r
- if (fgDebugFlag) AliDebug(11,Form("Failed to get number of time bin information from the %sth HC",nHCs));\r
+ if (fgDebugFlag) AliDebug(11,Form("Failed to get number of time bin information from the %dth HC",nHCs));\r
nHCs++;\r
}\r
\r
//\r
// dump given number of words for debugging\r
//\r
- TString tsreturn = Form("\n[ Dump Sequence at 0x%08x ] : ", px);\r
+ TString tsreturn = Form("\n[ Dump Sequence at 0x%p ] : ", px);\r
for (UInt_t i = 0; i < iw; i++) {\r
if ( iw != 0 && px + iw > fpEnd) \r
return kFALSE;\r
if (!hc)\r
return Form("Unable to dump. Null received as parameter!?!");\r
else\r
- return Form("[ HC[0] at 0x%08x ] : 0x%08x Info is : RawV %d SM %d Stack %d Layer %d Side %d DCSboard %d",\r
+ return Form("[ HC[0] at 0x%p ] : 0x%08x Info is : RawV %d SM %d Stack %d Layer %d Side %d DCSboard %d",\r
hc->fPos[0], *(hc->fPos[0]), hc->fRawVMajor, fRawReader->GetEquipmentId()-1024, \r
hc->fStack, hc->fLayer, hc->fSide, hc->fDCSboard);\r
}\r
if (!hc)\r
return Form("Unable to dump. Null received as parameter!?!");\r
else\r
- return Form("[ HC[1] at 0x%08x ] : 0x%08x Info is : TBins %d BCcount %d PreTrigCount %d PreTrigPhase %d",\r
+ return Form("[ HC[1] at 0x%p ] : 0x%08x Info is : TBins %d BCcount %d PreTrigCount %d PreTrigPhase %d",\r
hc->fPos[1], *(hc->fPos[1]), hc->fTimeBins, hc->fBunchCrossCounter, hc->fPreTriggerCounter, hc->fPreTriggerPhase);\r
}\r
\r