Go to the documentation of this file. 1 #ifndef CTPPSDigi_TotemTimingDigi_h
2 #define CTPPSDigi_TotemTimingDigi_h
26 const std::vector<uint8_t>&
samples,
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 setHardwareSampicId(const unsigned int sampicId)
int sampleAt(const unsigned int i) const
unsigned int timestampA() const
unsigned int hardwareBoardId() const
unsigned int hardwareId() const
Return digi values number.
TotemTimingEventInfo totemTimingEventInfo_
unsigned int fpgaTimestamp() const
bool operator<(const TotemTimingDigi &one, const TotemTimingDigi &other)
void setFPGATimestamp(const uint64_t fpgaTimestamp)
unsigned int hardwareSampicId() const
void setEventInfo(const TotemTimingEventInfo &totemTimingEventInfo)
unsigned int numberOfSamples() const
void setHardwareBoardId(const unsigned int boardId)
void setSamples(const std::vector< uint8_t > &samples)
std::vector< uint8_t >::const_iterator samplesEnd() const
void setHardwareChannelId(const unsigned int channelId)
unsigned int cellInfo() const
void addSample(const uint8_t sampleValue)
std::vector< uint8_t >::const_iterator samplesBegin() const
void setCellInfo(const uint16_t cellInfo)
std::vector< uint8_t > samples_
std::ostream & operator<<(std::ostream &os, const TotemTimingDigi &digi)
void setTimestampB(const uint16_t timestampB)
unsigned int hardwareChannelId() const
bool operator==(const TotemTimingDigi &digi) const
Digis are equal if they have all the same values, NOT checking the samples!
unsigned long long uint64_t
void setTimestampA(const uint16_t timestampA)
unsigned int timestampB() const
void setHardwareId(const uint8_t hwId)
TotemTimingEventInfo eventInfo() const
std::vector< uint8_t > samples() const
void setSampleAt(const unsigned int i, const uint8_t sampleValue)