Skip to content
Snippets Groups Projects
Commit 1a13a754 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

MuonCompetingRIOsOnTrack: Update for thread-safety checker const changes.

    
The thread-safety checker is getting more strict on const checks.
Fix resulting warnings.
parent 3b64ca7f
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!48516MuonCompetingRIOsOnTrack: Update for thread-safety checker const changes.
......@@ -22,6 +22,7 @@
#include "CxxUtils/CachedUniquePtr.h"
#include <ostream>
#include <utility>
class MsgStream;
......@@ -182,7 +183,7 @@ CompetingMuonClustersOnTrack::associatedSurface() const
if (m_associatedSurface) {
return *m_associatedSurface;
}
return ((*(m_containedChildRots->begin()))->associatedSurface());
return ((*(std::as_const(*m_containedChildRots).begin()))->associatedSurface());
}
inline const Trk::Surface*
......@@ -206,7 +207,7 @@ CompetingMuonClustersOnTrack::containedROTs() const
inline const MuonClusterOnTrack&
CompetingMuonClustersOnTrack::rioOnTrack(unsigned int indx) const
{
return *m_containedChildRots->operator[](indx);
return *std::as_const(*m_containedChildRots)[indx];
}
inline const Amg::Vector3D&
......
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