[Rivet-svn] rivet: 3 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Fri Sep 16 15:15:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/857b87c42a54
branches:  release-2-5-x
changeset: 5486:857b87c42a54
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 16 14:55:29 2016 +0100
description:
Add particles(GenParticlePtr) to RivetHepMC.hh

details:   https://rivet.hepforge.org/hg/rivet/rev/b598390069b5
branches:  release-2-5-x
changeset: 5487:b598390069b5
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 16 14:55:41 2016 +0100
description:
Comment

details:   https://rivet.hepforge.org/hg/rivet/rev/e14970326b78
branches:  release-2-5-x
changeset: 5488:e14970326b78
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Sep 16 14:55:53 2016 +0100
description:
Add hasParent, hasParentWith, and hasAncestorWith to Particle.

diffs (truncated from 283 to 50 lines):

--- a/ChangeLog	Thu Sep 15 23:45:15 2016 +0100
+++ b/ChangeLog	Fri Sep 16 14:55:53 2016 +0100
@@ -1,10 +1,16 @@
+2016-09-16  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Add particles(GenParticlePtr) to RivetHepMC.hh
+
+	* Add hasParent, hasParentWith, and hasAncestorWith to Particle.
+
 2016-09-15  Holger Schulz  <holger.schulz at cern.ch>
 
-	* Add ATLAS 8TeV dijet analysis from contrib (ATLAS_2015_I1393758) 
-	
-	* Add ATLAS 8TeV 'number of tracks in jets' analysis from contrib (ATLAS_2016_I1419070) 
-	
-	* Add ATLAS 8TeV g->H->WW->enumunu analysis from contrib (ATLAS_2016_I1444991) 
+	* Add ATLAS 8TeV dijet analysis from contrib (ATLAS_2015_I1393758)
+
+	* Add ATLAS 8TeV 'number of tracks in jets' analysis from contrib (ATLAS_2016_I1419070)
+
+	* Add ATLAS 8TeV g->H->WW->enumunu analysis from contrib (ATLAS_2016_I1444991)
 
 2016-09-14  Holger Schulz  <holger.schulz at cern.ch>
 
--- a/include/Rivet/Particle.fhh	Thu Sep 15 23:45:15 2016 +0100
+++ b/include/Rivet/Particle.fhh	Fri Sep 16 14:55:53 2016 +0100
@@ -27,8 +27,9 @@
   /// @name PdgId declarations
   //@{
 
-  /// Typedef for a PDG ID code.
+  /// Typedefs for a PDG ID code.
   typedef int PdgId;
+  //typedef PdgId PID; //< can't do this, because it's also a (sub)namespace
 
   /// Typedef for a pair of particle names.
   typedef std::pair<PdgId, PdgId> PdgIdPair;
--- a/include/Rivet/Particle.hh	Thu Sep 15 23:45:15 2016 +0100
+++ b/include/Rivet/Particle.hh	Fri Sep 16 14:55:53 2016 +0100
@@ -195,12 +195,64 @@
     /// @name Ancestry properties
     //@{
 
+    /// @todo Add physicalAncestors, allAncestors?
+
+    /// Get a list of the direct parents of the current particle (with optional selection Cut)
+    ///
+    /// @note This is valid in MC, but may not be answerable
+    /// experimentally -- use this function with care when replicating
+    /// experimental analyses!


More information about the Rivet-svn mailing list