|
[yoda-svn] yoda: Fix double-writing of minus errors in WriterYODA for Scatt...YODA Mercurial yoda at projects.hepforge.orgThu Apr 14 22:30:02 BST 2016
details: https://yoda.hepforge.org/hg/yoda/rev/cc63b585dd68 branches: changeset: 1240:cc63b585dd68 user: Andy Buckley <andy at insectnation.org> date: Thu Apr 14 22:29:10 2016 +0100 description: Fix double-writing of minus errors in WriterYODA for Scatter1D and Scatter3D. Add a few consts to the arguments in Scatter error setting via pairs. diffs (truncated from 106 to 50 lines): --- a/ChangeLog Thu Apr 14 09:32:37 2016 +0100 +++ b/ChangeLog Thu Apr 14 22:29:10 2016 +0100 @@ -1,3 +1,10 @@ +2016-04-14 Andy Buckley <andy.buckley at cern.ch> + + * Add a few consts to the arguments in Scatter error setting via pairs. + + * Fix double-writing of minus errors in WriterYODA for Scatter1D + and Scatter3D. + 2016-04-12 Andy Buckley <andy.buckley at cern.ch> * Remove Boost dependency and require C++11 compilation. --- a/include/YODA/Point1D.h Thu Apr 14 09:32:37 2016 +0100 +++ b/include/YODA/Point1D.h Thu Apr 14 22:29:10 2016 +0100 @@ -134,7 +134,7 @@ } /// Set asymmetric x error - void setXErrs(std::pair<double,double>& ex) { + void setXErrs(const std::pair<double,double>& ex) { _ex = ex; } --- a/include/YODA/Point2D.h Thu Apr 14 09:32:37 2016 +0100 +++ b/include/YODA/Point2D.h Thu Apr 14 22:29:10 2016 +0100 @@ -118,7 +118,7 @@ void setXY(double x, double y) { setX(x); setY(y); } /// Set x and y values - void setXY(std::pair<double,double>& xy) { setX(xy.first); setY(xy.second); } + void setXY(const std::pair<double,double>& xy) { setX(xy.first); setY(xy.second); } //@} @@ -174,7 +174,7 @@ } /// Set asymmetric x error - void setXErrs(std::pair<double,double>& ex) { + void setXErrs(const std::pair<double,double>& ex) { _ex = ex; } @@ -244,7 +244,7 @@ } /// Set asymmetric y error - void setYErrs(std::pair<double,double>& ey) { + void setYErrs(const std::pair<double,double>& ey) {
More information about the yoda-svn mailing list |