// or
// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
-#if __GNUC__>= 3
-using namespace std;
-#endif
-
#include "AliHLTTPCDigitReader.h"
#include "AliHLTTPCTransform.h"
#include "AliHLTStdIncludes.h"
+using namespace std;
+
ClassImp(AliHLTTPCDigitReader)
AliHLTTPCDigitReader::AliHLTTPCDigitReader()
HLTWarning("common sorting functionality has not yet been implemented");
}
-bool AliHLTTPCDigitReader::Next(int type)
+bool AliHLTTPCDigitReader::Next(int /*type*/)
{
// see header file for class documentation
if (!CheckFlag(kLocked)) return NextSignal();
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;
}
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;
+}
+
+int AliHLTTPCDigitReader::GetRowOffset() const
+{
+ // see header file for class documentation
return 0;
}
AliHLTUInt32_t AliHLTTPCDigitReader::GetAltroBlockHWaddr() const
{
+ // see header file for class documentation
+ return 0;
+}
+
+AliHLTUInt32_t AliHLTTPCDigitReader::GetAltroBlockHWaddr(Int_t /*row*/, Int_t /*pad*/) const
+{
+ // see header file for class documentation
+ return 0;
+}
+
+int AliHLTTPCDigitReader::GetRCUTrailerSize()
+{
+ // see header file for class documentation
+ 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)
+{
+ // see header file for class documentation
+ 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("This digit reader does not implement the metghods for fast data access on channel/bunch basis. Data is discarded");
+ if (CheckFlag(type)) return;
+ SetFlag(type);
+ HLTWarning(message);
}
+