CbmRoot
Loading...
Searching...
No Matches
cbm::algo::trd2d::UnpackPar Struct Reference

Parameters required for the TRD2D unpacking (specific to one component) More...

#include <UnpackMS.h>

Public Member Functions

void dump () const
 Write to the debug stream the content of the current param object.
 
template<uint8_t ver>
uint8_t mapFaspId2Mod (uint8_t fasp_id) const
 Calculate the module wise FASP id from the FASP id provided at the level of equipment Id (optical fibre in TRD2D case).
 

Public Attributes

int32_t fSystemTimeOffset = 0
 Time calibration parameter.
 
uint16_t fModId = 0
 Module ID of component.
 
uint16_t fEqAdd = 0
 Equipment (optical fiber) address [HEX].
 
uint8_t fEqId = 0xff
 Equipment (optical fiber) ID of component.
 
float fRefSignal = 900
 reference signal for calibration
 
std::map< uint8_t, UnpackAsicParfAsicParams = {}
 Parameters for each ASIC.
 
std::array< CalibChannelPar, NFASPMOD *NFASPCHfCalibParams
 Parameters for each ASIC channel for each module.
 
int toff [NFASPMOD *NFASPPAD]
 

Detailed Description

Parameters required for the TRD2D unpacking (specific to one component)

Author
Dominik Smith d.smi.nosp@m.th@g.nosp@m.si.de
Since
31 January 2023

Definition at line 165 of file trd2d/UnpackMS.h.

Member Function Documentation

◆ dump()

void cbm::algo::trd2d::UnpackPar::dump ( ) const

Write to the debug stream the content of the current param object.

Definition at line 136 of file trd2d/UnpackMS.cxx.

References fAsicParams, fCalibParams, fEqAdd, fEqId, fModId, fRefSignal, fSystemTimeOffset, L_, NFASPCH, and NFASPMOD.

◆ mapFaspId2Mod()

template<uint8_t ver>
uint8_t cbm::algo::trd2d::UnpackPar::mapFaspId2Mod ( uint8_t fasp_id) const

Calculate the module wise FASP id from the FASP id provided at the level of equipment Id (optical fibre in TRD2D case).

Parameters
fasp_idindex of fasp as written on the message
Returns
fasp id on the module as it is used in the parameter file

Member Data Documentation

◆ fAsicParams

std::map<uint8_t, UnpackAsicPar> cbm::algo::trd2d::UnpackPar::fAsicParams = {}

Parameters for each ASIC.

Definition at line 171 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ fCalibParams

std::array<CalibChannelPar, NFASPMOD* NFASPCH> cbm::algo::trd2d::UnpackPar::fCalibParams
Initial value:
=
{}

Parameters for each ASIC channel for each module.

Definition at line 172 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ fEqAdd

uint16_t cbm::algo::trd2d::UnpackPar::fEqAdd = 0

Equipment (optical fiber) address [HEX].

Definition at line 168 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ fEqId

uint8_t cbm::algo::trd2d::UnpackPar::fEqId = 0xff

Equipment (optical fiber) ID of component.

Definition at line 169 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ fModId

uint16_t cbm::algo::trd2d::UnpackPar::fModId = 0

Module ID of component.

Definition at line 167 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ fRefSignal

float cbm::algo::trd2d::UnpackPar::fRefSignal = 900

reference signal for calibration

Definition at line 170 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ fSystemTimeOffset

int32_t cbm::algo::trd2d::UnpackPar::fSystemTimeOffset = 0

Time calibration parameter.

Definition at line 166 of file trd2d/UnpackMS.h.

Referenced by dump().

◆ toff

int cbm::algo::trd2d::UnpackPar::toff[NFASPMOD *NFASPPAD]

Definition at line 174 of file trd2d/UnpackMS.h.


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