Skip to content
Merged
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
4 changes: 2 additions & 2 deletions PWGLF/Tasks/Strangeness/v0postprocessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
return false;
registry.fill(HIST("QA/hK0sSelection"), 1.5);

if (candidate.v0radius() < radius && candidate.v0radius() > maxradius)
if (candidate.v0radius() < radius || candidate.v0radius() > maxradius)
return false;
registry.fill(HIST("QA/hK0sSelection"), 2.5);

Expand Down Expand Up @@ -330,7 +330,7 @@

void process(aod::MyV0Candidates const& myv0s)
{
for (auto& candidate : myv0s) {
for (const auto& candidate : myv0s) {

if (doQA) {
registry.fill(HIST("QA/hK0sSelection"), 0.5);
Expand Down Expand Up @@ -402,7 +402,7 @@
if (candidate.v0cospa() > cospaK0s &&
std::abs(candidate.rapk0short()) < rap &&
candidate.ctauk0short() < ctauK0s &&
std::abs(candidate.massk0short() - o2::constants::physics::MassK0Short) < 0.1 &&

Check failure on line 405 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
std::abs(candidate.masslambda() - o2::constants::physics::MassLambda0) > v0rejK0s &&
std::abs(candidate.ntpcsigmanegpi()) <= ntpcsigma &&
std::abs(candidate.ntpcsigmapospi()) <= ntpcsigma &&
Expand All @@ -413,7 +413,7 @@
registry.fill(HIST("hMassVsPtK0ShortVsCentFT0M"), candidate.v0pt(), candidate.multft0m(), candidate.massk0short());

if (isMC &&
candidate.pdgcode() == 310 &&

Check failure on line 416 in PWGLF/Tasks/Strangeness/v0postprocessing.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 416 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
candidate.isdauk0short() &&
candidate.isphysprimary() == 1) {

Expand Down Expand Up @@ -446,23 +446,23 @@
if (std::abs(candidate.ntpcsigmanegpi()) <= ntpcsigma &&
std::abs(candidate.ntpcsigmapospr()) <= ntpcsigma &&
candidate.ctaulambda() < ctauLambda &&
std::abs(candidate.masslambda() - o2::constants::physics::MassLambda0) < 0.075 &&

Check failure on line 449 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
(!doArmenterosCutLam || candidate.qtarm() < (paramArmenterosCut * std::abs(candidate.alpha())))) {

registry.fill(HIST("hMassLambda"), candidate.masslambda());
registry.fill(HIST("hMassVsPtLambda"), candidate.v0pt(), candidate.masslambda());
registry.fill(HIST("hMassVsPtLambdaVsCentFT0M"), candidate.v0pt(), candidate.multft0m(), candidate.masslambda());

if (isMC && candidate.pdgcode() == 3122 && candidate.isdaulambda()) {

Check failure on line 456 in PWGLF/Tasks/Strangeness/v0postprocessing.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.

if (candidate.isphysprimary() == 1) {
registry.fill(HIST("hMassLambda_MC"), candidate.masslambda());
registry.fill(HIST("hMassVsPtLambdaVsCentFT0M_MC"), candidate.v0pt(), candidate.multft0m(), candidate.masslambda());
} else if (std::abs(candidate.masslambda() - o2::constants::physics::MassLambda0) < 0.01) {
if (candidate.pdgcodemother() == 3312) {

Check failure on line 462 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
registry.fill(HIST("hFDVsPtLambdaVsMotherPt_DoubleCharged_MC"), candidate.v0pt(), candidate.v0motherpt(), candidate.multft0m());
}
if (candidate.pdgcodemother() == 3312 || candidate.pdgcodemother() == 3322) {

Check failure on line 465 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
registry.fill(HIST("hFDVsPtLambdaVsMotherPt_MCRatio_MC"), candidate.v0pt(), candidate.v0motherpt(), candidate.multft0m());
}
}
Expand Down Expand Up @@ -492,16 +492,16 @@
registry.fill(HIST("hMassVsPtAntiLambda"), candidate.v0pt(), candidate.massantilambda());
registry.fill(HIST("hMassVsPtAntiLambdaVsCentFT0M"), candidate.v0pt(), candidate.multft0m(), candidate.massantilambda());

if (isMC && candidate.pdgcode() == -3122 && candidate.isdauantilambda()) {

Check failure on line 495 in PWGLF/Tasks/Strangeness/v0postprocessing.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.

if (candidate.isphysprimary() == 1) {
registry.fill(HIST("hMassAntiLambda_MC"), candidate.massantilambda());
registry.fill(HIST("hMassVsPtAntiLambdaVsCentFT0M_MC"), candidate.v0pt(), candidate.multft0m(), candidate.massantilambda());
} else if (std::abs(candidate.massantilambda() - o2::constants::physics::MassLambda0) < 0.01) {
if (candidate.pdgcodemother() == -3312) {

Check failure on line 501 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
registry.fill(HIST("hFDVsPtAntiLambdaVsMotherPt_DoubleCharged_MC"), candidate.v0pt(), candidate.v0motherpt(), candidate.multft0m());
}
if (candidate.pdgcodemother() == -3312 || candidate.pdgcodemother() == -3322) {

Check failure on line 504 in PWGLF/Tasks/Strangeness/v0postprocessing.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.
registry.fill(HIST("hFDVsPtAntiLambdaVsMotherPt_MCRatio_MC"), candidate.v0pt(), candidate.v0motherpt(), candidate.multft0m());
}
}
Expand Down
Loading