[Rivet-svn] rivet: 3 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Thu Jul 21 16:15:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/2e07848d637a
branches:  release-2-5-x
changeset: 5334:2e07848d637a
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Jul 21 16:00:15 2016 +0100
description:
Add optional Cut and duplicate-removal flags to Particle children & descendants methods.  Add Particle::isPrompt() as a member rather than unbound function.  Add unbound versions of Particle is* and from* methods, for easier functor use.

details:   https://rivet.hepforge.org/hg/rivet/rev/cfd282b25a0c
branches:  release-2-5-x
changeset: 5335:cfd282b25a0c
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Jul 21 16:11:22 2016 +0100
description:
Add abscharge() and abscharge3() methods to Particle.

details:   https://rivet.hepforge.org/hg/rivet/rev/4e41a16a2a73
branches:  release-2-5-x
changeset: 5336:4e41a16a2a73
user:      Andy Buckley <andy at insectnation.org>
date:      Thu Jul 21 16:11:44 2016 +0100
description:
Add pid, abspid, charge, abscharge, charge3, and abscharge3 Cut enums, handled by Particle cut targets.

diffs (truncated from 343 to 50 lines):

--- a/ChangeLog	Thu Jul 21 15:04:10 2016 +0100
+++ b/ChangeLog	Thu Jul 21 16:11:44 2016 +0100
@@ -1,5 +1,16 @@
 2016-07-21  Andy Buckley  <andy.buckley at cern.ch>
 
+	* Add pid, abspid, charge, abscharge, charge3, and abscharge3 Cut
+	enums, handled by Particle cut targets.
+
+	* Add abscharge() and abscharge3() methods to Particle.
+
+	* Add optional Cut and duplicate-removal flags to Particle children & descendants methods.
+
+	* Add unbound versions of Particle is* and from* methods, for easier functor use.
+
+	* Add Particle::isPrompt() as a member rather than unbound function.
+
 	* Add protections against -ve mass from numerical precision errors in smearing functions.
 
 2016-07-20  Andy Buckley  <andy.buckley at cern.ch>
--- a/include/Rivet/Particle.hh	Thu Jul 21 15:04:10 2016 +0100
+++ b/include/Rivet/Particle.hh	Thu Jul 21 16:11:44 2016 +0100
@@ -149,6 +149,9 @@
     /// The charge of this Particle.
     double charge() const { return PID::charge(pid()); }
 
+    /// The absolute charge of this Particle.
+    double abscharge() const { return PID::abscharge(pid()); }
+
     /// Three times the charge of this Particle (i.e. integer multiple of smallest quark charge).
     int charge3() const { return PID::charge3(pid()); }
 
@@ -156,6 +159,9 @@
     /// @deprecated Use charge3
     int threeCharge() const { return PID::threeCharge(pid()); }
 
+    /// Three times the absolute charge of this Particle (i.e. integer multiple of smallest quark charge).
+    int abscharge3() const { return PID::abscharge3(pid()); }
+
     /// Is this a hadron?
     bool isHadron() const { return PID::isHadron(pid()); }
 
@@ -189,7 +195,7 @@
     /// @name Ancestry properties
     //@{
 
-    /// Check whether a given PID is found in the GenParticle's ancestor list
+    /// Check whether a given PID is found in the particle's ancestor list
     ///
     /// @note This question is valid in MC, but may not be answerable
     /// experimentally -- use this function with care when replicating


More information about the Rivet-svn mailing list