- Timestamp:
- 05/24/13 14:04:48 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/FACT++/src/EventBuilder.cc ¶
r16103 r16108 36 36 void runFinished(); 37 37 void factStat(GUI_STAT gj); 38 inteventCheck(const shared_ptr<EVT_CTRL2> &evt);38 bool eventCheck(const shared_ptr<EVT_CTRL2> &evt); 39 39 void debugHead(void *buf); 40 40 … … 806 806 if (run->closeRequest&kRequestConnectionChange) 807 807 reason.push_back("connection changed"); 808 if (run->closeRequest&kRequestEventCheckFailed) 809 reason.push_back("event check failed"); 808 810 } 809 811 if (!cond4) … … 828 830 evt->fEvent->BoardTime[ib] = evt->FADhead.get()[ib].time; 829 831 830 const int rc = eventCheck(evt); 831 if (rc < 0) 832 if (!eventCheck(evt)) 833 { 834 evt->runCtrl->closeRequest = kRequestEventCheckFailed; 832 835 return; 836 } 833 837 } 834 838 -
TabularUnified trunk/FACT++/src/EventBuilder.h ¶
r16105 r16108 35 35 kRequestManual = 1, 36 36 kRequestTimeout = 2, 37 kRequestConnectionChange = 4 37 kRequestConnectionChange = 4, 38 kRequestEventCheckFailed = 8 38 39 }; 39 40 -
TabularUnified trunk/FACT++/src/EventBuilderWrapper.h ¶
r16107 r16108 609 609 } 610 610 611 inteventCheck(const shared_ptr<EVT_CTRL2> &evt)611 bool eventCheck(const shared_ptr<EVT_CTRL2> &evt) 612 612 { 613 613 const PEVNT_HEADER *fadhd = evt->FADhead.get(); … … 640 640 { 641 641 fMsg.Error("Inconsistency in FAD status detected.... closing run."); 642 evt->runCtrl->maxEvt = 0; 643 return -1; 642 return false; 644 643 } 645 644 … … 647 646 { 648 647 fMsg.Error("Inconsistent run number detected.... closing run."); 649 evt->runCtrl->maxEvt = 0; 650 return -1; 648 return false; 651 649 } 652 650 … … 662 660 { 663 661 fMsg.Error("Inconsistent FAD event number detected.... closing run."); 664 evt->runCtrl->maxEvt = 0; 665 return -1; 662 return false; 666 663 } 667 664 … … 669 666 { 670 667 fMsg.Error("Inconsistent FTM trigger number detected.... closing run."); 671 evt->runCtrl->maxEvt = 0; 672 return -1; 668 return false; 673 669 } 674 670 … … 676 672 { 677 673 fMsg.Error("Inconsistent phase shift detected.... closing run."); 678 evt->runCtrl->maxEvt = 0; 679 return -1; 674 return false; 680 675 } 681 676 … … 683 678 { 684 679 fMsg.Error("Inconsistent DAC values detected.... closing run."); 685 evt->runCtrl->maxEvt = 0; 686 return -1; 680 return false; 687 681 } 688 682 … … 690 684 { 691 685 fMsg.Error("Inconsistent trigger type detected.... closing run."); 692 evt->runCtrl->maxEvt = 0; 693 return -1; 686 return false; 694 687 } 695 688 } … … 700 693 // need gotNewRun/closedRun to know it is finished 701 694 702 return 0;695 return true; 703 696 } 704 697 … … 1241 1234 } 1242 1235 1243 inteventCheck(const shared_ptr<EVT_CTRL2> &evt)1236 bool eventCheck(const shared_ptr<EVT_CTRL2> &evt) 1244 1237 { 1245 1238 return EventBuilderWrapper::This->eventCheck(evt);
Note:
See TracChangeset
for help on using the changeset viewer.