Index: /trunk/FACT++/src/EventBuilderWrapper.h
===================================================================
--- /trunk/FACT++/src/EventBuilderWrapper.h	(revision 11581)
+++ /trunk/FACT++/src/EventBuilderWrapper.h	(revision 11582)
@@ -1,3 +1,3 @@
-#ifndef FACT_EventBuilderWrapper
+f#ifndef FACT_EventBuilderWrapper
 #define FACT_EventBuilderWrapper
 
@@ -407,6 +407,4 @@
     }
 
-        int fRoiTM;
-
     // --------------------------------------------------------------------------
     //
@@ -480,8 +478,4 @@
         fmt << ";S:" << h->NPix*h->Nroi + h->NTm*h->NroiTM; // int16_t Adc_Data[]
         */
-        fRoiTM = h->NroiTM;
-
-        cout << "==> " << Converter::ToFormat(dataTypes) << endl;
-
         fConv = new Converter(Converter::ToFormat(dataTypes));
 
@@ -652,7 +646,7 @@
 
         // FIXME: Get NPIX and NTMARK from header
-        const size_t sz = sizeof(EVENT) + sizeof(e->StartPix)*e->Roi+sizeof(e->StartTM)*fRoiTM;
-
-        const vector<char> data = fConv->ToFits(reinterpret_cast<char*>(e)+2, sz-2);
+        const size_t sz = sizeof(EVENT) + sizeof(e->StartPix)*e->Roi+sizeof(e->StartTM)*e->RoiTM;
+
+        const vector<char> data = fConv->ToFits(reinterpret_cast<char*>(e)+4, sz-4);
 
         // column size pointer
Index: /trunk/FACT++/src/FAD.h
===================================================================
--- /trunk/FACT++/src/FAD.h	(revision 11581)
+++ /trunk/FACT++/src/FAD.h	(revision 11582)
@@ -115,5 +115,6 @@
 
 typedef struct {
-  uint16_t Roi ;            // #slices per pixel (same for all pixels and tmarks)
+  uint16_t Roi ;            // #slices per pixel (same for all pixels)
+  uint16_t RoiTM ;          // #slices per pixel (same for all tmarks) [ 0 or Roi ]
   uint32_t EventNum ;       // EventNumber as from FTM
   uint16_t TriggerType ;    // Trigger Type from FTM
