ATLAS Offline Software
SCT_DCSFloatCondData.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
16 #ifndef SCT_DCSFLOATCONDDATA_H
17 #define SCT_DCSFLOATCONDDATA_H
18 
20 
21 #include <map>
22 
31 public:
34 
36  virtual ~SCT_DCSFloatCondData() = default;
37  //@name main methods
39  void setValue(const CondAttrListCollection::ChanNum& chanNum, const float value);
42  bool getValue(const CondAttrListCollection::ChanNum& chanNum, float& value) const;
44  void clear();
46 
47 private:
48  typedef std::map<CondAttrListCollection::ChanNum, float> FloatConditions;
50 };
51 
52 // Class definition for StoreGate
53 #include "AthenaKernel/CLASS_DEF.h"
54 CLASS_DEF( SCT_DCSFloatCondData , 234553277 , 1 )
55 
56 // Condition container definition for CondInputLoader
57 #include "AthenaKernel/CondCont.h"
59 
60 
61 #endif // SCT_DCSFLOATCONDDATA_H
SCT_DCSFloatCondData
Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
Definition: SCT_DCSFloatCondData.h:30
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
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::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::~SCT_DCSFloatCondData
virtual ~SCT_DCSFloatCondData()=default
Destructor.
SCT_DCSFloatCondData::setValue
void setValue(const CondAttrListCollection::ChanNum &chanNum, const float value)
Set a float value for a channel.
Definition: SCT_DCSFloatCondData.cxx:19
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
SCT_DCSFloatCondData::FloatConditions
std::map< CondAttrListCollection::ChanNum, float > FloatConditions
Definition: SCT_DCSFloatCondData.h:48
CLASS_DEF.h
macros to associate a CLID to a type
CONDCONT_MIXED_DEF
CONDCONT_MIXED_DEF(SCT_DCSFloatCondData, 257878639)
SCT_DCSFloatCondData::getValue
bool getValue(const CondAttrListCollection::ChanNum &chanNum, float &value) const
Get the float value for a channel.
Definition: SCT_DCSFloatCondData.cxx:25