Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PWGLF/Tasks/Nuspex/antinucleiInJets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
{
// Keep only pi, K, p, e, mu
int pdg = std::abs(particle.pdgCode());
if (!(pdg == 211 || pdg == 321 || pdg == 2212 || pdg == 11 || pdg == 13))

Check failure on line 557 in PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.

Check failure on line 557 in PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;

// Check if particle is from heavy-flavor decay
Expand All @@ -562,7 +562,7 @@
if (particle.has_mothers()) {
auto mother = mcParticles.iteratorAt(particle.mothersIds()[0]);
int motherPdg = std::abs(mother.pdgCode());
fromHF = (motherPdg / 100 == 4 || motherPdg / 100 == 5 || motherPdg / 1000 == 4 || motherPdg / 1000 == 5);

Check failure on line 565 in PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.

Check failure on line 565 in PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
}

// Select only physical primary particles or from heavy-flavor
Expand Down Expand Up @@ -1760,7 +1760,7 @@
for (const auto& particle : mcParticles) {

// Select physical primary particles or HF decay products
if (!isPhysicalPrimaryOrFromHF(particle,mcParticles))
if (!isPhysicalPrimaryOrFromHF(particle, mcParticles))
continue;

// Select particles within acceptance
Expand Down
Loading