|
[Rivet-svn] rivet: Re-instate Chris's fix, it was correct all along. Sorry!Rivet Mercurial rivet at projects.hepforge.orgTue May 22 17:00:01 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/e31a43fb3a2d branches: release-2-6-x changeset: 6296:e31a43fb3a2d user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Tue May 22 16:56:00 2018 +0100 description: Re-instate Chris's fix, it was correct all along. Sorry! diffs (20 lines): --- a/include/Rivet/Tools/ParticleUtils.hh Tue May 22 15:10:34 2018 +0100 +++ b/include/Rivet/Tools/ParticleUtils.hh Tue May 22 16:56:00 2018 +0100 @@ -535,7 +535,7 @@ /// PID matching functor struct HasPID : public BoolParticleFunctor { - HasPID(PdgId pid) : targetpids{ {pid} } { } + HasPID(PdgId pid) : targetpids{pid} { } HasPID(vector<PdgId> pids) : targetpids{pids} { } HasPID(initializer_list<PdgId> pids) : targetpids{pids} { } bool operator()(const Particle& p) const { return contains(targetpids, p.pid()); } @@ -545,7 +545,7 @@ /// |PID| matching functor struct HasAbsPID : public BoolParticleFunctor { - HasAbsPID(PdgId pid) : targetapids{ {abs(pid)} } { } + HasAbsPID(PdgId pid) : targetapids{abs(pid)} { } HasAbsPID(vector<PdgId> pids) { for (PdgId pid : pids) targetapids.push_back(abs(pid)); } HasAbsPID(initializer_list<PdgId> pids) { for (PdgId pid : pids) targetapids.push_back(abs(pid)); } bool operator()(const Particle& p) const { return contains(targetapids, p.abspid()); }
More information about the Rivet-svn mailing list |