|
[yoda-svn] yoda: Make sure bin edges are ascending when using Histo ctor wi...YODA Mercurial yoda at projects.hepforge.orgWed Feb 10 17:45:02 GMT 2016
details: https://yoda.hepforge.org/hg/yoda/rev/bd0ac7cb8ae2 branches: changeset: 1215:bd0ac7cb8ae2 user: Holger Schulz <hschulz at physik.hu-berlin.de> date: Wed Feb 10 17:30:25 2016 +0000 description: Make sure bin edges are ascending when using Histo ctor with vector<double> binedges --- led to random error message on runtime diffs (10 lines): --- a/include/YODA/Axis1D.h Fri Feb 05 12:45:27 2016 +0000 +++ b/include/YODA/Axis1D.h Wed Feb 10 17:30:25 2016 +0000 @@ -365,6 +365,7 @@ double low = binedges.front(); for (size_t i = 1; i < binedges.size(); ++i) { const double high = binedges[i]; + assert(high>low); // Make sure binedges are meaningful newBins.push_back(Bin(low, high)); low = high; }
More information about the yoda-svn mailing list |