diff --git a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleCombinerTool.cxx b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleCombinerTool.cxx index a231dd86f4684814a6221ff9303dabb6adf22527..872bf525912ee0e8a694cb1fbb27103b89d0cd1d 100644 --- a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleCombinerTool.cxx +++ b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleCombinerTool.cxx @@ -555,7 +555,7 @@ StatusCode ParticleCombinerTool::buildComposite( xAOD::CompositeParticleContaine // Sort the constituents in decending pt order, if requested if ( m_sortConstit.value() ) { std::sort( anIPartLinkList.begin(), anIPartLinkList.end(), - [this](const xAOD::IParticleLink& a, const xAOD::IParticleLink& b) { + [](const xAOD::IParticleLink& a, const xAOD::IParticleLink& b) { return CxxUtils::fpcompare::greater( (*a)->pt(), (*b)->pt() ); } ); }