Go to the documentation of this file.
11 #ifndef EventFilter_CTPPSRawToDigi_DiamondVFATFrame
12 #define EventFilter_CTPPSRawToDigi_DiamondVFATFrame
23 inline uint32_t
correctTime(
const uint32_t&
time) {
return (
time & 0xFFE7FFFF) << 2 | (
time & 0x00180000) >> 19; }
27 uint32_t
time = ((
frame.getData()[7] & 0x1f) << 16) +
frame.getData()[8];
37 return ((
frame.getData()[3] & 0x7ff) << 16) +
frame.getData()[4];
uint32_t getLeadingEdgeTime(const VFATFrame &frame)
get timing information for single leading edge
uint32_t correctTime(const uint32_t &time)
Account for MSB/LSB "HW feature" reversal in HPTDC interpolation bits.
VFATFrame::word getMultihit(const VFATFrame &frame)
flag stating whether the HPTDC channel encountered multiple hits
uint32_t getTrailingEdgeTime(const VFATFrame &frame)
get timing information for single trailing edge
uint32_t getThresholdVoltage(const VFATFrame &frame)
retrieve the threshold voltage for this channel
VFATFrame::word getHptdcErrorFlag(const VFATFrame &frame)
retrieve the list of error/status flags for the HPTDC when the frame was recorded