[Rivet-svn] rivet: 3 new changesets

Rivet Mercurial rivet at projects.hepforge.org
Tue Sep 13 14:15:01 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/2921b731384b
branches:  release-2-5-x
changeset: 5465:2921b731384b
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Tue Sep 13 14:06:02 2016 +0100
description:
Add a few more Particle names

details:   https://rivet.hepforge.org/hg/rivet/rev/7b02f3bbd60a
branches:  release-2-5-x
changeset: 5466:7b02f3bbd60a
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Tue Sep 13 14:06:36 2016 +0100
description:
Use PID:: names throuhgout

details:   https://rivet.hepforge.org/hg/rivet/rev/a8e6677461ea
branches:  release-2-5-x
changeset: 5467:a8e6677461ea
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Tue Sep 13 14:06:51 2016 +0100
description:
Update Changelog

diffs (truncated from 137 to 50 lines):

--- a/ChangeLog	Tue Sep 13 13:17:42 2016 +0100
+++ b/ChangeLog	Tue Sep 13 14:06:51 2016 +0100
@@ -4,6 +4,9 @@
 	
 	* Add and mark validated D0 to pi- analysis (BABAR_2015_I1334693)
 
+	* Add a few more particle names and use PID names in recently added
+	  analyses
+
 2016-09-12  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Add a static constexpr DBL_NAN to Utils.hh for convenience, and
--- a/include/Rivet/Tools/ParticleName.hh	Tue Sep 13 13:17:42 2016 +0100
+++ b/include/Rivet/Tools/ParticleName.hh	Tue Sep 13 14:06:51 2016 +0100
@@ -76,6 +76,9 @@
     static const PdgId PI0 = 111;
     static const PdgId PIPLUS = 211;
     static const PdgId PIMINUS = -PIPLUS;
+    static const PdgId RHO0 = 113;
+    static const PdgId RHOPLUS = 213;
+    static const PdgId RHOMINUS = -RHOPLUS;
     static const PdgId K0L = 130;
     static const PdgId K0S = 310;
     static const PdgId KPLUS = 321;
@@ -96,6 +99,7 @@
     /// @name Charm mesons
     //@{
     static const PdgId D0 = 421;
+    static const PdgId D0BAR = -421;
     static const PdgId DPLUS = 411;
     static const PdgId DMINUS = -DPLUS;
     static const PdgId DSPLUS = 431;
@@ -114,6 +118,7 @@
     /// @name b mesons
     //@{
     static const PdgId B0 = 511;
+    static const PdgId B0BAR = -511;
     static const PdgId BPLUS = 521;
     static const PdgId BMINUS = -BPLUS;
     static const PdgId B0S = 531;
--- a/src/Analyses/BABAR_2013_I1116411.cc	Tue Sep 13 13:17:42 2016 +0100
+++ b/src/Analyses/BABAR_2013_I1116411.cc	Tue Sep 13 14:06:51 2016 +0100
@@ -46,8 +46,9 @@
     /// Perform the per-event analysis
     void analyze(const Event& event) {
       // Get B+ Mesons
-      foreach(const Particle& p, apply<UnstableFinalState>(event, "UFS").particles(Cuts::pid==521)) {
-        if (isSemileptonicDecay(p, {223,-11,12}) || isSemileptonicDecay(p, {223,-13,14})) {
+      foreach(const Particle& p, apply<UnstableFinalState>(event, "UFS").particles(Cuts::pid==PID::BPLUS)) {
+        if (isSemileptonicDecay(p, {PID::OMEGA, PID::POSITRON, PID::NU_E}) ||


More information about the Rivet-svn mailing list