Changeset 11259


Ignore:
Timestamp:
07/06/11 10:11:12 (13 years ago)
Author:
ogrimm
Message:
Bug fixed that caused wrong calculation of the number of bytes written to file if several boards where active
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FAD.cc

    r11232 r11259  
    10671067
    10681068        // Write event header, trigger cells and ADC data to file
    1069         if (write(Datafile, EHeader, sizeof(EventHeader)+NChips*sizeof(int)+ActiveBoards.size()*NChips*NChannels*NBins*sizeof(short)) == -1) Error = errno;
     1069        if (write(Datafile, EHeader, sizeof(EventHeader)+FileRHeader.NBoards*NChips*(sizeof(int)+NChannels*NBins*sizeof(short))) == -1) Error = errno;
    10701070
    10711071        NumEvents++;
Note: See TracChangeset for help on using the changeset viewer.