|
[Rivet-svn] rivet: 3 new changesetsRivet Mercurial rivet at projects.hepforge.orgThu May 24 11:15:06 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/d2cd5a5d2da8 branches: multiweight changeset: 6315:d2cd5a5d2da8 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Thu May 24 09:32:02 2018 +0100 description: Remove foreach. Start to clean header tangle. details: https://rivet.hepforge.org/hg/rivet/rev/8af9f616b140 branches: multiweight changeset: 6316:8af9f616b140 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Thu May 24 10:03:57 2018 +0100 description: Installed headers cannot depend on configure-time config.h and equivalent files details: https://rivet.hepforge.org/hg/rivet/rev/178262619804 branches: multiweight changeset: 6317:178262619804 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Thu May 24 10:52:45 2018 +0100 description: Backed out changeset 03a928c5cc5a diffs (truncated from 10333 to 50 lines): --- a/analyses/pluginALICE/ALICE_2010_S8625980.cc Wed May 23 12:48:36 2018 +0100 +++ b/analyses/pluginALICE/ALICE_2010_S8625980.cc Thu May 24 10:52:45 2018 +0100 @@ -52,7 +52,7 @@ _Nevt_after_cuts->fill(); - foreach (const Particle& p, charged.particles()) { + for (const Particle& p : charged.particles()) { const double eta = p.eta(); _h_dN_deta->fill(eta); } --- a/analyses/pluginALICE/ALICE_2010_S8706239.cc Wed May 23 12:48:36 2018 +0100 +++ b/analyses/pluginALICE/ALICE_2010_S8706239.cc Thu May 24 10:52:45 2018 +0100 @@ -49,14 +49,14 @@ // Get number of particles that fulfill certain pT requirements int Nch_015 = 0; int Nch_05 = 0; - foreach (const Particle& p, charged.particles()) { + for (const Particle& p : charged.particles()) { double pT = p.pT()/GeV; if (pT < 4.0) Nch_015++; if (pT > 0.5 && pT < 4.0) Nch_05++; } // Now we can fill histograms - foreach (const Particle& p, charged.particles()) { + for (const Particle& p : charged.particles()) { double pT = p.pT()/GeV; if (pT < 4.0) _h_pT_Nch_015 ->fill(Nch_015, pT); if (pT > 0.5 && pT < 4.0) _h_pT_Nch_05 ->fill(Nch_05, pT); --- a/analyses/pluginALICE/ALICE_2011_S8909580.cc Wed May 23 12:48:36 2018 +0100 +++ b/analyses/pluginALICE/ALICE_2011_S8909580.cc Thu May 24 10:52:45 2018 +0100 @@ -32,7 +32,7 @@ void analyze(const Event& event) { const UnstableFinalState& ufs = apply<UnstableFinalState>(event, "UFS"); - foreach (const Particle& p, ufs.particles()) { + for (const Particle& p : ufs.particles()) { const double absrap = p.absrap(); const double pT = p.pT()/GeV; --- a/analyses/pluginALICE/ALICE_2011_S8945144.cc Wed May 23 12:48:36 2018 +0100 +++ b/analyses/pluginALICE/ALICE_2011_S8945144.cc Thu May 24 10:52:45 2018 +0100 @@ -31,7 +31,7 @@ void analyze(const Event& event) { const ChargedFinalState& cfs = apply<ChargedFinalState>(event, "CFS"); - foreach (const Particle& p, cfs.particles()) { + for (const Particle& p : cfs.particles()) { if(p.absrap()<0.5) {
More information about the Rivet-svn mailing list |