Index: trunk/FACT++/src/DataCalib.cc
===================================================================
--- trunk/FACT++/src/DataCalib.cc	(revision 11817)
+++ trunk/FACT++/src/DataCalib.cc	(revision 11818)
@@ -112,5 +112,5 @@
 }
 
-bool DataCalib::ReadFits(const string &str)
+bool DataCalib::ReadFits(const string &str, MessageImp &msg)
 {
     try
@@ -122,5 +122,5 @@
         if (file.GetStr("TELESCOP")!="FACT")
         {
-            Error("Reading "+str+" failed: Not a valid FACT file (TELESCOP not FACT in header)");
+            msg.Error("Reading "+str+" failed: Not a valid FACT file (TELESCOP not FACT in header)");
             return false;
         }
@@ -128,5 +128,5 @@
         if (!file.HasKey("STEP"))
         {
-            Error("Reading "+str+" failed: Is not a DRS calib file (STEP not found in header)");
+            msg.Error("Reading "+str+" failed: Is not a DRS calib file (STEP not found in header)");
             return false;
         }
@@ -134,5 +134,5 @@
         if (file.GetNumRows()!=1)
         {
-            Error("Reading "+str+" failed: Number of rows in table is not 1.");
+            msg.Error("Reading "+str+" failed: Number of rows in table is not 1.");
             return false;
         }
@@ -154,5 +154,5 @@
         if (!file.GetNextRow())
         {
-            Error("Reading data from "+str+" failed.");
+            msg.Error("Reading data from "+str+" failed.");
             return false;
         }
@@ -166,5 +166,5 @@
     catch (const runtime_error &e)
     {
-        Error("Exception reading "+str+": "+e.what());
+        msg.Error("Exception reading "+str+": "+e.what());
         return false;
     }
Index: trunk/FACT++/src/DataCalib.h
===================================================================
--- trunk/FACT++/src/DataCalib.h	(revision 11817)
+++ trunk/FACT++/src/DataCalib.h	(revision 11818)
@@ -28,5 +28,4 @@
     DimDescribedService &fDim; // DimService through which statistics updates are transmitted
 
-    bool ReadFits(const string &fname);
     void WriteFits();
 
@@ -45,4 +44,6 @@
     static void Apply(int16_t *val, const int16_t *start, uint32_t roi);
     static void Apply(float *vec, int16_t *val, const int16_t *start, uint32_t roi);
+
+    static bool ReadFits(const string &fname, MessageImp &msg);
 };
 
