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