Changeset 11582


Ignore:
Timestamp:
07/25/11 12:18:52 (13 years ago)
Author:
tbretz
Message:
The EVENT structure now gives the RoiTM
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r11565 r11582  
    1 #ifndef FACT_EventBuilderWrapper
     1f#ifndef FACT_EventBuilderWrapper
    22#define FACT_EventBuilderWrapper
    33
     
    407407    }
    408408
    409         int fRoiTM;
    410 
    411409    // --------------------------------------------------------------------------
    412410    //
     
    480478        fmt << ";S:" << h->NPix*h->Nroi + h->NTm*h->NroiTM; // int16_t Adc_Data[]
    481479        */
    482         fRoiTM = h->NroiTM;
    483 
    484         cout << "==> " << Converter::ToFormat(dataTypes) << endl;
    485 
    486480        fConv = new Converter(Converter::ToFormat(dataTypes));
    487481
     
    652646
    653647        // FIXME: Get NPIX and NTMARK from header
    654         const size_t sz = sizeof(EVENT) + sizeof(e->StartPix)*e->Roi+sizeof(e->StartTM)*fRoiTM;
    655 
    656         const vector<char> data = fConv->ToFits(reinterpret_cast<char*>(e)+2, sz-2);
     648        const size_t sz = sizeof(EVENT) + sizeof(e->StartPix)*e->Roi+sizeof(e->StartTM)*e->RoiTM;
     649
     650        const vector<char> data = fConv->ToFits(reinterpret_cast<char*>(e)+4, sz-4);
    657651
    658652        // column size pointer
  • trunk/FACT++/src/FAD.h

    r11546 r11582  
    115115
    116116typedef struct {
    117   uint16_t Roi ;            // #slices per pixel (same for all pixels and tmarks)
     117  uint16_t Roi ;            // #slices per pixel (same for all pixels)
     118  uint16_t RoiTM ;          // #slices per pixel (same for all tmarks) [ 0 or Roi ]
    118119  uint32_t EventNum ;       // EventNumber as from FTM
    119120  uint16_t TriggerType ;    // Trigger Type from FTM
Note: See TracChangeset for help on using the changeset viewer.