[Rivet-svn] rivet: Add overlooked analysis fix for ZFinder change

Rivet Mercurial rivet at projects.hepforge.org
Sat Jun 23 13:00:01 BST 2018


details:   https://rivet.hepforge.org/hg/rivet/rev/75cca9a763d1
branches:  release-2-6-x
changeset: 6344:75cca9a763d1
user:      David Grellscheid <david.grellscheid at durham.ac.uk>
date:      Sat Jun 23 12:54:54 2018 +0100
description:
Add overlooked analysis fix for ZFinder change

diffs (11 lines):

--- a/analyses/pluginATLAS/ATLAS_2012_I1204784.cc	Fri Jun 22 19:42:46 2018 +0100
+++ b/analyses/pluginATLAS/ATLAS_2012_I1204784.cc	Sat Jun 23 12:54:54 2018 +0100
@@ -77,7 +77,7 @@
 
       void fillPlots(const ZFinder& zfind, Histo1DPtr hist, BinnedHistogram<double>& binnedHist, double weight) {
         if (zfind.bosons().size() != 1) return;
-        Particles leptons = zfind.constituents(cmpMomByPt);
+        Particles leptons = sortBy(zfind.constituents(), cmpMomByPt);
 
         const FourMomentum lminus = leptons[0].charge() < 0 ? leptons[0].momentum() : leptons[1].momentum();
         const FourMomentum lplus = leptons[0].charge() < 0 ? leptons[1].momentum() : leptons[0].momentum();


More information about the Rivet-svn mailing list