Changeset 15605 for trunk/FACT++/src
- Timestamp:
- 05/15/13 13:31:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r15514 r15605 85 85 uint32_t fLastOpened; 86 86 uint32_t fLastClosed; 87 uint32_t fNumEvts[4];87 array<uint32_t,4> fNumEvts; 88 88 89 89 DimWriteStatistics fDimWriteStats; … … 111 111 Queue<pair<Time,GUI_STAT>> fDimQueue1; 112 112 Queue<tuple<Time,bool,FAD::EventHeader>> fDimQueue2; 113 Queue<pair<Time,array<uint32_t,4>>> fDimQueue3; 113 114 114 115 bool fDebugStream; … … 269 270 fDimQueue1(std::bind(&EventBuilderWrapper::factStatSend, this, placeholders::_1)), 270 271 fDimQueue2(std::bind(&EventBuilderWrapper::procHeader, this, placeholders::_1)), 272 fDimQueue3(std::bind(&EventBuilderWrapper::updateEvents, this, placeholders::_1)), 271 273 fDebugStream(false), fDebugRead(false), fDebugLog(false), fNightAsInt(0) 272 274 { … … 276 278 This = this; 277 279 278 memset(fNumEvts , 0, sizeof(fNumEvts));280 memset(fNumEvts.data(), 0, sizeof(fNumEvts)); 279 281 fDimEvents.Update(fNumEvts); 280 282 … … 637 639 vector<DataProcessorImp*> fFiles; 638 640 641 void updateEvents(const pair<Time,array<uint32_t>,4>> &stat) 642 { 643 fDimEvents.setData(stat.second.data(), sizeof(uint32_t)*4); 644 fDimEvents.Update(stat.first); 645 } 646 639 647 FileHandle_t runOpen(uint32_t runid, RUN_HEAD *h, size_t) 640 648 { … … 710 718 711 719 fNumEvts[kCurrent] = 0; 712 fDim Events.Update(fNumEvts);720 fDimQueue3.post(fNumEvts); 713 721 // fDimCurrentEvent.Update(uint32_t(0)); 714 722 … … 736 744 if (newt>oldt+boost::posix_time::seconds(1)) 737 745 { 738 fDimEvents.Update(fNumEvts); 746 fDimQueue3.post(fNumEvts); 747 //fDimEvents.Update(fNumEvts); 739 748 oldt = newt; 740 749 } … … 796 805 UpdateRuns(); 797 806 798 fDimEvents.Update(fNumEvts); 807 fDimQueue3.post(fNumEvts); 808 //fDimEvents.Update(fNumEvts); 799 809 800 810
Note:
See TracChangeset
for help on using the changeset viewer.