-
+// $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* provided "as is" without express or implied warranty. *
//**************************************************************************
-/** @file AliHLTTPCDigitReader32Bit.cxx
- @author Kenneth Aamodt
- @date
- @brief DigitReader implementation for the 32 bit offline decoder
-*/
+/// @file AliHLTTPCDigitReader32Bit.cxx
+/// @author Kenneth Aamodt
+/// @date
+/// @brief DigitReader implementation for the 32 bit offline decoder
+///
#if __GNUC__>= 3
using namespace std;
#include "AliRawReader.h"
#include "AliRawReaderMemory.h"
#include "AliAltroRawStreamV3.h"
-#include "AliHLTTPCTransform.h"
ClassImp(AliHLTTPCDigitReader32Bit)
AliHLTTPCDigitReader32Bit::AliHLTTPCDigitReader32Bit()
:
AliHLTTPCDigitReader(),
- fRawReader(NULL),
fRawReaderMemory(NULL),
fAltroRawStreamV3(NULL),
- fMapping(NULL)
+ fMapping(NULL),
+ fSkipDataReadingFlag(kFALSE)
{
// see header file for class documentation
// or
fAltroRawStreamV3 = NULL;
}
-
if(fMapping){
delete fMapping;
}
fRawReaderMemory->SetMemory(reinterpret_cast<UChar_t*>(ptr), ULong_t(size));
fRawReaderMemory->SetEquipmentID(ddlno);
fRawReaderMemory->Reset();
- fRawReaderMemory->NextEvent();
+ fSkipDataReadingFlag = fRawReaderMemory->NextEvent();
if(fAltroRawStreamV3 != NULL){
delete fAltroRawStreamV3;
if (!fAltroRawStreamV3){
return -ENODEV;
}
- fAltroRawStreamV3->NextDDL();
+
+ fSkipDataReadingFlag = fAltroRawStreamV3->NextDDL();
if(!fMapping){
fMapping = new AliHLTTPCMapping(patch);
int AliHLTTPCDigitReader32Bit::Reset()
{
// see header file for class documentation
- fRawReaderMemory->Reset();
+ fRawReaderMemory->ClearBuffers();
return 0;
}
bool AliHLTTPCDigitReader32Bit::NextChannel()
{
// see header file for class documentation
- return fAltroRawStreamV3->NextChannel();
+ if(fSkipDataReadingFlag == kFALSE){
+ return kFALSE;
+ }
+ return fAltroRawStreamV3->NextChannel();
}
int AliHLTTPCDigitReader32Bit::NextBunch()
int AliHLTTPCDigitReader32Bit::GetTime()
{
// see header file for class documentation
- int iResult=fAltroRawStreamV3->GetStartTimeBin()-fAltroRawStreamV3->GetBunchLength()+1;
+ int iResult=-1;
+ iResult=fAltroRawStreamV3->GetStartTimeBin()-fAltroRawStreamV3->GetBunchLength()+1;
return iResult;
}
{
return fMapping->GetRowOffset();
}
+
AliHLTUInt32_t AliHLTTPCDigitReader32Bit::GetAltroBlockHWaddr() const
{
// see header file for class documentation