1 #ifndef CTPPSDigi_TotemTimingEventInfo_h 2 #define CTPPSDigi_TotemTimingEventInfo_h 76 hwId_ |= ((sampicId & 0x01) << 4) & 0x10;
118 if (
one.eventNumber() <
other.eventNumber())
120 if (
one.l1ATimestamp() <
other.l1ATimestamp())
122 if (
one.hardwareId() <
other.hardwareId())
128 std::bitset<16> bitsPLLInfo(digi.
pllInfo());
129 return o <<
"TotemTimingEventInfo:" 135 <<
"\nChannels fired:\t" << std::hex << digi.
channelMap() <<
"\nNumber of Samples:\t" <<
std::dec 137 <<
"\nPLL Info:\t" << bitsPLLInfo.to_string() << std::endl;
unsigned int hardwareSampicId() const
void setHardwareBoardId(const unsigned int boardId)
void setNumberOfSamples(const uint8_t numberOfSamples)
unsigned int l1ALatency() const
unsigned int bunchNumber() const
unsigned int hardwareId() const
Return digi values number.
std::ostream & operator<<(std::ostream &o, const TotemTimingEventInfo &digi)
void setOffsetOfSamples(const uint8_t offsetOfSamples)
unsigned int l1ATimestamp() const
unsigned int hardwareBoardId() const
unsigned int offsetOfSamples() const
unsigned int numberOfSamples() const
void setHardwareId(const uint8_t hwId)
void setEventNumber(const uint32_t eventNumber)
bool operator==(const TotemTimingEventInfo &eventInfo) const
Digis are equal if they have all the same values, NOT checking the samples!
bool operator<(const TotemTimingEventInfo &one, const TotemTimingEventInfo &other)
uint16_t channelMap() const
void setHardwareChannelId(const unsigned int channelId)
unsigned int orbitNumber() const
unsigned int eventNumber() const
unsigned long long uint64_t
uint8_t channelId(const VFATFrame &frame)
retrieve this channel identifier
void setPLLInfo(const uint8_t pllInfo)
void setOrbitNumber(const uint32_t orbitNumber)
void setBunchNumber(const uint16_t bunchNumber)
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 hardwareChannelId() const