Changeset 11374 for trunk/FACT++/src


Ignore:
Timestamp:
07/13/11 14:56:04 (13 years ago)
Author:
tbretz
Message:
Set default run-number to 1; renamed TriggerId to EventCounter
File:
1 edited

Legend:

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

    r11357 r11374  
    5555    // The constructor is prvate to force the obtained pointer to be shared
    5656    tcp_connection(ba::io_service& ioservice, int boardid) : ba::ip::tcp::socket(ioservice),
    57         fBoardId(boardid), fTriggerSendData(ioservice)
     57        fBoardId(boardid), fRamRoi(kNumChannels), fTriggerSendData(ioservice)
    5858    {
    5959    }
     
    7474    FAD::ChannelHeader fChHeader[kNumChannels];
    7575
    76     uint16_t fRamRoi[kNumChannels];
     76    vector<uint16_t> fRamRoi;
    7777
    7878    ba::deadline_timer fTriggerSendData;
     
    232232                break;
    233233
    234             case kCmdResetTriggerId:
     234            case kCmdResetEventCounter:
    235235                cout << "-> ResetId " << fBoardId << endl;
    236236                fHeader.fEventCounter = 0;
     
    346346        fHeader.fVersion = 0x104;
    347347        fHeader.fBoardId = (fBoardId%10) | ((fBoardId/10)<<8);
    348         fHeader.fRunNumber = 1;
     348        fHeader.fRunNumber = 0;
    349349        fHeader.fDNA = reinterpret_cast<uint64_t>(this);
    350350        fHeader.fTriggerGeneratorPrescaler = 100;
Note: See TracChangeset for help on using the changeset viewer.