9 #ifndef EventFilter_CTPPSRawToDigi_VFATFrame
10 #define EventFilter_CTPPSRawToDigi_VFATFrame
48 return data[11] & 0x0FFF;
54 return (
data[10] & 0x0FF0) >> 4;
60 return data[10] & 0x000F;
66 return data[9] & 0x0FFF;
144 return (
data[1 + (channel / 16)] & (1 << (channel % 16)) ) ? 1 : 0;
153 void Print(
bool binary =
false)
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.
VFATFrame(const word *_data=NULL)
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.
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 ©)