}
}
+void AliHLTTPCHWCFData::ErrorMsg( const char *str ) const
+{
+ ALIHLTERRORGUARD(1, str);
+}
+
int AliHLTTPCHWCFData::Open(const char* filename)
{
// open block from file and add to collection
bool CheckAssumption(int format, const AliHLTUInt8_t* pData, int size) const;
// check if index is within bounds
+
bool CheckBounds(int i) const {
if (fVersion<0) {
- ALIHLTERRORGUARD(1, "");
+ ErrorMsg("");
return false;
}
int elementsize=GetElementSize(fVersion);
case 0: return sizeof(AliHLTTPCHWClusterV0);
case 1: return sizeof(AliHLTTPCHWClusterV1);
default:
- ALIHLTERRORGUARD(1, "invalid format version %d", fVersion);
+ ErrorMsg(Form("invalid format version %d", fVersion));
}
return -1;
}
// print info
void Print(const char* option);
+ // print error message
+ void ErrorMsg( const char *str ) const;
+
// open a file and init
int Open(const char* filename);