Skip to content

Commit bbcf7bf

Browse files
committed
[trig-monitor] TOF trigger counter is 16bits
1 parent 4b2c72c commit bbcf7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cru/CruBar.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ Cru::TriggerMonitoringInfo CruBar::monitorTriggers(bool updateable)
636636

637637
uint64_t tofDiff;
638638
if (tofCountPrev > tofCount) {
639-
tofDiff = tofCount + pow(2, 32) - tofCountPrev;
639+
tofDiff = tofCount + pow(2, 16) - tofCountPrev;
640640
} else {
641641
tofDiff = tofCount - tofCountPrev;
642642
}

0 commit comments

Comments
 (0)