Index: /trunk/FACT++/src/DataCalib.cc
===================================================================
--- /trunk/FACT++/src/DataCalib.cc	(revision 15627)
+++ /trunk/FACT++/src/DataCalib.cc	(revision 15628)
@@ -175,5 +175,5 @@
 }
 
-bool DataCalib::WriteEvt(EVENT *e)
+bool DataCalib::WriteEvt(const EVENT *e)
 {
     // FIXME: SET StartPix to 0 if StartPix is -1
@@ -269,5 +269,5 @@
 }
 */
-bool DataCalib::Close(RUN_TAIL *tail)
+bool DataCalib::Close(const RUN_TAIL *tail)
 {
     if (fNumEntries==0)
Index: /trunk/FACT++/src/DataCalib.h
===================================================================
--- /trunk/FACT++/src/DataCalib.h	(revision 15627)
+++ /trunk/FACT++/src/DataCalib.h	(revision 15628)
@@ -38,6 +38,6 @@
 
     bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
-    bool WriteEvt(EVENT *e);
-    bool Close(RUN_TAIL * = 0);
+    bool WriteEvt(const EVENT *e);
+    bool Close(const RUN_TAIL * = 0);
 
     //static void Apply(int16_t *val, const int16_t *start, uint32_t roi);
Index: /trunk/FACT++/src/DataProcessorImp.cc
===================================================================
--- /trunk/FACT++/src/DataProcessorImp.cc	(revision 15627)
+++ /trunk/FACT++/src/DataProcessorImp.cc	(revision 15628)
@@ -66,5 +66,5 @@
 }
 
-bool DataDump::WriteEvt(EVENT *e)
+bool DataDump::WriteEvt(const EVENT *e)
 {
     const Time now;
@@ -81,5 +81,5 @@
 }
 
-bool DataDump::Close(RUN_TAIL *)
+bool DataDump::Close(const RUN_TAIL *)
 {
     ostringstream str;
@@ -93,5 +93,5 @@
 // =======================================================================
 
-bool DataDebug::WriteEvt(EVENT *e)
+bool DataDebug::WriteEvt(const EVENT *e)
 {
     cout << "WRITE_EVENT #" << GetRunId() << " (" << e->EventNum << ")" << endl;
Index: /trunk/FACT++/src/DataProcessorImp.h
===================================================================
--- /trunk/FACT++/src/DataProcessorImp.h	(revision 15627)
+++ /trunk/FACT++/src/DataProcessorImp.h	(revision 15628)
@@ -37,6 +37,6 @@
 
     virtual bool Open(const RUN_HEAD* h, const FAD::RunDescription &desc) = 0;
-    virtual bool WriteEvt(EVENT *) = 0;
-    virtual bool Close(RUN_TAIL * = 0) = 0;
+    virtual bool WriteEvt(const EVENT *) = 0;
+    virtual bool Close(const RUN_TAIL * = 0) = 0;
 
     const std::string &GetFileName() const { return fFileName; }
@@ -62,6 +62,6 @@
 
     bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
-    bool WriteEvt(EVENT *e);
-    bool Close(RUN_TAIL * = 0);
+    bool WriteEvt(const EVENT *e);
+    bool Close(const RUN_TAIL * = 0);
 };
 
@@ -71,5 +71,5 @@
     DataDebug(const std::string &path, uint64_t night, uint32_t id, MessageImp &imp) : DataDump(path, night, id, imp) { }
 
-    bool WriteEvt(EVENT *e);
+    bool WriteEvt(const EVENT *e);
 };
 
Index: /trunk/FACT++/src/DataWriteFits.cc
===================================================================
--- /trunk/FACT++/src/DataWriteFits.cc	(revision 15627)
+++ /trunk/FACT++/src/DataWriteFits.cc	(revision 15628)
@@ -198,5 +198,5 @@
 //! @param e the pointer to the EVENT
 //
-bool DataWriteFits::WriteEvt(EVENT *e)
+bool DataWriteFits::WriteEvt(const EVENT *e)
 {
     if (!fFile.AddRow())
@@ -227,10 +227,10 @@
     const size_t sz = sizeof(EVENT) + sizeof(e->StartPix)*e->Roi+sizeof(e->StartTM)*realRoiTM; //ETIENNE from RoiTm to Roi
 
-    const vector<char> data = fConv->ToFits(reinterpret_cast<char*>(e)+4, sz-4);
+    const vector<char> data = fConv->ToFits(reinterpret_cast<const char*>(e)+4, sz-4);
 
     return fFile.WriteData(data.data(), data.size());
 }
 
-bool DataWriteFits::WriteFooter(RUN_TAIL */*rt*/)
+bool DataWriteFits::WriteFooter(const RUN_TAIL */*rt*/)
 {
     try
@@ -288,5 +288,5 @@
 //! @param rt the pointer to the RUN_TAIL data structure
 //
-bool DataWriteFits::Close(RUN_TAIL *rt)
+bool DataWriteFits::Close(const RUN_TAIL *rt)
 {
     if (!fFile.IsOpen())
Index: /trunk/FACT++/src/DataWriteFits.h
===================================================================
--- /trunk/FACT++/src/DataWriteFits.h	(revision 15627)
+++ /trunk/FACT++/src/DataWriteFits.h	(revision 15628)
@@ -23,5 +23,5 @@
         void WriteKey(const string &name, const int idx, const T &value, const string &comment);
 
-    bool WriteFooter(RUN_TAIL *rt);
+    bool WriteFooter(const RUN_TAIL *rt);
 
     virtual int GetDrsStep() const { return -1; }
@@ -36,6 +36,6 @@
 
     bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
-    bool WriteEvt(EVENT *e);
-    bool Close(RUN_TAIL *rt = 0);
+    bool WriteEvt(const EVENT *e);
+    bool Close(const RUN_TAIL *rt = 0);
 };
 
Index: /trunk/FACT++/src/DataWriteFits2.cc
===================================================================
--- /trunk/FACT++/src/DataWriteFits2.cc	(revision 15627)
+++ /trunk/FACT++/src/DataWriteFits2.cc	(revision 15628)
@@ -209,5 +209,5 @@
 //! @param e the pointer to the EVENT
 //
-bool DataWriteFits2::WriteEvt(EVENT *e)
+bool DataWriteFits2::WriteEvt(const EVENT *e)
 {
     if (e->TriggerType && !(e->TriggerType & FAD::EventHeader::kAll))
@@ -237,5 +237,5 @@
     try
     {
-        fFile.WriteRow(reinterpret_cast<char*>(e)+4, sz-4);
+        fFile.WriteRow(reinterpret_cast<const char*>(e)+4, sz-4);
     }
     catch (const exception &ex)
@@ -256,5 +256,5 @@
 }
 
-void DataWriteFits2::WriteFooter(RUN_TAIL */*rt*/)
+void DataWriteFits2::WriteFooter(const RUN_TAIL */*rt*/)
 {
     //FIXME shouldn't we convert start and stop time to MjD first ?
@@ -292,5 +292,5 @@
 //! @param rt the pointer to the RUN_TAIL data structure
 //
-bool DataWriteFits2::Close(RUN_TAIL *rt)
+bool DataWriteFits2::Close(const RUN_TAIL *rt)
 {
     if (!fFile.is_open())
Index: /trunk/FACT++/src/DataWriteFits2.h
===================================================================
--- /trunk/FACT++/src/DataWriteFits2.h	(revision 15627)
+++ /trunk/FACT++/src/DataWriteFits2.h	(revision 15628)
@@ -17,5 +17,5 @@
 
     void WriteHeader(const RUN_HEAD* h, const FAD::RunDescription &d);
-    void WriteFooter(RUN_TAIL *rt);
+    void WriteFooter(const RUN_TAIL *rt);
 
     virtual int GetDrsStep() const { return -1; }
@@ -28,6 +28,6 @@
 
     bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
-    bool WriteEvt(EVENT *e);
-    bool Close(RUN_TAIL *rt = 0);
+    bool WriteEvt(const EVENT *e);
+    bool Close(const RUN_TAIL *rt = 0);
 
     Time GetTstart() const { return Time(fTstart[0], fTstart[1]); }
Index: /trunk/FACT++/src/DataWriteRaw.cc
===================================================================
--- /trunk/FACT++/src/DataWriteRaw.cc	(revision 15627)
+++ /trunk/FACT++/src/DataWriteRaw.cc	(revision 15628)
@@ -79,14 +79,14 @@
 }
 
-bool DataWriteRaw::WriteEvt(EVENT *evt)
+bool DataWriteRaw::WriteEvt(const EVENT *evt)
 {
     const int sh = sizeof(EVENT)-2 + NPIX*evt->Roi*2;
 
     WriteBlockHeader(kEvent, 1, fCounter++, sh);
-    fOut.write(reinterpret_cast<char*>(evt)+2, sh);
+    fOut.write(reinterpret_cast<const char*>(evt)+2, sh);
     return true;
 }
 
-bool DataWriteRaw::Close(RUN_TAIL *tail)
+bool DataWriteRaw::Close(const RUN_TAIL *tail)
 {
     WriteBlockHeader(kEndOfFile, 0, 0, 0);
@@ -97,5 +97,5 @@
 
         WriteValue(uint32_t(1));
-        fOut.write(reinterpret_cast<char*>(tail), sizeof(RUN_TAIL));
+        fOut.write(reinterpret_cast<const char*>(tail), sizeof(RUN_TAIL));
     }
 
Index: /trunk/FACT++/src/DataWriteRaw.h
===================================================================
--- /trunk/FACT++/src/DataWriteRaw.h	(revision 15627)
+++ /trunk/FACT++/src/DataWriteRaw.h	(revision 15628)
@@ -82,6 +82,6 @@
 
     bool Open(const RUN_HEAD *h, const FAD::RunDescription &d);
-    bool WriteEvt(EVENT *evt);
-    bool Close(RUN_TAIL *tail= 0);
+    bool WriteEvt(const EVENT *evt);
+    bool Close(const RUN_TAIL *tail= 0);
 };
 
