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

#include <WalkMap.h>

Classes

struct  AdcMap
 

Public Member Functions

 WalkMap ()=default
 Construct emtpy mapping.
 
 ~WalkMap ()=default
 
std::vector< double > Get (int32_t modAddress, uint16_t asic)
 API: Mapping from module address and ASIC number to walk coefficients.
 
i32 GetSystemTimeOffset ()
 Get system time offset.
 

Private Member Functions

 CBM_YAML_MERGE_PROPERTY ()
 
 CBM_YAML_PROPERTIES (yaml::Property(&WalkMap::timeOffset, "timeOffset", "Time offset for STS", YAML::Hex), yaml::Property(&WalkMap::fWalkMap, "WalkMap", "Walk correction map", YAML::Hex, YAML::Flow))
 

Private Attributes

i32 timeOffset
 
std::map< i32, std::vector< AdcMap > > fWalkMap
 

Detailed Description

Definition at line 17 of file WalkMap.h.

Constructor & Destructor Documentation

◆ WalkMap()

cbm::algo::sts::WalkMap::WalkMap ( )
default

Construct emtpy mapping.

◆ ~WalkMap()

cbm::algo::sts::WalkMap::~WalkMap ( )
default

Member Function Documentation

◆ CBM_YAML_MERGE_PROPERTY()

cbm::algo::sts::WalkMap::CBM_YAML_MERGE_PROPERTY ( )
private

◆ CBM_YAML_PROPERTIES()

cbm::algo::sts::WalkMap::CBM_YAML_PROPERTIES ( yaml::Property &::, "", " ", ::Hex ,
yaml::Property &::, "", " ", ::, ::Flow  )
private

◆ Get()

std::vector< double > WalkMap::Get ( int32_t modAddress,
uint16_t asic )

API: Mapping from module address and ASIC number to walk coefficients.

Parameters
modAddressmodule address
asicASIC number within module
Returns
std::vector<double> of walk coefficients

Definition at line 11 of file WalkMap.cxx.

References fWalkMap.

Referenced by cbm::algo::sts::Unpack::Unpack().

◆ GetSystemTimeOffset()

i32 cbm::algo::sts::WalkMap::GetSystemTimeOffset ( )
inline

Get system time offset.

Definition at line 34 of file WalkMap.h.

References timeOffset.

Referenced by cbm::algo::sts::Unpack::Unpack().

Member Data Documentation

◆ fWalkMap

std::map<i32, std::vector<AdcMap> > cbm::algo::sts::WalkMap::fWalkMap
private

Definition at line 55 of file WalkMap.h.

Referenced by Get().

◆ timeOffset

i32 cbm::algo::sts::WalkMap::timeOffset
private

Definition at line 51 of file WalkMap.h.

Referenced by GetSystemTimeOffset().


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