CbmRoot
Loading...
Searching...
No Matches
cbm::algo::sts::Module Class Reference

STS Module parameters. More...

#include <StsRecoUtils.h>

Static Public Member Functions

static std::optional< u16ChannelInModule (const u16 elink_chn, const u16 asic_idx)
 Channel HW to SW conversion.
 
static std::optional< std::pair< u16, u16 > > ChannelInAsic (const u16 channel)
 Channel SW to HW conversion.
 

Static Public Attributes

static constexpr u16 CHANNELS_PER_ASIC = 128
 
static constexpr u16 ASICS_PER_MODULE = 16
 
static constexpr u16 CHANNELS_PER_MODULE = CHANNELS_PER_ASIC * ASICS_PER_MODULE
 
static constexpr u16 ZSTRIP_ASIC = 8
 
static constexpr u16 ZSTRIP_HW_CHANNEL = 127
 
static constexpr u16 ZSTRIP_SW_CHANNEL = 2046
 
static constexpr u16 ZSTRIP_OFFSET = ZSTRIP_SW_CHANNEL - 1022
 

Detailed Description

STS Module parameters.

Definition at line 17 of file StsRecoUtils.h.

Member Function Documentation

◆ ChannelInAsic()

static std::optional< std::pair< u16, u16 > > cbm::algo::sts::Module::ChannelInAsic ( const u16 channel)
inlinestatic

Channel SW to HW conversion.

Parameters
channelChannel number in module (SW)
chan_per_asicChannels per ASIC
asic_per_moduleASICs per module
Returns
elink_chn, asic_idx Channel number in elink (HW) and asic ASIC in module

Definition at line 58 of file StsRecoUtils.h.

References ASICS_PER_MODULE, CHANNELS_PER_ASIC, CHANNELS_PER_MODULE, ZSTRIP_OFFSET, and ZSTRIP_SW_CHANNEL.

Referenced by TEST(), TEST(), and TEST().

◆ ChannelInModule()

static std::optional< u16 > cbm::algo::sts::Module::ChannelInModule ( const u16 elink_chn,
const u16 asic_idx )
inlinestatic

Channel HW to SW conversion.

Parameters
elink_chnChannel number in elink (HW)
asic_idxASIC index in module
Returns
channel Channel number in SW

Definition at line 36 of file StsRecoUtils.h.

References ASICS_PER_MODULE, CHANNELS_PER_ASIC, CHANNELS_PER_MODULE, ZSTRIP_ASIC, ZSTRIP_HW_CHANNEL, and ZSTRIP_OFFSET.

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

Member Data Documentation

◆ ASICS_PER_MODULE

u16 cbm::algo::sts::Module::ASICS_PER_MODULE = 16
staticconstexpr

Definition at line 20 of file StsRecoUtils.h.

Referenced by ChannelInAsic(), ChannelInModule(), TEST(), TEST(), and TEST().

◆ CHANNELS_PER_ASIC

u16 cbm::algo::sts::Module::CHANNELS_PER_ASIC = 128
staticconstexpr

Definition at line 19 of file StsRecoUtils.h.

Referenced by ChannelInAsic(), ChannelInModule(), TEST(), TEST(), and TEST().

◆ CHANNELS_PER_MODULE

u16 cbm::algo::sts::Module::CHANNELS_PER_MODULE = CHANNELS_PER_ASIC * ASICS_PER_MODULE
staticconstexpr

Definition at line 21 of file StsRecoUtils.h.

Referenced by ChannelInAsic(), ChannelInModule(), TEST(), and TEST().

◆ ZSTRIP_ASIC

u16 cbm::algo::sts::Module::ZSTRIP_ASIC = 8
staticconstexpr

Definition at line 26 of file StsRecoUtils.h.

Referenced by ChannelInModule().

◆ ZSTRIP_HW_CHANNEL

u16 cbm::algo::sts::Module::ZSTRIP_HW_CHANNEL = 127
staticconstexpr

Definition at line 27 of file StsRecoUtils.h.

Referenced by ChannelInModule().

◆ ZSTRIP_OFFSET

u16 cbm::algo::sts::Module::ZSTRIP_OFFSET = ZSTRIP_SW_CHANNEL - 1022
staticconstexpr

Definition at line 29 of file StsRecoUtils.h.

Referenced by ChannelInAsic(), and ChannelInModule().

◆ ZSTRIP_SW_CHANNEL

u16 cbm::algo::sts::Module::ZSTRIP_SW_CHANNEL = 2046
staticconstexpr

Definition at line 28 of file StsRecoUtils.h.

Referenced by ChannelInAsic().


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