9 #ifndef EventFilter_CTPPSRawToDigi_VFATFrame 10 #define EventFilter_CTPPSRawToDigi_VFATFrame 107 return (
data[1 + (channel / 16)] & (1 << (channel % 16))) ?
true :
false;
116 void Print(
bool binary =
false)
const;
119 void PrintT2(
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.
virtual bool checkCRCT2() const
VFATFrame::word getChipID() const
Returns ChipID (ChipID<11:0>).
VFATFrame::word getCRCT2() const
Returns the CRC, for non-reversed TOTEM T2.
void PrintT2(bool binary=false) const
void setPresenceFlags(uint8_t v)
Sets presence flags.
bool checkFootprintT2() const
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 ©)