1 #ifndef CTPPSDigi_TotemTimingEventInfo_h 2 #define CTPPSDigi_TotemTimingEventInfo_h 20 TotemTimingEventInfo(
const uint8_t hwId,
const uint64_t l1ATimestamp,
const uint16_t bunchNumber,
const uint32_t orbitNumber,
const uint32_t eventNumber,
const uint16_t channelMap,
const uint16_t l1ALatency,
const uint8_t
numberOfSamples,
const uint8_t offsetOfSamples,
const uint8_t pllInfo );
38 return (
hwId_ & 0xE0 ) >> 5;
43 return (
hwId_ & 0x10 ) >> 4;
48 return (
hwId_ & 0x0F );
106 hwId_ |= ( ( boardId & 0x07 ) << 5 ) & 0xE0;
112 hwId_ |= ( ( sampicId & 0x01 ) << 4 ) & 0x10;
118 hwId_ |= ( channelId & 0x0F ) & 0x0F;
194 std::bitset<16> bitsPLLInfo( digi.
getPLLInfo() );
195 return o <<
"TotemTimingEventInfo:" 206 <<
"\nPLL Info:\t" << bitsPLLInfo.to_string()
unsigned int getEventNumber() const
void setHardwareBoardId(const unsigned int boardId)
unsigned int getNumberOfSamples() const
void setNumberOfSamples(const uint8_t numberOfSamples)
unsigned int getBunchNumber() const
std::ostream & operator<<(std::ostream &o, const TotemTimingEventInfo &digi)
void setOffsetOfSamples(const uint8_t offsetOfSamples)
void setHardwareId(const uint8_t hwId)
void setEventNumber(const uint32_t eventNumber)
uint8_t getPLLInfo() const
unsigned int getHardwareId() const
Return digi values number.
unsigned int getL1ALatency() const
bool operator<(const TotemTimingEventInfo &one, const TotemTimingEventInfo &other)
unsigned int getHardwareSampicId() const
uint16_t getChannelMap() const
unsigned int getHardwareChannelId() const
void setHardwareChannelId(const unsigned int channelId)
bool operator==(const TotemTimingEventInfo &eventInfo) const
Digis are equal if they have all the same values, NOT checking the samples!
unsigned int getL1ATimestamp() const
unsigned long long uint64_t
unsigned int getOrbitNumber() const
void setPLLInfo(const uint8_t pllInfo)
void setOrbitNumber(const uint32_t orbitNumber)
void setBunchNumber(const uint16_t bunchNumber)
unsigned int getHardwareBoardId() const
void setL1ATimestamp(const uint64_t l1ATimestamp)
void setChannelMap(const uint16_t channelMap)
void setL1ALatency(const uint16_t l1ALatency)
eventInfo
add run, event number and lumi section
void setHardwareSampicId(const unsigned int sampicId)
unsigned int getOffsetOfSamples() const