Go to the documentation of this file.
9 #ifndef EventFilter_CTPPSRawToDigi_VFATFrame
10 #define EventFilter_CTPPSRawToDigi_VFATFrame
21 typedef uint16_t
word;
96 return (
data[1 + (channel / 16)] & (1 << (channel % 16))) ?
true :
false;
105 void Print(
bool binary =
false)
const;
VFATFrame(const word *_data=nullptr)
virtual bool checkCRC() const
bool checkFootprint() const
void Print(bool binary=false) const
bool isCRCPresent() const
Returns true if the CRC word is present in the frame.
bool isNumberOfClustersPresent() const
Returns true if the CRC word is present in the frame.
virtual std::vector< unsigned char > getActiveChannels() const
virtual bool channelActive(unsigned char channel) const
VFATFrame::word getFlags() const
Returns flags.
VFATFrame::word getBC() const
Returns Bunch Crossing number (BC<11:0>).
VFATFrame::word * getData()
uint8_t getNumberOfClusters() const
void setNumberOfClusters(uint8_t v)
bool isBCPresent() const
Returns true if the BC word is present in the frame.
VFATFrame::word getChipID() const
Returns ChipID (ChipID<11:0>).
VFATFrame::word getCRC() const
Returns the CRC.
void setPresenceFlags(uint8_t v)
Sets presence flags.
bool isECPresent() const
Returns true if the EC word is present in the frame.
VFATFrame::word getEC() const
Returns Event Counter (EV<7:0>).
bool isIDPresent() const
Returns true if the ID word is present in the frame.
static word calculateCRC(word crc_in, word dato)
internaly used to check CRC
void setDAQErrorFlags(uint8_t v)
Sets DAQ error flags.
uint8_t daqErrorFlags
Error flag as given by certain versions of DAQ.
void setData(const word *_data)
Copies a memory block to data buffer.