|
[Rivet-svn] rivet: fixed infinite recursionRivet Mercurial rivet at projects.hepforge.orgTue Sep 8 00:45:01 BST 2015
details: https://rivet.hepforge.org/hg/rivet/rev/5279cbfecda6 branches: release-2-3-x changeset: 4846:5279cbfecda6 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Tue Sep 08 00:37:53 2015 +0100 description: fixed infinite recursion diffs (28 lines): --- a/include/Rivet/Math/Vector4.hh Tue Sep 01 10:35:08 2015 +0200 +++ b/include/Rivet/Math/Vector4.hh Tue Sep 08 00:37:53 2015 +0100 @@ -417,13 +417,13 @@ /// Struct for sorting by increasing energy struct byEAscending { bool operator()(const FourMomentum& left, const FourMomentum& right) const{ - double pt2left = left.E(); - double pt2right = right.E(); + const double pt2left = left.E(); + const double pt2right = right.E(); return pt2left < pt2right; } bool operator()(const FourMomentum* left, const FourMomentum* right) const{ - return (*this)(left, right); + return (*this)(*left, *right); } }; @@ -434,7 +434,7 @@ } bool operator()(const FourMomentum* left, const FourVector* right) const{ - return (*this)(left, right); + return (*this)(*left, *right); } };
More information about the Rivet-svn mailing list |