15 const std::string& position) {
16 unsigned long long channelId = chnlId.
get_compact();
19 if (position==
"left" ) passiv.
left = indiv + extra;
20 else if(position==
"right") passiv.
right = indiv + extra;
32 if(pcb!=5 && pcb!=8) passiv.
top = extra/2;
33 if(pcb!=1 && pcb!=6) passiv.
bottom = extra/2;
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};
48 unsigned long long channelId =
m_mmIdHelper.pcbID(
id).get_compact();
49 PassivationMap::const_iterator itr =
m_data.find(channelId);
50 if (itr !=
m_data.end())
return itr->second;
value_type get_compact() const
Get the compact id.
const MmIdHelper & m_mmIdHelper
ID helpers.
NswPassivationDbData(const MmIdHelper &)
std::vector< Identifier > getChannelIds() const
const PCBPassivation & getPassivation(const Identifier &id) const
void setData(const Identifier &chnlId, const int pcb, const float indiv, const float extra, const std::string &position)
Helper struct to save the four passivation values of each PCB.