Changeset 10876 for trunk/FACT++/src


Ignore:
Timestamp:
05/27/11 17:19:41 (13 years ago)
Author:
tbretz
Message:
Implemented command to set run number.
File:
1 edited

Legend:

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

    r10864 r10876  
    8989        fHeader.fEventCounter++;
    9090        fHeader.fTimeStamp = uint32_t((Time(Time::utc).UnixTime()-fStartTime)*10000);
     91        fHeader.fRunNumber = fRunNumber;
    9192
    9293
     
    227228                cout << "-> Trigger" << endl;
    228229                SendData();
     230                break;
     231
     232            case kCmdWriteRunNumberMSW:
     233                fRunNumber &= 0xffff;
     234                fRunNumber |= fBufCommand[0]<<16;
     235                cout << "-> RunNumber MSW" << endl;
     236                break;
     237
     238            case kCmdWriteRunNumberLSW:
     239                fRunNumber &= 0xffff0000;
     240                fRunNumber |= fBufCommand[0];
     241                cout << "-> RunNumber LSW" << endl;
    229242                break;
    230243
Note: See TracChangeset for help on using the changeset viewer.