You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -382,6 +382,14 @@ In all replay modes, ReadoutEquipmentPlayer does not support LZ4 files or files
382
382
Readout can cope with input files containing data from multiple CRUs. The data pages will be split and tagged accordingly to the RDH fields (respecting the "1 single link per page" CRU specification).
383
383
384
384
385
+
### Bookkeeping
386
+
387
+
Readout can store runtime statistics in O2 Bookeeping. See the readout.logbook* configuration variables.
388
+
At runtime, the run number is provided by the O2 Control System when executing the START command.
389
+
When running from the command line, a run number can be set using the O2_RUN environment variable.
390
+
In interactive mode, the value is automatically incremented with successive START/STOP sequences.
391
+
392
+
385
393
### Frequently asked questions
386
394
387
395
The [howto guide](howto.md) documents some typical use cases and will be extended according to users feedback.
Copy file name to clipboardExpand all lines: doc/releaseNotes.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -570,3 +570,6 @@ This file describes the main feature changes for each readout.exe released versi
570
570
- Added o2-readout-monitor-memory: to view in real time state of data pages.
571
571
- Added consistency check of orbit vs timestamp when large gas in TF ids detected.
572
572
- Updated configuration parameters documentation.
573
+
574
+
## next version
575
+
- When running from the command line, the environment variable O2_RUN can be used to set the run number. It is set to 0 by default, i.e. undefined run number.
theLog.log(LogErrorDevel_(3210), "Failed to update logbook: %s", ex.what());
243
+
} catch (...) {
244
+
theLog.log(LogErrorDevel_(3210), "Failed to update logbook: unknown exception");
245
+
}
246
+
if (!isOk) {
247
+
// closing logbook immediately
248
+
logbookHandle = nullptr;
249
+
theLog.log(LogErrorSupport_(3210), "Logbook now disabled");
250
+
break;
251
+
}
249
252
}
250
253
publishRequest = 0;
251
254
}
@@ -1357,6 +1360,17 @@ int Readout::_configure(const boost::property_tree::ptree& properties)
1357
1360
1358
1361
intReadout::_start()
1359
1362
{
1363
+
// set run number for logs
1364
+
theLogContext.setField(InfoLoggerContext::FieldName::Run, std::to_string(occRunNumber)); // this works also for undefinedRunNumber, 0 -> empty field in log API
0 commit comments