Changeset 11209 for trunk/FACT++


Ignore:
Timestamp:
06/29/11 15:14:43 (13 years ago)
Author:
tbretz
Message:
Added trigger id and fake temperature.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fad.cc

    r11201 r11209  
    8787        fHeader.fPackageLength = sizeof(EventHeader)/2+1;
    8888        fHeader.fEventCounter++;
     89        fHeader.fTriggerId = fHeader.fEventCounter;
    8990        fHeader.fTimeStamp = uint32_t((Time(Time::utc).UnixTime()-fStartTime)*10000);
     91
     92        for (int i=0; i<FAD::kNumTemp; i++)
     93            fHeader.fTempDrs[i] = (42.+fBoardId/40.+float(rand())/RAND_MAX*5)*16;
    9094
    9195        fBuffer.resize(0);
Note: See TracChangeset for help on using the changeset viewer.