Commit cc4ef9d1 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

TRT_ConditionsServices: Avoid copying AttributeList.

    
Copying a coral::AttributeList is not thread-safe.
Avoid it.
parent e5bf4809
/*
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