Commit 9fe45990 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'attrList.TRT_ConditionsServices-20200222' into 'master'

TRT_ConditionsServices: Avoid copying AttributeList.

See merge request atlas/athena!30554
parents 090f45fa cc4ef9d1
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
/** @file TRT_DCS_ConditionsSvc.cxx
......@@ -264,7 +264,7 @@ StatusCode TRT_DCS_ConditionsSvc::getValue( const std::string foldername,
<< " for this IOV." );
return StatusCode::FAILURE;
}
CondAttrListCollection::AttributeList attrList = (*chanAttrListPair).second;
const CondAttrListCollection::AttributeList& attrList = (*chanAttrListPair).second;
// Get the value
theValue = attrList["OUTPUTVOLTAGE_VALUE"].data<InDet::TRT_DCS_ValueType>();
......@@ -305,7 +305,7 @@ StatusCode TRT_DCS_ConditionsSvc::getValue( const std::string foldername,
<< " for this IOV." );
return StatusCode::FAILURE;
}
CondAttrListCollection::AttributeList attrList = (*chanAttrListPair).second;
const CondAttrListCollection::AttributeList& attrList = (*chanAttrListPair).second;
// Get the value
theValue = attrList["OUTPUTVOLTAGE_VALUE"].data<InDet::TRT_DCS_ValueType>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment