CMS 3D CMS Logo

List of all members | Public Member Functions
DiamondVFATFrame Class Reference

#include <DiamondVFATFrame.h>

Inheritance diagram for DiamondVFATFrame:
VFATFrame

Public Member Functions

 DiamondVFATFrame (const word *inputData=nullptr)
 
VFATFrame::word getHptdcErrorFlag () const
 
uint32_t getLeadingEdgeTime () const
 get timing infromation More...
 
VFATFrame::word getMultihit () const
 
uint32_t getThresholdVoltage () const
 
uint32_t getTrailingEdgeTime () const
 
 ~DiamondVFATFrame () override
 
- Public Member Functions inherited from VFATFrame
virtual bool channelActive (unsigned char channel) const
 
virtual bool checkCRC () const
 
bool checkFootprint () const
 
virtual std::vector< unsigned char > getActiveChannels () const
 
VFATFrame::word getBC () const
 Returns Bunch Crossing number (BC<11:0>). More...
 
VFATFrame::word getChipID () const
 Returns ChipID (ChipID<11:0>). More...
 
VFATFrame::word getCRC () const
 Returns the CRC. More...
 
VFATFrame::wordgetData ()
 
const VFATFrame::wordgetData () const
 
VFATFrame::word getEC () const
 Returns Event Counter (EV<7:0>). More...
 
VFATFrame::word getFlags () const
 Returns flags. More...
 
uint8_t getNumberOfClusters () const
 
bool isBCPresent () const
 Returns true if the BC word is present in the frame. More...
 
bool isCRCPresent () const
 Returns true if the CRC word is present in the frame. More...
 
bool isECPresent () const
 Returns true if the EC word is present in the frame. More...
 
bool isIDPresent () const
 Returns true if the ID word is present in the frame. More...
 
bool isNumberOfClustersPresent () const
 Returns true if the CRC word is present in the frame. More...
 
void Print (bool binary=false) const
 
void setDAQErrorFlags (uint8_t v)
 Sets DAQ error flags. More...
 
void setData (const word *_data)
 Copies a memory block to data buffer. More...
 
void setNumberOfClusters (uint8_t v)
 
void setPresenceFlags (uint8_t v)
 Sets presence flags. More...
 
 VFATFrame (const word *_data=nullptr)
 
 VFATFrame (const VFATFrame &copy)
 
virtual ~VFATFrame ()
 

Additional Inherited Members

- Public Types inherited from VFATFrame
typedef uint16_t word
 
- Protected Attributes inherited from VFATFrame
word data [12]
 

Detailed Description

This class intended to handle the timing infromation of diamond VFAT frame

Definition at line 23 of file DiamondVFATFrame.h.

Constructor & Destructor Documentation

DiamondVFATFrame::DiamondVFATFrame ( const word inputData = nullptr)
inline

Definition at line 27 of file DiamondVFATFrame.h.

28  {}
DiamondVFATFrame::~DiamondVFATFrame ( )
inlineoverride

Definition at line 29 of file DiamondVFATFrame.h.

29 {}

Member Function Documentation

VFATFrame::word DiamondVFATFrame::getHptdcErrorFlag ( ) const
inline

Definition at line 56 of file DiamondVFATFrame.h.

References VFATFrame::data.

Referenced by RawToDigiConverter::run().

57  {
58  return data[1] & 0xFFFF;
59  }
word data[12]
Definition: VFATFrame.h:173
uint32_t DiamondVFATFrame::getLeadingEdgeTime ( ) const
inline

get timing infromation

Definition at line 32 of file DiamondVFATFrame.h.

References VFATFrame::data, and ntuplemaker::time.

Referenced by RawToDigiConverter::run().

33  {
34  uint32_t time = ((data[7]&0x1f)<<16)+data[8];
35  time = (time & 0xFFE7FFFF) << 2 | (time & 0x00180000) >> 19; //HPTDC inperpolation bits are MSB but should be LSB.... ask HPTDC designers...
36  return time;
37  }
word data[12]
Definition: VFATFrame.h:173
VFATFrame::word DiamondVFATFrame::getMultihit ( ) const
inline

Definition at line 51 of file DiamondVFATFrame.h.

References VFATFrame::data.

Referenced by RawToDigiConverter::run().

52  {
53  return data[2] & 0x01;
54  }
word data[12]
Definition: VFATFrame.h:173
uint32_t DiamondVFATFrame::getThresholdVoltage ( ) const
inline

Definition at line 46 of file DiamondVFATFrame.h.

References VFATFrame::data.

Referenced by RawToDigiConverter::run().

47  {
48  return ((data[3]&0x7ff)<<16)+data[4];
49  }
word data[12]
Definition: VFATFrame.h:173
uint32_t DiamondVFATFrame::getTrailingEdgeTime ( ) const
inline

Definition at line 39 of file DiamondVFATFrame.h.

References VFATFrame::data, and ntuplemaker::time.

Referenced by RawToDigiConverter::run().

40  {
41  uint32_t time = ((data[5]&0x1f)<<16)+data[6];
42  time = (time & 0xFFE7FFFF) << 2 | (time & 0x00180000) >> 19; //HPTDC inperpolation bits are MSB but should be LSB.... ask HPTDC designers...
43  return time;
44  }
word data[12]
Definition: VFATFrame.h:173