CMS 3D CMS Logo

Functions
pps::diamond::vfat Namespace Reference

Functions

uint32_t correctTime (const uint32_t &time)
 Account for MSB/LSB "HW feature" reversal in HPTDC interpolation bits. More...
 
VFATFrame::word getHptdcErrorFlag (const VFATFrame &frame)
 retrieve the list of error/status flags for the HPTDC when the frame was recorded More...
 
uint32_t getLeadingEdgeTime (const VFATFrame &frame)
 get timing information for single leading edge More...
 
VFATFrame::word getMultihit (const VFATFrame &frame)
 flag stating whether the HPTDC channel encountered multiple hits More...
 
uint32_t getThresholdVoltage (const VFATFrame &frame)
 retrieve the threshold voltage for this channel More...
 
uint32_t getTrailingEdgeTime (const VFATFrame &frame)
 get timing information for single trailing edge More...
 

Function Documentation

◆ correctTime()

uint32_t pps::diamond::vfat::correctTime ( const uint32_t &  time)
inline

Account for MSB/LSB "HW feature" reversal in HPTDC interpolation bits.

Definition at line 29 of file DiamondVFATFrame.h.

31 {

◆ getHptdcErrorFlag()

VFATFrame::word pps::diamond::vfat::getHptdcErrorFlag ( const VFATFrame frame)
inline

retrieve the list of error/status flags for the HPTDC when the frame was recorded

Definition at line 48 of file DiamondVFATFrame.h.

Referenced by RawToDigiConverter::run().

◆ getLeadingEdgeTime()

uint32_t pps::diamond::vfat::getLeadingEdgeTime ( const VFATFrame frame)
inline

get timing information for single leading edge

Definition at line 32 of file DiamondVFATFrame.h.

36  {

Referenced by RawToDigiConverter::run().

◆ getMultihit()

VFATFrame::word pps::diamond::vfat::getMultihit ( const VFATFrame frame)
inline

flag stating whether the HPTDC channel encountered multiple hits

Definition at line 46 of file DiamondVFATFrame.h.

Referenced by RawToDigiConverter::run().

◆ getThresholdVoltage()

uint32_t pps::diamond::vfat::getThresholdVoltage ( const VFATFrame frame)
inline

retrieve the threshold voltage for this channel

Definition at line 42 of file DiamondVFATFrame.h.

42  { return frame.getData()[1] & 0xFFFF; }
43 } // namespace pps::diamond::vfat
44 

References amptDefault_cfi::frame.

Referenced by RawToDigiConverter::run().

◆ getTrailingEdgeTime()

uint32_t pps::diamond::vfat::getTrailingEdgeTime ( const VFATFrame frame)
inline

get timing information for single trailing edge

Definition at line 37 of file DiamondVFATFrame.h.

40  { return frame.getData()[2] & 0x01; }

Referenced by RawToDigiConverter::run().

amptDefault_cfi.frame
frame
Definition: amptDefault_cfi.py:12