Skip to content
Snippets Groups Projects
Commit 252ec350 authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

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: 2603e8b1
parent c37d3566
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment