#include <NswPassivationDbData.h>
Definition at line 20 of file NswPassivationDbData.h.
◆ PassivationMap
◆ NswPassivationDbData()
| NswPassivationDbData::NswPassivationDbData |
( |
const MmIdHelper & | mmIdHelper | ) |
|
◆ ~NswPassivationDbData()
| virtual NswPassivationDbData::~NswPassivationDbData |
( |
| ) |
|
|
virtualdefault |
◆ getChannelIds()
| std::vector< Identifier > NswPassivationDbData::getChannelIds |
( |
| ) |
const |
Definition at line 38 of file NswPassivationDbData.cxx.
38 {
39 std::vector<Identifier>
keys;
40 std::transform(
m_data.begin(),
m_data.end(), std::back_inserter(keys),
41 [](const PassivationMap::value_type& key_pair) ->Identifier{
42 return Identifier{key_pair.first};
43 });
45}
◆ getPassivation()
Definition at line 47 of file NswPassivationDbData.cxx.
47 {
49 PassivationMap::const_iterator itr =
m_data.find(channelId);
50 if (itr !=
m_data.end())
return itr->second;
53}
Helper struct to save the four passivation values of each PCB.
◆ setData()
| void NswPassivationDbData::setData |
( |
const Identifier & | chnlId, |
|
|
const int | pcb, |
|
|
const float | indiv, |
|
|
const float | extra, |
|
|
const std::string & | position ) |
Definition at line 11 of file NswPassivationDbData.cxx.
15 {
18 passiv.valid = true;
19 if (position==
"left" ) passiv.left = indiv +
extra;
20 else if(position==
"right") passiv.right = indiv +
extra;
21 else {
24 }
25 if(extra==0) return;
26
27
28
29
30
31
32 if(pcb!=5 && pcb!=8) passiv.top =
extra/2;
33 if(pcb!=1 && pcb!=6) passiv.bottom =
extra/2;
34}
value_type get_compact() const
Get the compact id.
◆ m_data
◆ m_mmIdHelper
| const MmIdHelper& NswPassivationDbData::m_mmIdHelper |
|
private |
The documentation for this class was generated from the following files: