CbmRoot
Loading...
Searching...
No Matches
WalkMap.cxx
Go to the documentation of this file.
1/* Copyright (C) 2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer], Dominik Smith */
4
5#include "WalkMap.h"
6
7using namespace cbm::algo::sts;
8
10
11std::vector<double> WalkMap::Get(int32_t modAddress, uint16_t asic)
12{
13 std::vector<double> result;
14 auto modIter = fWalkMap.find(modAddress);
15 if (modIter != fWalkMap.end()) {
16 if (asic < modIter->second.size()) {
17 result = modIter->second.at(asic).walkCoefficients;
18 }
19 }
20 return result;
21}
#define CBM_YAML_INSTANTIATE(type)
Explicitly instantiate the Read and Dump functions for a type.
Definition Yaml.h:305
std::vector< double > Get(int32_t modAddress, uint16_t asic)
API: Mapping from module address and ASIC number to walk coefficients.
Definition WalkMap.cxx:11
std::map< i32, std::vector< AdcMap > > fWalkMap
Definition WalkMap.h:55