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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jun 28 12:39:19 BST 2012


Author: hoeth
Date: Thu Jun 28 12:39:19 2012
New Revision: 3779

Log:
easier way of finding bin center

Modified:
   trunk/src/Analyses/ATLAS_2012_I1091481.cc

Modified: trunk/src/Analyses/ATLAS_2012_I1091481.cc
==============================================================================
--- trunk/src/Analyses/ATLAS_2012_I1091481.cc	Thu Jun 28 12:34:24 2012	(r3778)
+++ trunk/src/Analyses/ATLAS_2012_I1091481.cc	Thu Jun 28 12:39:19 2012	(r3779)
@@ -121,8 +121,7 @@
 
     void fillS(AIDA::IHistogram1D* h, const ParticleVector& part, double weight, std::vector<double> Xj, bool SE=true) {
       for (int i=0; i< h->axis().bins(); i++) {
-        double x = h->axis().binLowerEdge(i);
-        x += 0.5 * (h->axis().binUpperEdge(i) - h->axis().binLowerEdge(i));
+        double x = h->binMean(i);
         double y;
         if (SE) y = getSE(part, Xj, x);
         else    y = getSeta(part, x);


More information about the Rivet-svn mailing list