|
[Rivet-svn] rivet: Remove deprecated pdgIdRivet Mercurial rivet at projects.hepforge.orgTue Jul 3 13:30:01 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/d5ca86b7f4cc branches: multiweight changeset: 6366:d5ca86b7f4cc user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Tue Jul 03 13:25:17 2018 +0100 description: Remove deprecated pdgId diffs (truncated from 267 to 50 lines): --- a/analyses/pluginALICE/ALICE_2014_I1300380.cc Tue Jul 03 13:10:09 2018 +0100 +++ b/analyses/pluginALICE/ALICE_2014_I1300380.cc Tue Jul 03 13:25:17 2018 +0100 @@ -40,7 +40,7 @@ p.hasAncestor(3312) || p.hasAncestor(-3312) || // Xi-/+ p.hasAncestor(3334) || p.hasAncestor(-3334) )) // Omega-/+ { - int aid = abs(p.pdgId()); + int aid = abs(p.pid()); if (aid == 211 || // pi+ aid == 321 || // K+ aid == 313 || // K*(892)0 @@ -51,7 +51,7 @@ } // end if "rejection of long-lived particles" - switch (p.pdgId()) { + switch (p.pid()) { case 3224: _histPtSigmaStarPlus->fill(p.pT()/GeV); _histAveragePt->fill(p.mass()/GeV, p.pT()/GeV); --- a/analyses/pluginATLAS/ATLAS_2014_I1298811.cc Tue Jul 03 13:10:09 2018 +0100 +++ b/analyses/pluginATLAS/ATLAS_2014_I1298811.cc Tue Jul 03 13:25:17 2018 +0100 @@ -77,7 +77,7 @@ const size_t iside = (mapAngleMPiToPi(p.phi() - philead) > 0) ? 0 : 1; MSG_TRACE(p.phi() << " vs. " << philead << ": " << iside); // Charged or neutral particle? - const bool charged = PID::charge3(p.pdgId()) != 0; + const bool charged = PID::charge3(p.pid()) != 0; // Track observables if (charged && fabs(p.eta()) < 2.5 && p.pT() > 500*MeV) { tmpnch[iside] += 1; --- a/analyses/pluginATLAS/ATLAS_2017_I1625109.cc Tue Jul 03 13:10:09 2018 +0100 +++ b/analyses/pluginATLAS/ATLAS_2017_I1625109.cc Tue Jul 03 13:25:17 2018 +0100 @@ -101,7 +101,7 @@ for (const auto& l1 : leptons) { for (const auto& l2 : leptons) { if (l1 == l2) continue; - if ((l1.pdgId() + l2.pdgId() == 0) && ((l1.mom() + l2.mom()).mass() < 5.0*GeV)) return false; + if ((l1.pid() + l2.pid() == 0) && ((l1.mom() + l2.mom()).mass() < 5.0*GeV)) return false; } } return true; --- a/analyses/pluginCMS/CMS_2012_I1111014.cc Tue Jul 03 13:10:09 2018 +0100 +++ b/analyses/pluginCMS/CMS_2012_I1111014.cc Tue Jul 03 13:25:17 2018 +0100 @@ -102,7 +102,7 @@ double phi=0; double sumpt=0; for (const Particle& p : jet.particles()) { - if ((p.pT() < 0.5) || (p.charge3()==0) || (abs(p.pdgId())==11) || (abs(p.pdgId())==13)) continue; + if ((p.pT() < 0.5) || (p.charge3()==0) || (abs(p.pid())==11) || (abs(p.pid())==13)) continue;
More information about the Rivet-svn mailing list |