[Rivet-svn] rivet: 4 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Tue Sep 15 17:15:01 BST 2015


details:   https://rivet.hepforge.org/hg/rivet/rev/4242078a087f
branches:  
changeset: 4852:4242078a087f
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 11 17:33:22 2015 +0100
description:
Comment tweaks

details:   https://rivet.hepforge.org/hg/rivet/rev/9415fe39f930
branches:  
changeset: 4853:9415fe39f930
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Sep 15 17:02:33 2015 +0100
description:
Require Boost 1.55 for robust compilation, as pointed out by Andrii Verbytskyi

details:   https://rivet.hepforge.org/hg/rivet/rev/d05ff1919b1d
branches:  
changeset: 4854:d05ff1919b1d
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Sep 15 17:02:58 2015 +0100
description:
More MissingMomentum changes: add optional 'mass target' argument when retrieving the vector sum as a 4-momentum, with the mass defaulting to 0 rather than sqrt(sum(E)^2 - sum(p)^2).

details:   https://rivet.hepforge.org/hg/rivet/rev/c6c6079484d6
branches:  
changeset: 4855:c6c6079484d6
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Sep 15 17:10:02 2015 +0100
description:
WFinder updates to use new MissingMomentum 4-mom behaviour when assembling pseudo-neutrinos

diffs (truncated from 148 to 50 lines):

--- a/ChangeLog	Thu Sep 10 10:01:00 2015 +0100
+++ b/ChangeLog	Tue Sep 15 17:10:02 2015 +0100
@@ -1,3 +1,12 @@
+2015-09-15  Andy Buckley  <andy.buckley at cern.ch>
+
+	* More MissingMomentum changes: add optional 'mass target'
+	argument when retrieving the vector sum as a 4-momentum, with the
+	mass defaulting to 0 rather than sqrt(sum(E)^2 - sum(p)^2).
+
+	* Require Boost 1.55 for robust compilation, as pointed out by
+	Andrii Verbytskyi.
+
 2015-09-10  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Allow access to MissingMomentum projection via WFinder.
--- a/configure.ac	Thu Sep 10 10:01:00 2015 +0100
+++ b/configure.ac	Tue Sep 15 17:10:02 2015 +0100
@@ -171,7 +171,7 @@
 
 
 ## Boost utility library
-BOOST_REQUIRE([1.40.0])
+BOOST_REQUIRE([1.55.0])
 BOOST_FOREACH
 BOOST_SMART_PTR
 BOOST_FIND_HEADER([boost/lexical_cast.hpp])
--- a/include/Rivet/Projections/MissingMomentum.hh	Thu Sep 10 10:01:00 2015 +0100
+++ b/include/Rivet/Projections/MissingMomentum.hh	Tue Sep 15 17:10:02 2015 +0100
@@ -45,15 +45,24 @@
   public:
 
     /// The vector-summed visible four-momentum in the event.
+    ///
     /// @note Reverse this vector with operator- to get the missing momentum vector.
-    const FourMomentum& visibleMomentum() const { return _momentum; }
+    ///
+    /// @note The optional @a mass argument is used to set a mass on the 4-vector. By
+    ///   default it is zero (since missing momentum is really a 3-momentum quantity:
+    ///   adding the E components of visible momenta just gives a huge mass)
+    const FourMomentum visibleMomentum(double mass=0*GeV) const;
     /// Alias for visibleMomentum
-    const FourMomentum& visibleMom() const { return visibleMomentum(); }
+    const FourMomentum visibleMom(double mass=0*GeV) const { return visibleMomentum(mass); }
 
     /// The missing four-momentum in the event, required to balance the final state.
-    const FourMomentum missingMomentum() const { return -visibleMomentum(); }
+    ///
+    /// @note The optional @a mass argument is used to set a mass on the 4-vector. By
+    ///   default it is zero (since missing momentum is really a 3-momentum quantity:
+    ///   adding the E components of visible momenta just gives a huge mass)


More information about the Rivet-svn mailing list