Skip to content
Snippets Groups Projects
Commit 6b95d3de authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'master-TRT_GeoModel' into 'master'

Fix or mark a part of thread safety issues of TRT_GeoModel.

See merge request atlas/athena!34298
parents 50362196 2b1cbf9c
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ atlas_depends_on_subdirs( PUBLIC
InnerDetector/InDetDetDescr/InDetReadoutGeometry
InnerDetector/InDetDetDescr/TRT_ReadoutGeometry
PRIVATE
Control/CxxUtils
Control/SGTools
Control/StoreGate
Database/AthenaPOOL/AthenaPoolUtilities
......@@ -37,7 +38,7 @@ atlas_add_component( TRT_GeoModel
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${CORAL_INCLUDE_DIRS}
LINK_LIBRARIES ${CORAL_LIBRARIES} ${GEOMODELCORE_LIBRARIES} AthenaKernel GeoModelUtilities GaudiKernel TRT_ConditionsServicesLib InDetGeoModelUtils InDetReadoutGeometry TRT_ReadoutGeometry SGTools StoreGateLib SGtests AthenaPoolUtilities DetDescrConditions IdDictDetDescr TRT_ConditionsData InDetIdentifier GeometryDBSvcLib )
LINK_LIBRARIES ${CORAL_LIBRARIES} ${GEOMODELCORE_LIBRARIES} AthenaKernel GeoModelUtilities GaudiKernel TRT_ConditionsServicesLib InDetGeoModelUtils InDetReadoutGeometry TRT_ReadoutGeometry CxxUtils SGTools StoreGateLib SGtests AthenaPoolUtilities DetDescrConditions IdDictDetDescr TRT_ConditionsData InDetIdentifier GeometryDBSvcLib )
atlas_add_test( TRT_GMConfig_test
SCRIPT test/TRT_GMConfig_test.py
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "TRT_DetDescrDB_ParameterInterface.h"
......@@ -503,7 +503,7 @@ const GeoTrf::Transform3D &
TRT_DetDescrDB_ParameterInterface::partTransform(const std::string & partName) const
{
if (m_placements) return m_placements->transform(partName);
static GeoTrf::Transform3D unitTransform = GeoTrf::Transform3D::Identity();
static const GeoTrf::Transform3D unitTransform = GeoTrf::Transform3D::Identity();
return unitTransform;
}
......
......@@ -20,6 +20,8 @@
#include "AthenaKernel/ClassID_traits.h"
#include "SGTools/DataProxy.h"
#include "CxxUtils/checker_macros.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////
// Please consult the README for more information about which options to set in your joboptions file. //
////////////////////////////////////////////////////////////////////////////////////////////////////////
......@@ -220,7 +222,7 @@ StatusCode TRT_DetectorTool::create()
StatusCode
TRT_DetectorTool::registerCallback()
TRT_DetectorTool::registerCallback ATLAS_NOT_THREAD_SAFE ()
{
// This callback is kept because the folder never changes.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment