CMS 3D CMS Logo

TotemT2VFATFrame.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of the TOTEM offline software.
4 * Authors:
5 * Edoardo Bossini
6 * Laurent Forthomme
7 *
8 ****************************************************************************/
9 
10 #ifndef EventFilter_CTPPSRawToDigi_TotemT2VFATFrame
11 #define EventFilter_CTPPSRawToDigi_TotemT2VFATFrame
12 
14 
15 #include <cstdint>
16 
20 namespace totem::nt2::vfat {
22  inline uint16_t leadingEdgeTime(const VFATFrame& frame) { return frame.getData()[2] & 0xffff; }
24  inline uint16_t trailingEdgeTime(const VFATFrame& frame) { return frame.getData()[3] & 0xffff; }
26  inline uint8_t channelMarker(const VFATFrame& frame) { return frame.getData()[1] & 0x1f; }
28  inline uint8_t geoId(const VFATFrame& frame) { return frame.getData()[0] & 0x3f; }
30  inline uint8_t channelId(const VFATFrame& frame) { return (frame.getData()[0] >> 8) & 0x3f; }
31 } // namespace totem::nt2::vfat
32 
33 #endif
uint8_t geoId(const VFATFrame &frame)
retrieve the GEO information for this channel
uint8_t channelMarker(const VFATFrame &frame)
retrieve this channel marker
uint16_t trailingEdgeTime(const VFATFrame &frame)
get timing information for single trailing edge
uint8_t channelId(const VFATFrame &frame)
retrieve this channel identifier
uint16_t leadingEdgeTime(const VFATFrame &frame)
get timing information for single leading edge