1 #ifndef CTPPSDigi_TotemTimingDigi_h 2 #define CTPPSDigi_TotemTimingDigi_h 40 return (
hwId_ & 0xE0 ) >> 5;
45 return (
hwId_ & 0x10 ) >> 4;
50 return (
hwId_ & 0x0F );
97 sampleValue = (
int)
samples_.at( i );
116 hwId_ |= ( ( boardId & 0x07 ) << 5 ) & 0xE0;
122 hwId_ |= ( ( sampicId & 0x01 ) << 4 ) & 0x10;
128 hwId_ |= ( channelId & 0x0F ) & 0x0F;
151 inline void setSamples(
const std::vector<uint8_t>& samples )
158 samples_.emplace_back( sampleValue );
161 inline void setSampleAt(
const unsigned int i,
const uint8_t sampleValue )
197 return os <<
"TotemTimingDigi:" 203 <<
"\nCellInfo:\t" << std::hex << digi.
getCellInfo()
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 getEventInfo() const
TotemTimingEventInfo totemTimingEventInfo_
std::vector< uint8_t >::const_iterator getSamplesBegin() 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::vector< uint8_t >::const_iterator getSamplesEnd() const
unsigned int getTimestampA() const
unsigned int getHardwareId() const
Return digi values number.
void setHardwareId(const uint8_t hwId)
void setHardwareBoardId(const unsigned int boardId)
std::vector< uint8_t > getSamples() const
unsigned int getFPGATimestamp() const
void setCellInfo(const uint16_t cellInfo)
unsigned int getTimestampB() const
unsigned int getCellInfo() const
unsigned int getNumberOfSamples() const
void setSampleAt(const unsigned int i, const uint8_t sampleValue)
void setHardwareSampicId(const unsigned int sampicId)
unsigned long long uint64_t
unsigned int getHardwareChannelId() const
void setTimestampB(const uint16_t timestampB)
std::vector< uint8_t > samples_
unsigned int getHardwareBoardId() const
int getSampleAt(const unsigned int i) const
bool operator<(const TotemTimingDigi &one, const TotemTimingDigi &other)
unsigned int getHardwareSampicId() const
void addSample(const uint8_t sampleValue)
void setTimestampA(const uint16_t timestampA)