Skip to content

Commit e93913f

Browse files
committed
check max orbit
1 parent 609ee9d commit e93913f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/readRaw.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ int main(int argc, const char* argv[])
4444
uint32_t timeframePeriodOrbits = 0;
4545
uint32_t firstTimeframeHbOrbitBegin = 0;
4646
bool isDefinedFirstTimeframeHbOrbitBegin = 0;
47+
uint32_t maxOrbit = 0;
4748

4849
// parse input arguments
4950
// format is a list of key=value pairs
@@ -399,6 +400,10 @@ int main(int argc, const char* argv[])
399400
// printf("%08X : %03X\n", h.getTriggerOrbit(), h.getTriggerBC());
400401
}
401402

403+
if (h.getTriggerOrbit() > maxOrbit) {
404+
maxOrbit = h.getTriggerOrbit();
405+
}
406+
402407
if (dumpDataInline) {
403408
long nBytes = h.getOffsetNextPacket();
404409
for (long ix = 0; ix < nBytes; ix++) {
@@ -452,6 +457,9 @@ int main(int argc, const char* argv[])
452457
ERRLOG("%lu RDH blocks\n", RDHBlockCount);
453458
}
454459
ERRLOG("%lu bytes\n", fileOffset);
460+
if (checkContinuousTriggerOrder) {
461+
ERRLOG("max orbit 0x%X\n", maxOrbit);
462+
}
455463

456464
// check file status
457465
if (feof(fp)) {

0 commit comments

Comments
 (0)