ATLAS Offline Software
InnerDetector
InDetConditions
SCT_ConditionsData
src
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
8
#include "
SCT_ConditionsData/SCT_DCSFloatCondData.h
"
9
11
// constructor
12
SCT_DCSFloatCondData::SCT_DCSFloatCondData
():
13
m_channelValues{}
14
{
15
}
16
18
// set a float value for a channel
19
void
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
25
bool
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
37
void
SCT_DCSFloatCondData::clear
() {
38
m_channelValues
.clear();
39
}
athena.value
value
Definition:
athena.py:124
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
Generated on Thu Nov 7 2024 21:25:27 for ATLAS Offline Software by
1.8.18