[Rivet-svn] rivet: 3 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Fri Sep 2 09:45:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/2ad6614e9d8b
branches:  release-2-5-x
changeset: 5428:2ad6614e9d8b
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Sep 01 17:48:27 2016 +0100
description:
Add overloaded versions of the Event::allParticles() method with selection Cut or templated selection function arguments.

details:   https://rivet.hepforge.org/hg/rivet/rev/8aeaa4fd5cd0
branches:  release-2-5-x
changeset: 5429:8aeaa4fd5cd0
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Sep 01 18:18:54 2016 +0100
description:
Add a simple PartonicTopFinder projection (to be expanded!)

details:   https://rivet.hepforge.org/hg/rivet/rev/bcc173b95da1
branches:  release-2-5-x
changeset: 5430:bcc173b95da1
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 09:29:35 2016 +0100
description:
Add ATLAS MV2c10 and MV2c20 b-tagging effs to SmearingFunctions.hh collection.

diffs (truncated from 206 to 50 lines):

--- a/ChangeLog	Thu Aug 25 20:43:13 2016 +0100
+++ b/ChangeLog	Fri Sep 02 09:29:35 2016 +0100
@@ -1,3 +1,14 @@
+2016-09-02  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Add ATLAS MV2c10 and MV2c20 b-tagging effs to SmearingFunctions.hh collection.
+
+2016-09-01  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Add a PartonicTopFinder projection.
+
+	* Add overloaded versions of the Event::allParticles() method with
+	selection Cut or templated selection function arguments.
+
 2016-08-25  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Add rapidity scheme arg to DeltaR functor constructors.
--- a/include/Rivet/Event.hh	Thu Aug 25 20:43:13 2016 +0100
+++ b/include/Rivet/Event.hh	Fri Sep 02 09:29:35 2016 +0100
@@ -68,6 +68,21 @@
     /// All the raw GenEvent particles, wrapped in Rivet::Particle objects
     const Particles& allParticles() const;
 
+    /// @brief All the raw GenEvent particles, wrapped in Rivet::Particle objects, but with a Cut applied
+    ///
+    /// @note Due to the cut, this returns by value, i.e. involves an expensive copy
+    inline Particles allParticles(const Cut& c) const {
+      return filter_select(allParticles(), c);
+    }
+
+    /// @brief All the raw GenEvent particles, wrapped in Rivet::Particle objects, but with a selection function applied
+    ///
+    /// @note Due to the cut, this returns by value, i.e. involves an expensive copy
+    template <typename FN>
+    inline Particles allParticles(const FN& f) const {
+      return filter_select(allParticles(), f);
+    }
+
     /// @brief The generation weight associated with the event
     ///
     /// @todo This needs to be revisited when we finally add the mechanism to
--- a/include/Rivet/Makefile.am	Thu Aug 25 20:43:13 2016 +0100
+++ b/include/Rivet/Makefile.am	Fri Sep 02 09:29:35 2016 +0100
@@ -30,31 +30,31 @@
 
 
 ## Projections
-nobase_pkginclude_HEADERS +=   \
+nobase_pkginclude_HEADERS += \
   Projections/AxesDefinition.hh \


More information about the Rivet-svn mailing list