]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
calls of ALIHLTERRORGUARD macro are moved from .h to .cxx file. Otherwise CINT being...
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Oct 2013 23:46:07 +0000 (23:46 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Oct 2013 23:46:07 +0000 (23:46 +0000)
file.

HLT/TPCLib/AliHLTTPCHWCFData.cxx
HLT/TPCLib/AliHLTTPCHWCFData.h

index 4ef197b7c9d87e4812f151cb02b53c8bca9bc763..761d65cc8e0d6b383c60f568dca8e6f67619caab 100644 (file)
@@ -272,6 +272,11 @@ void AliHLTTPCHWCFData::Print(const char* option)
   }
 }
 
+void AliHLTTPCHWCFData::ErrorMsg( const char *str ) const
+{
+  ALIHLTERRORGUARD(1, str);
+}
+
 int AliHLTTPCHWCFData::Open(const char* filename)
 {
   // open block from file and add to collection
index 707106bb8cd1c38e49a0946d3cae8a7e9942e9b5..529d725399399606f352c4dc6bfc7985b21c4982 100644 (file)
@@ -72,9 +72,10 @@ class AliHLTTPCHWCFData : public AliHLTLogging {
   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);
@@ -88,7 +89,7 @@ class AliHLTTPCHWCFData : public AliHLTLogging {
     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;
   }
@@ -106,6 +107,9 @@ class AliHLTTPCHWCFData : public AliHLTLogging {
   // 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);