X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FTPCLib%2FAliHLTTPCDigitReader.cxx;h=de3ef49930975f976220f975e180195e07bfe67b;hb=b7d1d8915550cc8b6fe02a7ecf8b28cbd6c8acf1;hp=6e6538a73b77b2e500321d41fc8a9760941e0bbe;hpb=436467f5d8c0612d0bcdf823b499f6f9ad575eae;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/TPCLib/AliHLTTPCDigitReader.cxx b/HLT/TPCLib/AliHLTTPCDigitReader.cxx index 6e6538a73b7..de3ef499309 100644 --- a/HLT/TPCLib/AliHLTTPCDigitReader.cxx +++ b/HLT/TPCLib/AliHLTTPCDigitReader.cxx @@ -107,21 +107,36 @@ bool AliHLTTPCDigitReader::Next(int /*type*/) bool AliHLTTPCDigitReader::NextChannel() { // see header file for class documentation - PrintMissingFastAccessWarning(); + PrintWarningOnce(kWarnMissFastAccess,"\n" + " !!! This digit reader does not implement the methods for !!!\n" + " !!! fast data access on channel/bunch basis. Data is discarded !!!"); return false; } int AliHLTTPCDigitReader::NextBunch() { // see header file for class documentation - PrintMissingFastAccessWarning(); + PrintWarningOnce(kWarnMissFastAccess,"\n" + " !!! This digit reader does not implement the methods for !!!\n" + " !!! fast data access on channel/bunch basis. Data is discarded !!!"); return false; } const UInt_t* AliHLTTPCDigitReader::GetSignals() { // see header file for class documentation - PrintMissingFastAccessWarning(); + PrintWarningOnce(kWarnMissFastAccess,"\n" + " !!! This digit reader does not implement the methods for !!!\n" + " !!! fast data access on channel/bunch basis. Data is discarded !!!"); + return 0; +} + +const UShort_t* AliHLTTPCDigitReader::GetSignalsShort() +{ + // see header file for class documentation + PrintWarningOnce(kWarnMissFastAccess,"\n" + " !!! This digit reader does not implement the methods for !!!\n" + " !!! fast data access on channel/bunch basis. Data is discarded !!!"); return 0; } @@ -176,7 +191,9 @@ int AliHLTTPCDigitReader::RewindToPrevChannel() int AliHLTTPCDigitReader::GetBunchSize() { // see header file for class documentation - PrintMissingFastAccessWarning(); + PrintWarningOnce(kWarnMissFastAccess,"\n" + " !!! This digit reader does not implement the methods for !!!\n" + " !!! fast data access on channel/bunch basis. Data is discarded !!!"); return 0; } @@ -201,25 +218,28 @@ AliHLTUInt32_t AliHLTTPCDigitReader::GetAltroBlockHWaddr(Int_t /*row*/, Int_t /* int AliHLTTPCDigitReader::GetRCUTrailerSize() { // see header file for class documentation - PrintMissingFastAccessWarning(); + PrintWarningOnce(kWarnMissTrailerGetters,"\n" + " !!! This digit reader does not implement the Getters !!!\n" + " !!! for RCU trailer. Ignoring call. !!!"); return 0; } -bool AliHLTTPCDigitReader::GetRCUTrailerData(UChar_t *trData) +bool AliHLTTPCDigitReader::GetRCUTrailerData(UChar_t*& trData) { // see header file for class documentation - PrintMissingFastAccessWarning(); + PrintWarningOnce(kWarnMissTrailerGetters,"\n" + " !!! This digit reader does not implement the Getters !!!\n" + " !!! for RCU trailer. Ignoring call. !!!"); + if (trData) trData=NULL; return 0; } -void AliHLTTPCDigitReader::PrintMissingFastAccessWarning() +void AliHLTTPCDigitReader::PrintWarningOnce(int type, const char* message) { // see header file for class documentation - if (CheckFlag(kWarnMissFastAccess)) return; - SetFlag(kWarnMissFastAccess); - HLTWarning("\n" - " !!! This digit reader does not implement the methods for !!!\n" - " !!! fast data access on channel/bunch basis. Data is discarded !!!"); + if (CheckFlag(type)) return; + SetFlag(type); + HLTWarning(message); }