ATLAS Offline Software
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
13  m_channelValues{}
14 {
15 }
16 
18 // set a float value for a channel
21 }
22 
24 // get the float value for a channel
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
38  m_channelValues.clear();
39 }
athena.value
value
Definition: athena.py:122
checkCoolLatestUpdate.chanNum
chanNum
Definition: checkCoolLatestUpdate.py:27
SCT_DCSFloatCondData::m_channelValues
FloatConditions m_channelValues
Definition: SCT_DCSFloatCondData.h:49
SCT_DCSFloatCondData.h
header file for data object for SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
SCT_DCSFloatCondData::SCT_DCSFloatCondData
SCT_DCSFloatCondData()
Constructor.
Definition: SCT_DCSFloatCondData.cxx:12
CondAttrListCollection::ChanNum
unsigned int ChanNum
Definition: CondAttrListCollection.h:55
SCT_DCSFloatCondData::clear
void clear()
Clear the m_channelValues.
Definition: SCT_DCSFloatCondData.cxx:37
SCT_DCSFloatCondData::setValue
void setValue(const CondAttrListCollection::ChanNum &chanNum, const float value)
Set a float value for a channel.
Definition: SCT_DCSFloatCondData.cxx:19
SCT_DCSFloatCondData::getValue
bool getValue(const CondAttrListCollection::ChanNum &chanNum, float &value) const
Get the float value for a channel.
Definition: SCT_DCSFloatCondData.cxx:25