Ignore:
Timestamp:
07/25/11 12:18:52 (13 years ago)
Author:
tbretz
Message:
The EVENT structure now gives the RoiTM
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.