[Rivet-svn] rivet: 6 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Fri Sep 2 11:00:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/a51387e0c4e7
branches:  release-2-5-x
changeset: 5431:a51387e0c4e7
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 09:53:13 2016 +0100
description:
Typo fixes and functor canonical naming -> StructLike

details:   https://rivet.hepforge.org/hg/rivet/rev/7bd333fe82f6
branches:  release-2-5-x
changeset: 5432:7bd333fe82f6
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 09:57:37 2016 +0100
description:
More typos / aliases

details:   https://rivet.hepforge.org/hg/rivet/rev/8ebce7b6e162
branches:  release-2-5-x
changeset: 5433:8ebce7b6e162
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 10:18:00 2016 +0100
description:
More typos

details:   https://rivet.hepforge.org/hg/rivet/rev/9228b02b6282
branches:  release-2-5-x
changeset: 5434:9228b02b6282
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 10:36:44 2016 +0100
description:
Add using import/typedef of HepMC *Ptr types (useful step for HepMC 2.07 and 3.00).

details:   https://rivet.hepforge.org/hg/rivet/rev/070fd08c0cb4
branches:  release-2-5-x
changeset: 5435:070fd08c0cb4
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 10:37:29 2016 +0100
description:
Add Particle::parent() method.

details:   https://rivet.hepforge.org/hg/rivet/rev/da4e7d71bd66
branches:  release-2-5-x
changeset: 5436:da4e7d71bd66
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 02 10:40:59 2016 +0100
description:
Add isFirstWith(out), isLastWith(out) functions, and functor wrappers -- not Cut-based, for now, but easily extended via .cc files to avoid circular references.

diffs (truncated from 630 to 50 lines):

--- a/ChangeLog	Fri Sep 02 09:29:35 2016 +0100
+++ b/ChangeLog	Fri Sep 02 10:40:59 2016 +0100
@@ -1,5 +1,15 @@
 2016-09-02  Andy Buckley  <andy.buckley at cern.ch>
 
+	* Add isFirstWith(out), isLastWith(out) functions, and functor
+	wrappers -- not Cut-based, for now, but easily extended via .cc
+	files to avoid circular references.
+
+	* Add Particle::parent() method.
+
+	* Add using import/typedef of HepMC *Ptr types (useful step for HepMC 2.07 and 3.00).
+
+	* Various typo fixes (and canonical renaming) in ParticleBaseUtils functor collection.
+
 	* Add ATLAS MV2c10 and MV2c20 b-tagging effs to SmearingFunctions.hh collection.
 
 2016-09-01  Andy Buckley  <andy.buckley at cern.ch>
--- a/include/Rivet/Particle.hh	Fri Sep 02 09:29:35 2016 +0100
+++ b/include/Rivet/Particle.hh	Fri Sep 02 10:40:59 2016 +0100
@@ -274,6 +274,9 @@
     /// Whether this particle is stable according to the generator
     bool isStable() const;
 
+    /// Get a list of the direct parents of the current particle
+    Particles parents(const Cut& c=Cuts::open()) const;
+
     /// Get a list of the direct descendants from the current particle
     Particles children(const Cut& c=Cuts::open()) const;
 
--- a/include/Rivet/Tools/ParticleBaseUtils.hh	Fri Sep 02 09:29:35 2016 +0100
+++ b/include/Rivet/Tools/ParticleBaseUtils.hh	Fri Sep 02 10:40:59 2016 +0100
@@ -18,109 +18,115 @@
   };
 
   /// Transverse momentum greater-than functor
-  struct pTGtr : public BoolParticleBaseFunctor {
-    pTGtr(double pt) : ptcut(pt) { }
+  struct PtGtr : public BoolParticleBaseFunctor {
+    PtGtr(double pt) : ptcut(pt) { }
     bool operator()(const ParticleBase& p) const { return p.pT() > ptcut; }
     double ptcut;
   };
-  using PtGtr = pTGtr;
+  using pTGtr = PtGtr;
+  using ptGtr = PtGtr;
 
   /// Transverse momentum less-than functor
-  struct pTLess : public BoolParticleBaseFunctor {
-    pTLess(double pt) : ptcut(pt) { }


More information about the Rivet-svn mailing list