|
[Rivet-svn] r3808 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Jul 4 14:32:29 BST 2012
Author: hoeth Date: Wed Jul 4 14:32:29 2012 New Revision: 3808 Log: Scatter2D cleanup in CDF_2008_S7782535 Modified: trunk/src/Analyses/CDF_2008_S7782535.cc Modified: trunk/src/Analyses/CDF_2008_S7782535.cc ============================================================================== --- trunk/src/Analyses/CDF_2008_S7782535.cc Wed Jul 4 14:17:46 2012 (r3807) +++ trunk/src/Analyses/CDF_2008_S7782535.cc Wed Jul 4 14:32:29 2012 (r3808) @@ -99,8 +99,11 @@ for (size_t i = 0; i < _ptedges.size()-1; ++i) { // Get entry for rad_Psi = 0.2 bin Profile1DPtr ph_i = _h_Psi_pT[i]; - _h_OneMinusPsi_vs_pT->point(i).setY(1.0 - ph_i->bin(1).mean()); - _h_OneMinusPsi_vs_pT->point(i).setYErr(ph_i->bin(1).stdErr()); + const double ex = 0.5*(_ptedges[i+1] - _ptedges[i]); + const double x = _ptedges[i] + ex; + const double y = 1.0 - ph_i->bin(1).mean(); + const double ey = ph_i->bin(1).stdErr(); + _h_OneMinusPsi_vs_pT->addPoint(x, y, ex, ey); } }
More information about the Rivet-svn mailing list |