Changeset 19027 for trunk/FACT++
- Timestamp:
- 06/25/18 10:11:56 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.cc
r18987 r19027 654 654 if (newrun) 655 655 { 656 // Since we have started a new run, we know already when to close the657 // previous run in terms of number of events658 actrun->maxEvt = actrun->lastEvt;659 660 656 factPrintf(MessageImp::kInfo, "New run %d (evt=%d) registered with roi=%d(%d), prev=%d", 661 657 rd.H.runnumber, rd.H.fad_evt_counter, nRoi[0], nRoi[8], actrun->runId); … … 842 838 } 843 839 844 factPrintf(MessageImp::kInfo, "Opened new file for run %d (evt=%d)", evt->runNum, evt->evNum);840 factPrintf(MessageImp::kInfo, "Opened new file for data from run %d (evt=%d)", evt->runNum, evt->evNum); 845 841 run.fileStat = kFileOpen; 846 842 } … … 880 876 vector<string> reason; 881 877 if (evt->closeRequest&kRequestManual) 882 reason.emplace_back("close requested");878 reason.emplace_back("close was requested"); 883 879 if (evt->closeRequest&kRequestTimeout) 884 reason.emplace_back("receive time out");880 reason.emplace_back("receive timed out"); 885 881 if (evt->closeRequest&kRequestConnectionChange) 886 882 reason.emplace_back("connection changed"); … … 888 884 reason.emplace_back("event check failed"); 889 885 if (evt->closeRequest&kRequestMaxTimeReached) 890 reason.push_back(to_string(run.closeTime-run.openTime)+"s reached");886 reason.push_back(to_string(run.closeTime-run.openTime)+"s had been reached"); 891 887 if (evt->closeRequest&kRequestMaxEvtsReached) 892 reason.push_back(to_string(run.maxEvt)+" evts reached");888 reason.push_back(to_string(run.maxEvt)+" evts had been reached"); 893 889 if (!rc1) 894 890 reason.emplace_back("runWrite failed"); 895 891 896 892 const string str = boost::algorithm::join(reason, ", "); 897 factPrintf(MessageImp::kInfo, "File closed because %s", str.c_str());893 factPrintf(MessageImp::kInfo, "File %d was closed because %s", run.runId, str.c_str()); 898 894 899 895 return true;
Note:
See TracChangeset
for help on using the changeset viewer.