Ignore:
Timestamp:
03/02/11 13:35:50 (11 years ago)
Author:
ogrimm
Message:
Implemented new FAD data format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADBoard.h

    r10164 r10212  
    3838
    3939        struct BoardStatus {
    40           unsigned short BoardID;
    41           unsigned short FirmwareRevision;
    42           unsigned long TriggerID;
    43           unsigned char TriggerType;
    44           unsigned short TriggerCell[NChips];
    45           unsigned short ROI[NChips][NChannels];
    46           unsigned short DAC[NDAC];
     40          uint16_t BoardID;
     41          uint64_t DNA;
     42          uint16_t FirmwareRevision;
     43          uint32_t BoardTime;
     44          uint32_t EventCounter;
     45          uint32_t TriggerID;
     46          uint16_t TriggerType;
     47          uint16_t TriggerCRC;
     48          uint16_t TriggerCell[NChips];
     49          float Frequency;
     50          bool Lock[NChips];
     51          uint16_t PhaseShift;
     52          uint16_t ROI[NChips][NChannels];
     53          uint16_t DAC[NDAC];
    4754          float Temp[NTemp];
    4855          struct timeval Update;
     
    5158        short Data[NChips][NChannels][NBins];
    5259        long int Sum[NChips][NChannels][NBins];
    53         short Baseline[NChips][NChannels][NBins];
    54         double Gain[NChips][NChannels][NBins];
    55         double SecondaryBaseline[NChips][NChannels][NBins];
    56         float ACalibTemp;
    57         time_t ACalibTime;
    5860
     61        struct CalibData {
     62          uint64_t DNA;
     63          short Baseline[NChips][NChannels][NBins];
     64          double Gain[NChips][NChannels][NBins];
     65          double Secondary[NChips][NChannels][NBins];
     66          float Temp;
     67          float Frequency;
     68          time_t Time;
     69        } ACalib;
    5970
    6071        void Send(const void *, size_t);
Note: See TracChangeset for help on using the changeset viewer.