[Rivet-svn] r3809 - trunk/src/Analyses

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jul 4 15:01:18 BST 2012


Author: hoeth
Date: Wed Jul  4 15:01:18 2012
New Revision: 3809

Log:
Scatter2D cleanup in CDF_2005_S6217184

Modified:
   trunk/src/Analyses/CDF_2005_S6217184.cc

Modified: trunk/src/Analyses/CDF_2005_S6217184.cc
==============================================================================
--- trunk/src/Analyses/CDF_2005_S6217184.cc	Wed Jul  4 14:32:29 2012	(r3808)
+++ trunk/src/Analyses/CDF_2005_S6217184.cc	Wed Jul  4 15:01:18 2012	(r3809)
@@ -97,9 +97,11 @@
       for (size_t i = 0; i < _ptedges.size()-1; ++i) {
         // Get entry for rad_Psi = 0.2 bin
         Profile1DPtr ph_i = _profhistPsi_pT[i];
-
-	_profhistPsi_vs_pT->point(i).setY(ph_i->bin(2).mean());
-	_profhistPsi_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  = ph_i->bin(2).mean();
+        const double ey = ph_i->bin(2).stdErr();
+        _profhistPsi_vs_pT->addPoint(x, y, ex, ey);
       }
     }
 


More information about the Rivet-svn mailing list