ATLAS Offline Software
Public Member Functions | Private Types | Private Attributes | List of all members
SCT_DCSFloatCondData Class Reference

Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool, SCT_SiliconConditions{HV,Temp}CondAlg, SCTSiPropertiesCondAlg, SCTSiLorentzAngleCondAlg. More...

#include <SCT_DCSFloatCondData.h>

Collaboration diagram for SCT_DCSFloatCondData:

Public Member Functions

 SCT_DCSFloatCondData ()
 Constructor. More...
 
virtual ~SCT_DCSFloatCondData ()=default
 Destructor. More...
 
void setValue (const CondAttrListCollection::ChanNum &chanNum, const float value)
 Set a float value for a channel. More...
 
bool getValue (const CondAttrListCollection::ChanNum &chanNum, float &value) const
 Get the float value for a channel. More...
 
void clear ()
 Clear the m_channelValues. More...
 

Private Types

typedef std::map< CondAttrListCollection::ChanNum, float > FloatConditions
 

Private Attributes

FloatConditions m_channelValues
 

Detailed Description

Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool, SCT_SiliconConditions{HV,Temp}CondAlg, SCTSiPropertiesCondAlg, SCTSiLorentzAngleCondAlg.

Definition at line 30 of file SCT_DCSFloatCondData.h.

Member Typedef Documentation

◆ FloatConditions

Definition at line 48 of file SCT_DCSFloatCondData.h.

Constructor & Destructor Documentation

◆ SCT_DCSFloatCondData()

SCT_DCSFloatCondData::SCT_DCSFloatCondData ( )

Constructor.

Definition at line 12 of file SCT_DCSFloatCondData.cxx.

12  :
14 {
15 }

◆ ~SCT_DCSFloatCondData()

virtual SCT_DCSFloatCondData::~SCT_DCSFloatCondData ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clear()

void SCT_DCSFloatCondData::clear ( )

Clear the m_channelValues.

Definition at line 37 of file SCT_DCSFloatCondData.cxx.

37  {
38  m_channelValues.clear();
39 }

◆ getValue()

bool SCT_DCSFloatCondData::getValue ( const CondAttrListCollection::ChanNum chanNum,
float &  value 
) const

Get the float value for a channel.

Definition at line 25 of file SCT_DCSFloatCondData.cxx.

25  {
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 }

◆ setValue()

void SCT_DCSFloatCondData::setValue ( const CondAttrListCollection::ChanNum chanNum,
const float  value 
)

Set a float value for a channel.

Definition at line 19 of file SCT_DCSFloatCondData.cxx.

19  {
21 }

Member Data Documentation

◆ m_channelValues

FloatConditions SCT_DCSFloatCondData::m_channelValues
private

Definition at line 49 of file SCT_DCSFloatCondData.h.


The documentation for this class was generated from the following files:
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