[Rivet-svn] rivet: fix constructor - always needs to have itself as a consti...

Rivet Mercurial rivet at projects.hepforge.org
Tue Feb 27 23:15:02 GMT 2018


details:   https://rivet.hepforge.org/hg/rivet/rev/b4200fb4a998
branches:  release-2-6-x
changeset: 6245:b4200fb4a998
user:      Jon Butterworth <j.butterworth at cern.ch>
date:      Tue Feb 27 22:34:33 2018 +0000
description:
fix constructor - always needs to have itself as a constituent

diffs (13 lines):

--- a/src/Projections/DressedLeptons.cc	Thu Feb 22 16:09:31 2018 +0000
+++ b/src/Projections/DressedLeptons.cc	Tue Feb 27 22:34:33 2018 +0000
@@ -9,7 +9,9 @@
 
   DressedLepton::DressedLepton(const Particle& dlepton)
     : Particle(dlepton)
-  {   }
+  { 
+    setConstituents({{dlepton}}); //< bare lepton is first constituent
+  }
 
   DressedLepton::DressedLepton(const Particle& lepton, const Particles& photons, bool momsum)
     : Particle(lepton.pid(), lepton.momentum())


More information about the Rivet-svn mailing list