Changeset 15610
- Timestamp:
- 05/16/13 15:16:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r15606 r15610 112 112 Queue<tuple<Time,bool,FAD::EventHeader>> fDimQueue2; 113 113 Queue<pair<Time,array<uint32_t,4>>> fDimQueue3; 114 Queue<pair<Time,array<uint16_t,2>>> fDimQueue4; 114 115 115 116 bool fDebugStream; … … 271 272 fDimQueue2(std::bind(&EventBuilderWrapper::procHeader, this, placeholders::_1)), 272 273 fDimQueue3(std::bind(&EventBuilderWrapper::updateEvents, this, placeholders::_1)), 274 fDimQueue4(std::bind(&EventBuilderWrapper::updateRoi, this, placeholders::_1)), 273 275 fDebugStream(false), fDebugRead(false), fDebugLog(false), fNightAsInt(0) 274 276 { … … 421 423 { 422 424 fMsg.Message("Signal abort to EventBuilder thread..."); 423 g_r unStat = kAbort;425 g_reset = 1; 424 426 } 425 427 … … 903 905 array<uint16_t,2> fVecRoi; 904 906 907 void updateRoi(const pair<Time, array<uint16_t,2>> &roi) 908 { 909 fDimRoi.setData(roi.second.data(), sizeof(uint16_t)*2); 910 fDimRoi.Update(roi.first); 911 } 912 905 913 int eventCheck(uint32_t runNr, PEVNT_HEADER *fadhd, EVENT *event, int /*iboard*/) 906 914 { … … 920 928 921 929 if (roi!=fVecRoi) 922 923 Update(fDimRoi, roi);930 { 931 fDimQueue4.post(make_pair(Time(), roi)); 924 932 fVecRoi = roi; 925 933 }
Note:
See TracChangeset
for help on using the changeset viewer.