Changeset 16579 for trunk/FACT++


Ignore:
Timestamp:
06/02/13 15:48:13 (11 years ago)
Author:
tbretz
Message:
Reset the whole memory... this should relly not make a big difference; removed Errors and SoftTrig.
File:
1 edited

Legend:

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

    r16569 r16579  
    115115
    116116    timeval   time;
    117     uint8_t   Errors[4];
    118117
    119118    PEVNT_HEADER *FADhead; // Pointer to the whole allocated memory
     
    130129    {
    131130        //flag all boards as unused
    132         std::fill(board, board+NBOARDS, -1);
     131        std::fill(board,  board+NBOARDS, -1);
    133132    }
    134133    /*
     
    177176        fEvent = reinterpret_cast<EVENT*>(FADhead+NBOARDS);
    178177
    179         memset(fEvent->Adc_Data, 0, (NPIX+NTMARK)*2*nRoi);
     178        memset(FADhead, 0, (NPIX+NTMARK)*2*nRoi+NBOARDS*sizeof(PEVNT_HEADER)+sizeof(EVENT));
    180179
    181180        //flag all pixels as unused, flag all TMark as unused
     
    183182        std::fill(fEvent->StartTM,  fEvent->StartTM +NTMARK, -1);
    184183
    185         fEvent->SoftTrig    = 0;
    186184        fEvent->Roi         = nRoi;
    187185        fEvent->RoiTM       = nRoiTM;
Note: See TracChangeset for help on using the changeset viewer.