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