1 #ifndef CTPPSDigi_TotemTimingDigi_h 2 #define CTPPSDigi_TotemTimingDigi_h 26 const std::vector<uint8_t>&
samples,
82 hwId_ |= ((sampicId & 0x01) << 4) & 0x10;
102 inline void setSampleAt(
const unsigned int i,
const uint8_t sampleValue) {
126 if (
one.eventInfo() <
other.eventInfo())
128 if (
one.hardwareId() <
other.hardwareId())
134 return os <<
"TotemTimingDigi:" void setFPGATimestamp(const uint64_t fpgaTimestamp)
std::ostream & operator<<(std::ostream &os, const TotemTimingDigi &digi)
void setSamples(const std::vector< uint8_t > &samples)
void setEventInfo(const TotemTimingEventInfo &totemTimingEventInfo)
TotemTimingEventInfo totemTimingEventInfo_
unsigned int timestampA() const
unsigned int timestampB() const
void setHardwareChannelId(const unsigned int channelId)
unsigned int numberOfSamples() const
bool operator==(const TotemTimingDigi &digi) const
Digis are equal if they have all the same values, NOT checking the samples!
int sampleAt(const unsigned int i) const
unsigned int fpgaTimestamp() const
void setHardwareId(const uint8_t hwId)
void setHardwareBoardId(const unsigned int boardId)
unsigned int hardwareSampicId() const
std::vector< uint8_t > samples() const
void setCellInfo(const uint16_t cellInfo)
std::vector< uint8_t >::const_iterator samplesBegin() const
void setSampleAt(const unsigned int i, const uint8_t sampleValue)
void setHardwareSampicId(const unsigned int sampicId)
unsigned long long uint64_t
uint8_t channelId(const VFATFrame &frame)
retrieve this channel identifier
unsigned int hardwareChannelId() const
void setTimestampB(const uint16_t timestampB)
std::vector< uint8_t > samples_
unsigned int hardwareId() const
Return digi values number.
TotemTimingEventInfo eventInfo() const
unsigned int hardwareBoardId() const
unsigned int cellInfo() const
bool operator<(const TotemTimingDigi &one, const TotemTimingDigi &other)
void addSample(const uint8_t sampleValue)
std::vector< uint8_t >::const_iterator samplesEnd() const
void setTimestampA(const uint16_t timestampA)