Skip to content

Commit f32544e

Browse files
committed
v2.16.0
1 parent d73baad commit f32544e

File tree

6 files changed

+7
-18
lines changed

6 files changed

+7
-18
lines changed

doc/configurationParameters.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ The parameters related to 3rd-party libraries are described here for convenience
120120
| equipment-* | rdhDumpFirstInPageEnabled | int | 0 | If set, the first RDH in each data page is logged. Setting a negative number will printit only for the first N pages. |
121121
| equipment-* | rdhDumpWarningEnabled | int | 1 | If set, a log message is printed for each RDH header warning found.|
122122
| equipment-* | rdhUseFirstInPageEnabled | int | 0 or 1 | If set, the first RDH in each data page is used to populate readout headers (e.g. linkId). Default is 1 for equipments generating data with RDH, 0 otherwsise. |
123-
| equipment-* | rdhUseFirstOrbit | int | 1 | If set, first orbit received is used to compute timeframe ids. Otherwise, 0 is taken as first orbit for first timeframe. |
124123
| equipment-* | saveErrorPagesMax | int | 0 | If set, pages found with data error are saved to disk up to given maximum. |
125124
| equipment-* | saveErrorPagesPath | string | | Path where to save data pages with errors (when feature enabled). |
126125
| equipment-* | stopOnError | int | 0 | If 1, readout will stop automatically on equipment error. |

doc/releaseNotes.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,9 @@ This file describes the main feature changes for each readout.exe released versi
505505
## v2.15.2 - 08/12/2022
506506
- Added ROC link Id for some log messages, as provided from new superpage metadata link field from ROC library.
507507

508-
## v2.16.0 - 01/02/2023
508+
## next version
509509
- Superpage internal metadata not stored at beginning of page but separately in heap, by default. Behavior can be adjusted with MemoryPool::headerReservedSpace.
510510
- equipment-CruEmulator: set TF trigger type (bit 11) on new TF. Used for dropEmptyHBFramesTriggerMask tests.
511511
- Updated configuration parameters:
512512
- added consumer-fileRecorder-*.dropEmptyHBFramesTriggerMask: when using dropEmptyHBFrames = 1, keep some empty HB frames with trigger type matching given (decimal) mask.
513513
- Added support for RDHv7. Readout already accepts data from equipments with v7, but still generates data (internal sw generator) with v6, for compatibility with current software downstream.
514-
- Updated configuration parameters:
515-
- added equipment-*.rdhUseFirstOrbit: 1st orbit is used to compute TF ids (by default). Otherwise, 1st orbit assumed to be zero (as done by latest trigger firmware).

src/ReadoutEquipment.cxx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ ReadoutEquipment::ReadoutEquipment(ConfigFile& cfg, std::string cfgEntryPoint, b
141141
cfg.getOptionalValue<int>(cfgEntryPoint + ".rdhDumpFirstInPageEnabled", cfgRdhDumpFirstInPageEnabled);
142142
// configuration parameter: | equipment-* | rdhCheckFirstOrbit | int | 1 | If set, it is checked that the first orbit of all equipments and links is the same. If not, run is stopped. |
143143
cfg.getOptionalValue<int>(cfgEntryPoint + ".rdhCheckFirstOrbit", cfgRdhCheckFirstOrbit);
144-
// configuration parameter: | equipment-* | rdhUseFirstOrbit | int | 1 | If set, first orbit received is used to compute timeframe ids. Otherwise, 0 is taken as first orbit for first timeframe. |
145-
cfg.getOptionalValue<int>(cfgEntryPoint + ".rdhUseFirstOrbit", cfgRdhUseFirstOrbit);
146144
// configuration parameter: | equipment-* | rdhCheckDetectorField | int | 0 | If set, the detector field is checked and changes reported. |
147145
cfg.getOptionalValue<int>(cfgEntryPoint + ".rdhCheckDetectorField", cfgRdhCheckDetectorField);
148-
theLog.log(LogInfoDevel_(3002), "RDH settings: rdhCheckEnabled=%d rdhDumpEnabled=%d rdhDumpErrorEnabled=%d rdhDumpWarningEnabled=%d rdhUseFirstInPageEnabled=%d rdhCheckFirstOrbit=%d rdhUseFirstOrbit=%d rdhCheckDetectorField=%d", cfgRdhCheckEnabled, cfgRdhDumpEnabled, cfgRdhDumpErrorEnabled, cfgRdhDumpWarningEnabled, cfgRdhUseFirstInPageEnabled, cfgRdhCheckFirstOrbit, cfgRdhUseFirstOrbit, cfgRdhCheckDetectorField);
146+
theLog.log(LogInfoDevel_(3002), "RDH settings: rdhCheckEnabled=%d rdhDumpEnabled=%d rdhDumpErrorEnabled=%d rdhDumpWarningEnabled=%d rdhUseFirstInPageEnabled=%d rdhCheckFirstOrbit=%d rdhCheckDetectorField=%d", cfgRdhCheckEnabled, cfgRdhDumpEnabled, cfgRdhDumpErrorEnabled, cfgRdhDumpWarningEnabled, cfgRdhUseFirstInPageEnabled, cfgRdhCheckFirstOrbit, cfgRdhCheckDetectorField);
149147

150148
// configuration parameter: | equipment-* | ctpMode | int | 0 | If set, the detector field (CTP run mask) is checked. Incoming data is discarded until a new bit is set, and discarded again after this bit is unset. Automatically implies rdhCheckDetectorField=1 and rdhCheckDetectorField=1. |
151149
cfg.getOptionalValue<int>(cfgEntryPoint + ".ctpMode", cfgCtpMode);
@@ -628,22 +626,18 @@ void ReadoutEquipment::finalCounters()
628626
uint64_t ReadoutEquipment::getTimeframeFromOrbit(uint32_t hbOrbit)
629627
{
630628
if (!isDefinedFirstTimeframeHbOrbitBegin) {
631-
if (cfgRdhUseFirstOrbit) {
632-
firstTimeframeHbOrbitBegin = hbOrbit;
633-
} else {
634-
firstTimeframeHbOrbitBegin = 0;
635-
}
629+
firstTimeframeHbOrbitBegin = hbOrbit;
636630
isDefinedFirstTimeframeHbOrbitBegin = 1;
637631
bool isOk = true;
638632
gReadoutStats.mutex.lock();
639633
if (gReadoutStats.counters.firstOrbit == undefinedOrbit) {
640-
gReadoutStats.counters.firstOrbit = hbOrbit;
634+
gReadoutStats.counters.firstOrbit = firstTimeframeHbOrbitBegin;
641635
gReadoutStats.counters.notify++;
642-
} else if (gReadoutStats.counters.firstOrbit != hbOrbit) {
636+
} else if (gReadoutStats.counters.firstOrbit != firstTimeframeHbOrbitBegin) {
643637
isOk = false;
644638
}
645639
gReadoutStats.mutex.unlock();
646-
theLog.log(LogInfoDevel_(3011), "Equipment %s : first HB orbit = %X", name.c_str(), (unsigned int)hbOrbit);
640+
theLog.log(LogInfoDevel_(3011), "Equipment %s : first HB orbit = %X", name.c_str(), (unsigned int)firstTimeframeHbOrbitBegin);
647641
if (!isOk) {
648642
if (cfgRdhCheckFirstOrbit) {
649643
theLog.log(LogErrorSupport_(3241), "Equipment %s : first HB orbit is different from other equipments", name.c_str());

src/ReadoutEquipment.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ class ReadoutEquipment
176176
int cfgRdhUseFirstInPageEnabled = 0; // flag to enable reading of first RDH in page to populate readout headers
177177
int cfgRdhDumpFirstInPageEnabled = 0;// flag to enable RDH dump of first header in page
178178
int cfgRdhCheckFirstOrbit = 1; // flag to enable RDH check of first orbit is the same in all equipments
179-
int cfgRdhUseFirstOrbit = 1; // flag to use first received orbit to compute TF ids
180179
//int cfgRdhCheckPacketCounterContiguous = 1; // flag to enable checking if RDH packetCounter value contiguous (done link-by-link)
181180
int cfgRdhCheckDetectorField = 0; // flag to enable checking for changes in detector field
182181
double cfgTfRateLimit = 0; // TF rate limit, to throttle data readout

src/ReadoutVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#define READOUT_VERSION "2.16.0"
12+
#define READOUT_VERSION "2.15.2"
1313

src/readoutConfigEditor.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ set configurationParametersDescriptor {
9898
| equipment-* | rdhDumpFirstInPageEnabled | int | 0 | If set, the first RDH in each data page is logged. Setting a negative number will printit only for the first N pages. |
9999
| equipment-* | rdhDumpWarningEnabled | int | 1 | If set, a log message is printed for each RDH header warning found.|
100100
| equipment-* | rdhUseFirstInPageEnabled | int | 0 or 1 | If set, the first RDH in each data page is used to populate readout headers (e.g. linkId). Default is 1 for equipments generating data with RDH, 0 otherwsise. |
101-
| equipment-* | rdhUseFirstOrbit | int | 1 | If set, first orbit received is used to compute timeframe ids. Otherwise, 0 is taken as first orbit for first timeframe. |
102101
| equipment-* | saveErrorPagesMax | int | 0 | If set, pages found with data error are saved to disk up to given maximum. |
103102
| equipment-* | saveErrorPagesPath | string | | Path where to save data pages with errors (when feature enabled). |
104103
| equipment-* | stopOnError | int | 0 | If 1, readout will stop automatically on equipment error. |

0 commit comments

Comments
 (0)