Ignore:
Timestamp:
May 2, 2011, 2:56:49 PM (9 years ago)
Author:
neise
Message:
supports new FAD event format:
setting runnumber
resetting internat trigger ID
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADBoard.cc

    r10291 r10504  
    457457          Status.EventCounter = ntohl(Header->fad_evt_counter);
    458458          Status.TriggerID = ntohl(Header->trigger_id);
     459          Status.Runnumber = ntohl(Header->runnumber);
    459460          Status.TriggerType = ntohs(Header->trigger_type);
    460461          Status.TriggerCRC = ntohs(Header->trigger_crc);
     
    496497                  // Extract ADC data (stored in 12 bit signed twis complement with out-of-range-bit and leading zeroes)
    497498                  for (int i=0; i<Status.ROI[Chip][Chan]; i++) {
    498                           Buf = ntohs(Channel[Chip+NChips*Chan]->adc_data[i]);
     499                          Buf = (Channel[Chip+NChips*Chan]->adc_data[i]);
    499500                          (Buf <<= 4) >>= 4;                    //delete the sign-bit by shifting left and shift back
    500501                          Data[Chip][Chan][i] = Buf;                                   
Note: See TracChangeset for help on using the changeset viewer.