diff --git a/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/ATLAS_CHECK_THREAD_SAFETY b/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/ATLAS_CHECK_THREAD_SAFETY new file mode 100644 index 0000000000000000000000000000000000000000..01c4109ea7ff6a24fb48f6c36760285e95257c73 --- /dev/null +++ b/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/ATLAS_CHECK_THREAD_SAFETY @@ -0,0 +1 @@ +Reconstruction/RecoAlgs/TrackParticleAssociationAlgs diff --git a/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/src/TrackParticleClusterAssociationAlg.cxx b/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/src/TrackParticleClusterAssociationAlg.cxx index c6e04a617a67e296858efccdaef49fd25c0ee3cc..982abae22644a39c7993b48f8230762bf1494275 100644 --- a/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/src/TrackParticleClusterAssociationAlg.cxx +++ b/Reconstruction/RecoAlgs/TrackParticleAssociationAlgs/src/TrackParticleClusterAssociationAlg.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ #include "TrackParticleClusterAssociationAlg.h" @@ -54,7 +54,7 @@ StatusCode TrackParticleClusterAssociationAlg::execute() // pre-calculate a width of clusters, set it as dynamica attribute so we don't have to recalculate it SG::ReadHandle<xAOD::CaloClusterContainer> clusterContainer(m_caloClusters); ATH_MSG_DEBUG("retrieved "<< m_caloClusters.key() << " size = "<< clusterContainer->size() ); - static SG::AuxElement::Decorator<float> sig_dec("sigmaWidth"); + static const SG::AuxElement::Decorator<float> sig_dec("sigmaWidth"); //for(const xAOD::CaloCluster *cl : *clusterContainer){ for(const xAOD::CaloCluster *cl : *clusterContainer){ double rad; @@ -166,7 +166,7 @@ std::vector<const xAOD::CaloCluster* > TrackParticleClusterAssociationAlg::assoc float dr2Cut0 = m_dr*m_dr; // to access the pre-calculated width : - static SG::AuxElement::ConstAccessor<float> sig_acc("sigmaWidth"); + static const SG::AuxElement::ConstAccessor<float> sig_acc("sigmaWidth"); for(const xAOD::CaloCluster * cl : allClusters){ diff --git a/Reconstruction/RecoTools/ITrackToVertex/ITrackToVertex/ATLAS_CHECK_THREAD_SAFETY b/Reconstruction/RecoTools/ITrackToVertex/ITrackToVertex/ATLAS_CHECK_THREAD_SAFETY new file mode 100644 index 0000000000000000000000000000000000000000..a0bbd5f1e715f82231fcb9acb0b230744ee85fa6 --- /dev/null +++ b/Reconstruction/RecoTools/ITrackToVertex/ITrackToVertex/ATLAS_CHECK_THREAD_SAFETY @@ -0,0 +1 @@ +Reconstruction/RecoTools/ITrackToVertex