Index: trunk/Mars/mdrs/MDrsCalibrationTime.cc
===================================================================
--- trunk/Mars/mdrs/MDrsCalibrationTime.cc	(revision 18122)
+++ trunk/Mars/mdrs/MDrsCalibrationTime.cc	(revision 18123)
@@ -16,7 +16,7 @@
 !
 !
-!   Author(s): Thomas Bretz  2013 <mailto:thomas.bretz@epfl.ch>
+!   Author(s): Thomas Bretz  2013 <mailto:tbretz@physik.rwth-aachen.de>
 !
-!   Copyright: MAGIC Software Development, 2000-2013
+!   Copyright: MAGIC Software Development, 2000-2015
 !
 !
@@ -48,2 +48,35 @@
     return true;
 }
+
+bool MDrsCalibrationTime::ReadFits(const string &fname)
+{
+    const std::string msg = DrsCalibrateTime::ReadFitsImp(fname);
+    if (msg.empty())
+    {
+        *fLog << inf << "Wrote DRS calibration file " << fname << endl;
+        return kTRUE;
+    }
+
+    *fLog << err << "Error writing to " << fname << ": " << msg << endl;
+    return kFALSE;
+}
+
+bool MDrsCalibrationTime::WriteFits(const string &fname) const
+{
+    const Bool_t exists = !gSystem->AccessPathName(fname.c_str(), kFileExists);
+    if (exists)
+    {
+        *fLog << err << "File '" << fname << "' already exists." << endl;
+        return kFALSE;
+    }
+
+    const std::string msg = DrsCalibrateTime::WriteFitsImp(fname);
+    if (msg.empty())
+    {
+        *fLog << inf << "Wrote DRS calibration file " << fname << endl;
+        return kTRUE;
+    }
+
+    *fLog << err << "Error writing to " << fname << ": " << msg << endl;
+    return kFALSE;
+}
Index: trunk/Mars/mdrs/MDrsCalibrationTime.h
===================================================================
--- trunk/Mars/mdrs/MDrsCalibrationTime.h	(revision 18122)
+++ trunk/Mars/mdrs/MDrsCalibrationTime.h	(revision 18123)
@@ -47,4 +47,7 @@
     }
 
+    bool ReadFits(const std::string &fname);
+    bool WriteFits(const std::string &fname) const;
+
     ClassDef(MDrsCalibrationTime, 2) // A list of histograms storing the Fadc spektrum of one pixel
 };
