|
ATLAS Offline Software
|
Go to the documentation of this file.
16 return StatusCode::SUCCESS;
23 if (writeHandle.isValid()) {
25 return StatusCode::SUCCESS;
32 return StatusCode::FAILURE;
35 if(!cHdl.
range(rangeIn)) {
37 return StatusCode::FAILURE;
40 std::unique_ptr<LArFEBTempData> febTemp=std::make_unique<LArFEBTempData>();
44 citr!=cattr->
end();++citr) {
46 if(! ((*citr).second)[
"temp1"].isNull()) temp1 = (((*citr).second)[
"temp1"]).data<
float>();
48 if(! ((*citr).second)[
"temp2"].isNull()) temp2 = (((*citr).second)[
"temp2"]).data<float>();
54 const EventIDRange crangeW(rangeIn);
55 if(writeHandle.record(crangeW,febTemp.release()).isFailure()) {
56 ATH_MSG_ERROR(
"Could not record LArFebConfig object with " << writeHandle.key()
57 <<
" with EventRange " << crangeW <<
" into Conditions Store");
58 return StatusCode::FAILURE;
61 ATH_MSG_INFO(
"recorded new " << writeHandle.key() <<
" with range " << crangeW <<
" into Conditions Store");
63 return StatusCode::SUCCESS;
SG::WriteCondHandleKey< LArFEBTempData > m_tempKey
const_iterator end() const
std::pair< float, float > FEBTemp
LArFEBTempAlg(const std::string &name, ISvcLocator *pSvcLocator)
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
bool range(EventIDRange &r)
This class is a collection of AttributeLists where each one is associated with a channel number....
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override final
std::map< HWIdentifier, FEBTemp > m_mapVec
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override final
StatusCode initialize(bool used=true)
ChanAttrListMap::const_iterator const_iterator
SG::ReadCondHandleKey< CondAttrListCollection > m_foldernameKey
const std::string & key() const