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
2 changes: 1 addition & 1 deletion PWGLF/Tasks/Strangeness/v0postprocessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@

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

Check failure on line 332 in PWGLF/Tasks/Strangeness/v0postprocessing.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.

if (doQA) {
registry.fill(HIST("QA/hK0sSelection"), 0.5);
Expand Down Expand Up @@ -401,7 +401,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 404 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 @@ -412,7 +412,7 @@
registry.fill(HIST("hMassVsPtK0ShortVsCentFT0M"), candidate.v0pt(), candidate.multft0m(), candidate.massk0short());

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

Check failure on line 415 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 415 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 @@ -452,16 +452,16 @@
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 455 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 461 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 464 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 @@ -491,16 +491,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 494 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.v0motherpt(), 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 500 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 503 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