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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed May 15 11:31:58 BST 2013


Author: buckley
Date: Wed May 15 11:31:58 2013
New Revision: 4289

Log:
ARGUS Scatter point setting rewritten: neater now

Modified:
   trunk/src/Analyses/ARGUS_1993_S2669951.cc

Modified: trunk/src/Analyses/ARGUS_1993_S2669951.cc
==============================================================================
--- trunk/src/Analyses/ARGUS_1993_S2669951.cc	Wed May 15 11:30:41 2013	(r4288)
+++ trunk/src/Analyses/ARGUS_1993_S2669951.cc	Wed May 15 11:31:58 2013	(r4289)
@@ -125,9 +125,7 @@
 
       // @todo YODA
 
-      Scatter2DPtr mult_etaPrime_highZ = bookScatter2D(1, 1, 1);
-      for (size_t i = 0; i < mult_etaPrime_highZ->numPoints(); ++i) {
-        Point2D& p = mult_etaPrime_highZ->point(i);
+      foreach (Point2D& p, bookScatter2D(1, 1, 1)->points()) {
         if (fuzzyEquals(9.905, p.x(), 1e-3) && _weightSum_cont > 0) {
           p.setY(_count_etaPrime_highZ[1] / _weightSum_cont);
         } else if (fuzzyEquals( 9.46, p.x(), 1e-3) && _weightSum_Ups1 > 0) {


More information about the Rivet-svn mailing list