[yoda-svn] yoda: 5 new changesets

YODA Mercurial yoda at projects.hepforge.org
Sun Oct 4 16:45:01 BST 2015


details:   https://yoda.hepforge.org/hg/yoda/rev/50931a971859
branches:  
changeset: 1138:50931a971859
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Oct 04 08:24:51 2015 +0100
description:
Add a YODA::version() function, mapped into Python and used to set the yoda.__version__ variable.

details:   https://yoda.hepforge.org/hg/yoda/rev/70605521e1ca
branches:  
changeset: 1139:70605521e1ca
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Oct 04 08:38:06 2015 +0100
description:
Map Counter mkScatter() into Python (as bound method).

details:   https://yoda.hepforge.org/hg/yoda/rev/ded1b7cfcc92
branches:  
changeset: 1140:ded1b7cfcc92
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Oct 04 08:58:05 2015 +0100
description:
Map Counter arithmetic operations into Python.

details:   https://yoda.hepforge.org/hg/yoda/rev/f2b5a5fad6ec
branches:  
changeset: 1141:f2b5a5fad6ec
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Oct 04 09:14:15 2015 +0100
description:
Adding dim() function and corresponding Python attribute to AnalysisObject.

details:   https://yoda.hepforge.org/hg/yoda/rev/a9ba718bd8f8
branches:  
changeset: 1142:a9ba718bd8f8
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Oct 04 09:59:38 2015 +0100
description:
Bump version number to 1.5.4 in anticipation of release along with Rivet 2.4.0

diffs (truncated from 564 to 50 lines):

--- a/ChangeLog	Thu Oct 01 22:39:51 2015 +0100
+++ b/ChangeLog	Sun Oct 04 09:59:38 2015 +0100
@@ -1,3 +1,14 @@
+2015-10-04  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Adding dim() function and corresponding Python attribute to AnalysisObject.
+
+	* Map Counter arithmetic operations into Python.
+
+	* Map Counter mkScatter() into Python (as bound method).
+
+	* Add a YODA::version() function, mapped into Python and used to
+	set the yoda.__version__ variable.
+
 2015-10-01  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Expose the yoda.plot() Python function in a way that doesn't
--- a/configure.ac	Thu Oct 01 22:39:51 2015 +0100
+++ b/configure.ac	Sun Oct 04 09:59:38 2015 +0100
@@ -1,7 +1,7 @@
 ## Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT([YODA],[1.5.3],[yoda at projects.hepforge.org],[YODA])
+AC_INIT([YODA],[1.5.4],[yoda at projects.hepforge.org],[YODA])
 
 ## Check and block installation into the src/build dir
 if test "$prefix" = "$PWD"; then
--- a/include/YODA/AnalysisObject.h	Thu Oct 01 22:39:51 2015 +0100
+++ b/include/YODA/AnalysisObject.h	Sun Oct 04 09:59:38 2015 +0100
@@ -233,14 +233,20 @@
 
   public:
 
-    /// @name Persistency hooks
+    /// @name Persistency hooks / object type info
     //@{
 
-    /// Get name of the analysis object type, for persistency
+    /// Get name of the analysis object type
     virtual std::string type() const {
       return annotation("Type");
     }
 
+    /// @brief Get the dimension of the analysis object type
+    ///
+    /// @note For fillable types this is the dimension of the fill space (e.g. Histo1D -> dim=1).
+    ///    For scatter types, it is the total dimension of the points (e.g. Scatter3D -> dim=3).
+    virtual int dim() const = 0;
+


More information about the yoda-svn mailing list