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/releaseNotes.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -466,3 +466,4 @@ This file describes the main feature changes for each readout.exe released versi
466
466
- Updated configuration parameters:
467
467
- equipment-*.verbose: adds some extra verbosity.
468
468
- equipment-*.ctpMode: enables CTP mode, data is discarded until start of run detected in RDH detector field pattern, and after corresponding end of run is detected.
469
+
- consumer-fileRecorder-*.tfMax: when set, recording will stop after reaching given number of timeframes.
theLog->log(LogInfoDevel_(3007), "Maximum number of TF in file reached");
102
+
}
103
+
isFull = true;
104
+
close();
105
+
return Status::FileLimitsReached;
106
+
}
91
107
if (fp == NULL) {
92
108
return Status::Error;
93
109
}
@@ -113,6 +129,10 @@ class FileHandle
113
129
unsignedlonglong maxFileSize = 0; // max number of bytes to write to file (0=no limit)
114
130
int counterPages = 0; // number of pages received so far
115
131
int maxPages = 0; // max number of pages accepted by recorder (0=no limit)
132
+
uint64_t lastTFid = undefinedTimeframeId; // id of last TF written
133
+
int counterTF = 0; // number of TF received so far
134
+
int maxTF = 0; // max number of timeframes accepted by recorder (0=no limit)
135
+
116
136
FILE* fp = NULL; // handle to file for I/O
117
137
InfoLogger* theLog = nullptr; // handle to infoLogger for messages
118
138
bool isFull = false; // flag set when maximum file size reached
@@ -165,6 +185,14 @@ class ConsumerFileRecorder : public Consumer
165
185
}
166
186
}
167
187
188
+
// configuration parameter: | consumer-fileRecorder-* | tfMax | int | 0 | Maximum number of timeframes accepted by recorder. If zero (default), no maximum set.|
189
+
maxFileTF = 0;
190
+
if (cfg.getOptionalValue<int>(cfgEntryPoint + ".tfMax", maxFileTF) == 0) {
// configuration parameter: | consumer-fileRecorder-* | dataBlockHeaderEnabled | int | 0 | Enable (1) or disable (0) the writing to file of the internal readout header (Readout DataBlock.h) between the data pages, to easily navigate through the file without RDH decoding. If disabled, the raw data pages received from CRU are written without further formatting. |
0 commit comments