[Rivet-svn] rivet: Add vector and scalar pT (rather than Et) to MissingMomen...

Rivet Mercurial rivet at projects.hepforge.org
Tue Sep 27 19:15:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/fb8019ffec99
branches:  release-2-5-x
changeset: 5529:fb8019ffec99
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Sep 27 19:12:28 2016 +0100
description:
Add vector and scalar pT (rather than Et) to MissingMomentum.

diffs (truncated from 113 to 50 lines):

--- a/ChangeLog	Tue Sep 27 18:17:57 2016 +0100
+++ b/ChangeLog	Tue Sep 27 19:12:28 2016 +0100
@@ -1,3 +1,7 @@
+2016-09-27  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Add vector and scalar pT (rather than Et) to MissingMomentum.
+
 2016-09-22  Holger Schulz  <holger.schulz at cern.ch>
 
 	* Release version 2.5.2
--- a/include/Rivet/Projections/MissingMomentum.hh	Tue Sep 27 18:17:57 2016 +0100
+++ b/include/Rivet/Projections/MissingMomentum.hh	Tue Sep 27 19:12:28 2016 +0100
@@ -40,6 +40,9 @@
     DEFAULT_RIVET_PROJ_CLONE(MissingMomentum);
 
 
+    /// @name Visible/missing four-momentum functions
+    //@{
+
     /// The vector-summed visible four-momentum in the event.
     ///
     /// @note Reverse this vector with .reverse() to get the missing momentum vector.
@@ -60,6 +63,34 @@
     /// Alias for missingMomentum
     const FourMomentum missingMom(double mass=0*GeV) const { return missingMomentum(mass); }
 
+    //@}
+
+
+    /// @name Transverse momentum functions
+    /// @note This may be what you want, even if the paper calls it "missing Et"!
+    //@{
+
+    /// The vector-summed visible transverse momentum in the event, as a 3-vector with z=0
+    /// @note Reverse this vector with operator- to get the missing pT vector.
+    const Vector3& vectorPt() const { return _vpt; }
+
+    /// The vector-summed missing transverse momentum in the event.
+    double missingPt() const { return vectorPt().mod(); }
+    // /// Alias for missingPt
+    // double mpt() const { return missingPt(); }
+
+    /// The scalar-summed visible transverse momentum in the event.
+    double scalarPt() const { return _spt; }
+    // /// Alias for scalarPt
+    // double spt() const { return scalarPt(); }
+
+    //@}
+
+


More information about the Rivet-svn mailing list