12#ifndef O2_DATAFORMATS_MCH_DS_CHANNEL_ID_H_
13#define O2_DATAFORMATS_MCH_DS_CHANNEL_ID_H_
32 set(solarId, eLinkId, channel);
38 (
static_cast<uint32_t>(eLinkId) << 8) + channel;
50 [[deprecated(
"use getElinkId instead which better reflects what it is and avoid confusion with dsId from DsDetId")]]
uint8_t getDsId()
const {
return getElinkId(); }
57 bool isValid()
const {
return (mChannelId != 0); }
unsigned short int uint16_t
std::string asString() const
DsChannelId(uint16_t solarId, uint8_t eLinkId, uint8_t channel)
DsChannelId(uint32_t channelId)
uint8_t getElinkId() const
static uint32_t make(uint16_t solarId, uint8_t eLinkId, uint8_t channel)
void set(uint16_t solarId, uint8_t eLinkId, uint8_t channel)
uint16_t getSolarId() const
uint8_t getChannel() const
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
bool operator==(const DsChannelId &a, const DsChannelId &b)
bool operator>=(const DsChannelId &a, const DsChannelId &b)
bool operator>(const DsChannelId &a, const DsChannelId &b)
bool operator<(const DsChannelId &a, const DsChannelId &b)
bool operator!=(const DsChannelId &a, const DsChannelId &b)
bool operator<=(const DsChannelId &a, const DsChannelId &b)