From 252ec3509596edded5db46e1042f9f159b9717c0 Mon Sep 17 00:00:00 2001 From: scott snyder <scott.snyder@cern.ch> Date: Wed, 27 Dec 2017 17:20:43 +0100 Subject: [PATCH] EventCommonAlgs: const fixes. DataVector has had a long-standing bug in which it was possible to get a non-const pointer from a const_iterator. This package was relying on this bug to compile. Fix this. Former-commit-id: 2603e8b150921cb5b1583db4e5528c929b6b904a --- Event/EventCommonAlgs/src/I4MomDumper.cxx | 2 +- Event/EventCommonAlgs/src/INav4MomDumper.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Event/EventCommonAlgs/src/I4MomDumper.cxx b/Event/EventCommonAlgs/src/I4MomDumper.cxx index 9c09222e109..9cff05b2071 100644 --- a/Event/EventCommonAlgs/src/I4MomDumper.cxx +++ b/Event/EventCommonAlgs/src/I4MomDumper.cxx @@ -195,7 +195,7 @@ I4MomDumper::dump( const std::string& collName ) } // sorting the collection by Pt - typedef std::set<I4Momentum*, P4Sorters::Descending::Pt> Coll_t; + typedef std::set<const I4Momentum*, P4Sorters::Descending::Pt> Coll_t; Coll_t i4moms( coll->begin(), coll->end() ); if ( m_display == Display::EEtaPhiM ) { diff --git a/Event/EventCommonAlgs/src/INav4MomDumper.cxx b/Event/EventCommonAlgs/src/INav4MomDumper.cxx index d4c1d7d904b..32e38d82323 100755 --- a/Event/EventCommonAlgs/src/INav4MomDumper.cxx +++ b/Event/EventCommonAlgs/src/INav4MomDumper.cxx @@ -178,7 +178,7 @@ INav4MomDumper::dump( const std::string& collName ) } // sorting the collection by Pt - typedef std::set<INavigable4Momentum*, P4Sorters::Descending::Pt> Coll_t; + typedef std::set<const INavigable4Momentum*, P4Sorters::Descending::Pt> Coll_t; Coll_t inav4moms( coll->begin(), coll->end() ); FourMomUtils::dump( out, inav4moms ); -- GitLab