|
[Rivet-svn] rivet: scatters multiweighted.Rivet Mercurial rivet at projects.hepforge.orgFri Aug 25 13:45:02 BST 2017
details: https://rivet.hepforge.org/hg/rivet/rev/c1c5eb31ab83 branches: multi-scatters changeset: 5980:c1c5eb31ab83 user: Chris Pollard <cspollard at gmail.com> date: Fri Aug 25 14:44:38 2017 +0200 description: scatters multiweighted. diffs (truncated from 260 to 50 lines): --- a/include/Rivet/Analysis.hh Fri Jul 28 15:19:23 2017 +0100 +++ b/include/Rivet/Analysis.hh Fri Aug 25 14:44:38 2017 +0200 @@ -597,7 +597,7 @@ /// assuming that there is a reference histo with the same name: if there /// isn't, an exception will be thrown. - Scatter2DPtr& bookScatter2D(const std::string& name, + void book(Scatter2DPtr & s2d, const string& hname, bool copy_pts=false, const std::string& title="", const std::string& xtitle="", @@ -613,7 +613,7 @@ /// meaningful and can't be extracted from the data, then set the @a /// copy_pts parameter to true. This creates points to match the reference /// data's x values and errors, but with the y values and errors zeroed. - Scatter2DPtr& bookScatter2D(unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId, + void book(Scatter2DPtr & s2d, unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId, bool copy_pts=false, const std::string& title="", const std::string& xtitle="", @@ -622,7 +622,7 @@ /// @brief Book a 2-dimensional data point set with equally spaced x-points in a range. /// /// The y values and errors will be set to 0. - Scatter2DPtr& bookScatter2D(const std::string& name, + void book(Scatter2DPtr & s2d, const string& hname, size_t npts, double lower, double upper, const std::string& title="", const std::string& xtitle="", @@ -631,7 +631,7 @@ /// @brief Book a 2-dimensional data point set based on provided contiguous "bin edges". /// /// The y values and errors will be set to 0. - Scatter2DPtr& bookScatter2D(const std::string& hname, + void book(Scatter2DPtr & s2d, const string& hname, const std::vector<double>& binedges, const std::string& title, const std::string& xtitle, --- a/src/Core/Analysis.cc Fri Jul 28 15:19:23 2017 +0100 +++ b/src/Core/Analysis.cc Fri Aug 25 14:44:38 2017 +0200 @@ -191,7 +191,7 @@ } - void Analysis::book(CounterPtr & ctr, + void Analysis::book(CounterPtr & ctr, const string& cname, const string& title) { const string path = histoPath(cname); @@ -447,17 +447,17 @@
More information about the Rivet-svn mailing list |