Changeset 16569
- Timestamp:
- 06/02/13 02:19:43 (11 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.cc
r16531 r16569 1217 1217 if (evt && !evt->initMemory()) 1218 1218 { 1219 if (evt->reportMem) 1219 const time_t tm = time(NULL); 1220 if (evt->runCtrl->reportMem==tm) 1220 1221 continue; 1221 1222 1222 1223 factPrintf(MessageImp::kError, "No free memory left for %d (run=%d)", evt->evNum, evt->runNum); 1223 evt->r eportMem = true;1224 evt->runCtrl->reportMem = tm; 1224 1225 continue; 1225 1226 } -
trunk/FACT++/src/EventBuilder.h
r16380 r16569 49 49 int64_t runId ; // Run number 50 50 51 time_t reportMem; // initMemory has reported no memory once (set outside of class) 52 51 53 time_t openTime; // Time when first event (first board) was received 52 54 time_t lastTime; // Time when last event was received (set when first board data received) … … 67 69 std::list<std::array<int16_t,1440>> prevStart; // History for start cells of previous events (for step calibration) 68 70 69 RUN_CTRL2() : runId(-1), lastTime(0), lastEvt(0), maxEvt(1<<31), fileStat(kFileNotYetOpen)71 RUN_CTRL2() : runId(-1), reportMem(0), lastTime(0), lastEvt(0), maxEvt(1<<31), fileStat(kFileNotYetOpen) 70 72 { 71 73 // runId = -1; … … 119 121 PEVNT_HEADER *header; // Pointer to a valid header within FADhead 120 122 121 bool reportMem; // initMemory has reported no memory once (set outside of class)122 123 int closeRequest; 123 124 … … 126 127 // Be carefull with this constructor... writeEvt can seg fault 127 128 // it gets an empty runCtrl 128 EVT_CTRL2() : nBoard(0), FADhead(0), header(0), reportMem(false),closeRequest(kRequestNone)129 EVT_CTRL2() : nBoard(0), FADhead(0), header(0), closeRequest(kRequestNone) 129 130 { 130 131 //flag all boards as unused … … 138 139 }*/ 139 140 140 EVT_CTRL2(int req, const std::shared_ptr<RUN_CTRL2> &run) : nBoard(0), FADhead(0), header(0), reportMem(false),closeRequest(req), runCtrl(run)141 EVT_CTRL2(int req, const std::shared_ptr<RUN_CTRL2> &run) : nBoard(0), FADhead(0), header(0), closeRequest(req), runCtrl(run) 141 142 { 142 143 //flag all boards as unused
Note:
See TracChangeset
for help on using the changeset viewer.