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=NULL)
 
VFATFrame::word getHptdcErrorFlag () const
 
uint32_t getLeadingEdgeTime () const
 get timing infromation More...
 
VFATFrame::word getMultihit () const
 
uint32_t getThresholdVoltage () const
 
uint32_t getTrailingEdgeTime () const
 
virtual ~DiamondVFATFrame ()
 
- 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 ()
 
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=NULL)
 
 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 20 of file DiamondVFATFrame.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file DiamondVFATFrame.h.

25  {}
virtual DiamondVFATFrame::~DiamondVFATFrame ( )
inlinevirtual

Definition at line 26 of file DiamondVFATFrame.h.

26 {}

Member Function Documentation

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

Definition at line 53 of file DiamondVFATFrame.h.

References VFATFrame::data.

Referenced by RawToDigiConverter::Run().

54  {
55  return data[1] & 0xFFFF;
56  }
word data[12]
Definition: VFATFrame.h:168
uint32_t DiamondVFATFrame::getLeadingEdgeTime ( ) const
inline

get timing infromation

Definition at line 29 of file DiamondVFATFrame.h.

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

Referenced by RawToDigiConverter::Run().

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

Definition at line 48 of file DiamondVFATFrame.h.

References VFATFrame::data.

Referenced by RawToDigiConverter::Run().

49  {
50  return data[2] & 0x01;
51  }
word data[12]
Definition: VFATFrame.h:168
uint32_t DiamondVFATFrame::getThresholdVoltage ( ) const
inline

Definition at line 43 of file DiamondVFATFrame.h.

References VFATFrame::data.

Referenced by RawToDigiConverter::Run().

44  {
45  return ((data[3]&0x7ff)<<16)+data[4];
46  }
word data[12]
Definition: VFATFrame.h:168
uint32_t DiamondVFATFrame::getTrailingEdgeTime ( ) const
inline

Definition at line 36 of file DiamondVFATFrame.h.

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

Referenced by RawToDigiConverter::Run().

37  {
38  uint32_t time = ((data[7]&0x1f)<<16)+data[8];
39  time = (time & 0xFFE7FFFF) << 2 | (time & 0x00180000) >> 19; //HPTDC inperpolation bits are MSB but should be LSB.... ask HPTDC designers...
40  return time;
41  }
word data[12]
Definition: VFATFrame.h:168