|
44 | 44 |
|
45 | 45 | #include "PWGLF/DataModel/LFEbyeTables.h" |
46 | 46 |
|
47 | | -#include "TDatabasePDG.h" |
48 | 47 | #include "TFormula.h" |
49 | 48 |
|
50 | 49 | using namespace o2; |
@@ -332,7 +331,7 @@ struct ebyeMaker { |
332 | 331 | case 3122: { |
333 | 332 | int foundPi = 0; |
334 | 333 | for (const auto& mcDaught : mother.template daughters_as<aod::McParticles>()) { |
335 | | - if (std::abs(mcDaught.pdgCode()) == 211) { |
| 334 | + if (std::abs(mcDaught.pdgCode()) == PDG_t::kPiPlus) { |
336 | 335 | foundPi = mcDaught.pdgCode(); |
337 | 336 | break; |
338 | 337 | } |
@@ -542,7 +541,7 @@ struct ebyeMaker { |
542 | 541 |
|
543 | 542 | float v0m = -1; |
544 | 543 | auto scaleMC = [](float x, float pars[6]) { |
545 | | - return std::pow(((pars[0] + pars[1] * pow(x, pars[2])) - pars[3]) / pars[4], 1.0f / pars[5]); |
| 544 | + return std::pow(((pars[0] + pars[1] * std::pow(x, pars[2])) - pars[3]) / pars[4], 1.0f / pars[5]); |
546 | 545 | }; |
547 | 546 |
|
548 | 547 | if (Run2V0MInfo.mMCScale != nullptr) { |
@@ -958,9 +957,9 @@ struct ebyeMaker { |
958 | 957 | for (const auto& posMother : mcTrackPos.template mothers_as<aod::McParticles>()) { |
959 | 958 | if (posMother.globalIndex() != negMother.globalIndex()) |
960 | 959 | continue; |
961 | | - if (!((mcTrackPos.pdgCode() == 2212 && mcTrackNeg.pdgCode() == -211) || (mcTrackPos.pdgCode() == 211 && mcTrackNeg.pdgCode() == -2212))) |
| 960 | + if (!((mcTrackPos.pdgCode() == PDG_t::kProton && mcTrackNeg.pdgCode() == PDT_t::kPiMinus) || (mcTrackPos.pdgCode() == PDG_t::kPiPlus && mcTrackNeg.pdgCode() == PDG_t::kProtonBar))) |
962 | 961 | continue; |
963 | | - if (std::abs(posMother.pdgCode()) != 3122) { |
| 962 | + if (std::abs(posMother.pdgCode()) != PDG_t::kLambda0) { |
964 | 963 | continue; |
965 | 964 | } |
966 | 965 | if (!posMother.isPhysicalPrimary() && !posMother.has_mothers()) |
@@ -991,12 +990,12 @@ struct ebyeMaker { |
991 | 990 | if (((mcPart.flags() & 0x8) && (doprocessMcRun2 || doprocessMiniMcRun2)) || (mcPart.flags() & 0x2) || ((mcPart.flags() & 0x1) && !doprocessMiniMcRun2)) |
992 | 991 | continue; |
993 | 992 | auto pdgCode = mcPart.pdgCode(); |
994 | | - if (std::abs(pdgCode) == 3122) { |
| 993 | + if (std::abs(pdgCode) == PDG_t::kLambda0) { |
995 | 994 | if (!mcPart.isPhysicalPrimary() && !mcPart.has_mothers()) |
996 | 995 | continue; |
997 | 996 | bool foundPr = false; |
998 | 997 | for (const auto& mcDaught : mcPart.daughters_as<aod::McParticles>()) { |
999 | | - if (std::abs(mcDaught.pdgCode()) == 2212) { |
| 998 | + if (std::abs(mcDaught.pdgCode()) == PDG_t::kProton) { |
1000 | 999 | foundPr = true; |
1001 | 1000 | break; |
1002 | 1001 | } |
|
0 commit comments