21#include <fairlogger/Logger.h>
61 strcpy(mInputFile, (
const char*)FileName);
63 if (!fileExists(mInputFile)) {
64 LOG(error) <<
"The input file " << mInputFile <<
" does not exist at this time.";
68 fh = fopen(mInputFile,
"rb");
70 LOG(error) <<
"ERROR to open Input file ! [" << mInputFile <<
"]";
91bool HmpidDecodeRawFile::getBlockFromStream(uint32_t** streamPtr, uint32_t
Size)
105 *streamPtr = mFileBuffer;
115bool HmpidDecodeRawFile::getHeaderFromStream(uint32_t** streamPtr)
125bool HmpidDecodeRawFile::getWordFromStream(uint32_t* word)
150int HmpidDecodeRawFile::fileExists(
char* filewithpath)
152 if (
access(filewithpath, F_OK) != -1) {
Derived Class for decoding Raw Data File stream.
#define RAWBLOCKDIMENSION_W
#define HEADERDIMENSION_W
HmpidDecodeRawFile(int *EqIds, int *CruIds, int *LinkIds, int numOfEquipments)
~HmpidDecodeRawFile()
Destructor.
bool setUpStream(void *InpuFileName, long Size)
uint32_t * mStartStreamPtr
uint32_t * mActualStreamPtr
void setPad(int col, int dil, int cha, uint16_t charge)
GLuint GLint GLboolean GLint GLenum access
const int TH_FILENOTEXISTS
const int TH_WRONGFILELEN
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"