Project
Loading...
Searching...
No Matches
o2::mch::DsChannelId Class Reference

#include <DsChannelId.h>

Public Member Functions

 DsChannelId ()=default
 
 DsChannelId (uint32_t channelId)
 
 DsChannelId (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 getElinkId () const
 
uint8_t getDsId () const
 
uint8_t getChannel () const
 
std::string asString () const
 
uint32_t value () const
 
bool isValid () const
 

Static Public Member Functions

static uint32_t make (uint16_t solarId, uint8_t eLinkId, uint8_t channel)
 

Detailed Description

Unique 32-bit identifier of a DualSampa channel. The ID is generated from the following indexes:

  • the unique ID of the corresponding solar board
  • the index of the DualSampa board within the Solar board, from 0 to 39
  • the channel number, from 0 to 63

Definition at line 25 of file DsChannelId.h.

Constructor & Destructor Documentation

◆ DsChannelId() [1/3]

o2::mch::DsChannelId::DsChannelId ( )
default

◆ DsChannelId() [2/3]

o2::mch::DsChannelId::DsChannelId ( uint32_t  channelId)
inline

Definition at line 29 of file DsChannelId.h.

◆ DsChannelId() [3/3]

o2::mch::DsChannelId::DsChannelId ( uint16_t  solarId,
uint8_t  eLinkId,
uint8_t  channel 
)
inline

Definition at line 30 of file DsChannelId.h.

Member Function Documentation

◆ asString()

std::string o2::mch::DsChannelId::asString ( ) const

Definition at line 17 of file DsChannelId.cxx.

◆ getChannel()

uint8_t o2::mch::DsChannelId::getChannel ( ) const
inline

Definition at line 51 of file DsChannelId.h.

◆ getDsId()

uint8_t o2::mch::DsChannelId::getDsId ( ) const
inline

Definition at line 50 of file DsChannelId.h.

◆ getElinkId()

uint8_t o2::mch::DsChannelId::getElinkId ( ) const
inline

Definition at line 48 of file DsChannelId.h.

◆ getSolarId()

uint16_t o2::mch::DsChannelId::getSolarId ( ) const
inline

Definition at line 47 of file DsChannelId.h.

◆ isValid()

bool o2::mch::DsChannelId::isValid ( ) const
inline

Definition at line 57 of file DsChannelId.h.

◆ make()

static uint32_t o2::mch::DsChannelId::make ( uint16_t  solarId,
uint8_t  eLinkId,
uint8_t  channel 
)
inlinestatic

Definition at line 35 of file DsChannelId.h.

◆ set()

void o2::mch::DsChannelId::set ( uint16_t  solarId,
uint8_t  eLinkId,
uint8_t  channel 
)
inline

Definition at line 42 of file DsChannelId.h.

◆ value()

uint32_t o2::mch::DsChannelId::value ( ) const
inline

Definition at line 55 of file DsChannelId.h.


The documentation for this class was generated from the following files: