Commit 4eaf687f authored by legoc's avatar legoc
Browse files

Changed size of the rollover member of Event from 16 to 32 to manage special...

Changed size of the rollover member of Event from 16 to 32 to manage special cases when the absolute time is greater than 48bits nanoseconds
parent 2522fb41
......@@ -34,7 +34,7 @@ time_type Event::time() const {
void Event::setTime(time_type value) {
timestamp = (value & 0xFFFFFFFF);
rollover = ((value >> 32) & 0xFFFF);
rollover = ((value >> 32) & 0xFFFFFFFF);
}
std::string eventColumnsToString(BoardType type) {
......
......@@ -34,7 +34,8 @@ struct Event {
uint8_t crate;
uint8_t board;
uint16_t channel;
uint16_t rollover;
// Rollover on 32 bits to manage special cases when absolute time is greater than 48 bits nanoseconds (ex: C1724_PHA).
uint32_t rollover;
uint32_t timestamp;
uint32_t data[2];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment