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
7
using namespace
cbm::algo::sts
;
8
9
CBM_YAML_INSTANTIATE
(
WalkMap
);
10
11
std::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
}
WalkMap.h
CBM_YAML_INSTANTIATE
#define CBM_YAML_INSTANTIATE(type)
Explicitly instantiate the Read and Dump functions for a type.
Definition
Yaml.h:305
cbm::algo::sts::WalkMap
Definition
WalkMap.h:17
cbm::algo::sts::WalkMap::Get
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
cbm::algo::sts::WalkMap::fWalkMap
std::map< i32, std::vector< AdcMap > > fWalkMap
Definition
WalkMap.h:55
cbm::algo::sts
Definition
TrackingDefs.h:25
algo
detectors
sts
WalkMap.cxx
Generated on Sun Dec 22 2024 23:04:04 for CbmRoot by
1.12.0