[Rivet-svn] r2204 - trunk/pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun Jan 3 19:31:50 GMT 2010


Author: holsch
Date: Sun Jan  3 19:31:50 2010
New Revision: 2204

Log:
Be less verbose when chopping a bin, added 'getYVal()' function to save a lot of work when adapting Professor to use the lighthisto-package.

Modified:
   trunk/pyext/lighthisto.py

Modified: trunk/pyext/lighthisto.py
==============================================================================
--- trunk/pyext/lighthisto.py	Tue Dec 29 15:00:49 2009	(r2203)
+++ trunk/pyext/lighthisto.py	Sun Jan  3 19:31:50 2010	(r2204)
@@ -228,7 +228,7 @@
                         br[0] <= curran[1] <= br[1])):
                 new.addBin(b)
             else:
-                logging.info("Chopping bin %s:%f" % (self.fullPath(),
+                logging.debug("Chopping bin %s:%f" % (self.fullPath(),
                              b.getBinCenter()))
         return new
 
@@ -392,6 +392,10 @@
         else:
             return self.focus
 
+    def getYVal(self):
+        """Y-value of the bin."""
+        return self.yval
+
     def area(self):
         return self.yval * (self.xhigh - self.xlow)
     getArea = area


More information about the Rivet-svn mailing list