ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_DCSFloatCondData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Implementation file for the SCT DCS float data object class for HV and temperature
6// The object is a map of channel number <-> float
7
9
11// constructor
16
18// set a float value for a channel
19void SCT_DCSFloatCondData::setValue(const CondAttrListCollection::ChanNum& chanNum, const float value) {
20 m_channelValues[chanNum] = value;
21}
22
24// get the float value for a channel
25bool SCT_DCSFloatCondData::getValue(const CondAttrListCollection::ChanNum& chanNum, float& value) const {
26 auto itr{m_channelValues.find(chanNum)};
27 if (itr!=m_channelValues.end()) {
28 value = itr->second;
29 return true;
30 }
31 // the channel is not found.
32 return false;
33}
34
36// clear
header file for data object for SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
void setValue(const CondAttrListCollection::ChanNum &chanNum, const float value)
Set a float value for a channel.
void clear()
Clear the m_channelValues.
FloatConditions m_channelValues
bool getValue(const CondAttrListCollection::ChanNum &chanNum, float &value) const
Get the float value for a channel.