|
[Rivet-svn] rivet: fix more issues with pointers and the constituents interfaceRivet Mercurial rivet at projects.hepforge.orgWed Apr 4 13:00:01 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/b20a5bcfbda3 branches: release-2-6-x changeset: 6262:b20a5bcfbda3 user: Jon Butterworth <j.butterworth at cern.ch> date: Wed Apr 04 12:49:08 2018 +0100 description: fix more issues with pointers and the constituents interface diffs (26 lines): --- a/analyses/pluginLHCb/LHCB_2012_I1208102.cc Tue Apr 03 13:12:58 2018 +0100 +++ b/analyses/pluginLHCb/LHCB_2012_I1208102.cc Wed Apr 04 12:49:08 2018 +0100 @@ -37,9 +37,9 @@ MSG_WARNING("Found multiple (" << zeefinder.bosons().size() << ") Z -> e+ e- decays!"); // Z momenta - const FourMomentum& zee = zeefinder.bosons()[0].momentum(); - const Particle& pozitron = zeefinder.constituents()[0]; - const Particle& electron = zeefinder.constituents()[1]; + const FourMomentum zee = zeefinder.bosons()[0].momentum(); + const Particle pozitron = zeefinder.constituents()[0]; + const Particle electron = zeefinder.constituents()[1]; // Calculation of the angular variable const double diffphi = deltaPhi(pozitron, electron); --- a/analyses/pluginLHCb/LHCB_2014_I1262703.cc Tue Apr 03 13:12:58 2018 +0100 +++ b/analyses/pluginLHCb/LHCB_2014_I1262703.cc Wed Apr 04 12:49:08 2018 +0100 @@ -45,7 +45,7 @@ const ZFinder& zfinder = apply<ZFinder>(e, "ZFinder"); if (zfinder.bosons().size() != 1) vetoEvent; - const ParticleVector& leptons = zfinder.constituents(); + const ParticleVector leptons = zfinder.constituents(); const Cut jetSelector = Cuts::eta >= 2.0 && Cuts::eta <= 4.5 && Cuts::pT > 10*GeV; const Jets jets = apply<FastJets>(e, "Jets").jetsByPt(jetSelector);
More information about the Rivet-svn mailing list |