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