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
40 changes: 20 additions & 20 deletions PWGLF/Tasks/Resonances/lambda1405analysis.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGLF/Tasks/Resonances/lambda1405analysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -96,7 +96,7 @@
};

struct lambda1405analysis {
int lambda1405PdgCode = 102132; // PDG code for Lambda(1405)

Check failure on line 99 in PWGLF/Tasks/Resonances/lambda1405analysis.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.
Produces<aod::Lambda1405Cands> outputDataTable; // Output table for Lambda(1405) candidates
Produces<aod::Lambda1405Flow> outputDataFlowTable; // Output table for Lambda(1405) flow analysis
Produces<aod::Lambda1405CandsMC> outputDataTableMC; // Output table for Lambda(1405) candidates in MC
Expand Down Expand Up @@ -465,7 +465,7 @@
rSigmaPlus.fill(HIST("hSigmaPlusRadius"), lambda1405Cand.sigmaRadius, sigmaCand.ptMoth());
rSigmaPlus.fill(HIST("hSigmaPlusDcaToPv"), sigmaCand.dcaMothPv(), sigmaCand.ptMoth());
rSigmaPlus.fill(HIST("hSigmaPlusDcaKinkDauToPv"), sigmaCand.dcaDaugPv(), sigmaCand.ptMoth());
rSigmaPlus.fill(HIST("h2KinkPrPtNSigTofSigmaPlus"), lambda1405Cand.kinkPt, lambda1405Cand.kinkPrNSigTof);
rSigmaPlus.fill(HIST("h2KinkPrPtNSigTofSigmaPlus"), lambda1405Cand.kinkPt, lambda1405Cand.kinkPrNSigTof);
// Fill QA histos for kink daughter
rSigmaPlus.fill(HIST("hSigmaPlusKinkPt"), kinkDauTrack.pt());
rSigmaPlus.fill(HIST("hSigmaPlusKinkTpcNSigPr"), kinkDauTrack.tpcNSigmaPr(), kinkDauTrack.pt());
Expand All @@ -478,7 +478,7 @@
rSigmaMinus.fill(HIST("hSigmaMinusRadius"), lambda1405Cand.sigmaRadius, sigmaCand.ptMoth());
rSigmaMinus.fill(HIST("hSigmaMinusDcaToPv"), sigmaCand.dcaMothPv(), sigmaCand.ptMoth());
rSigmaMinus.fill(HIST("hSigmaMinusDcaKinkDauToPv"), sigmaCand.dcaDaugPv(), sigmaCand.ptMoth());
rSigmaMinus.fill(HIST("h2KinkPiPtNSigTofSigmaMinus"), lambda1405Cand.kinkPt, lambda1405Cand.kinkPiNSigTof);
rSigmaMinus.fill(HIST("h2KinkPiPtNSigTofSigmaMinus"), lambda1405Cand.kinkPt, lambda1405Cand.kinkPiNSigTof);
// Fill QA histos for kink daughter
rSigmaMinus.fill(HIST("hSigmaMinusKinkPt"), kinkDauTrack.pt());
rSigmaMinus.fill(HIST("hSigmaMinusKinkTpcNSigPi"), kinkDauTrack.tpcNSigmaPi(), kinkDauTrack.pt());
Expand All @@ -491,7 +491,7 @@
{

// Fill QA histos for Lambda(1405) candidate
rLambda1405.fill(HIST("hMassL1405"), cand.massL1405, cand.pt());
rLambda1405.fill(HIST("hMassL1405"), cand.massL1405, cand.pt());
rLambda1405.fill(HIST("hMassXi1530"), cand.massXi1530, cand.pt());
rLambda1405.fill(HIST("hPx"), cand.px);
rLambda1405.fill(HIST("hPy"), cand.py);
Expand All @@ -510,7 +510,7 @@

lambda1405candidate lambda1405Cand{};

rSelections.fill(HIST("hSelectionsL1405"), 0); // All candidates
rSelections.fill(HIST("hSelectionsL1405"), 0); // All candidates
rSelections.fill(HIST("hSelectionsSigmaMinus"), 0); // All Sigma- candidates
rSelections.fill(HIST("hSelectionsSigmaPlus"), 0); // All Sigma+ candidates

Expand All @@ -521,13 +521,13 @@
return;
}

if (isPiKink) { // Dominated by Sigma-, Sigma+ treated as contamination
if (isPiKink) { // Dominated by Sigma-, Sigma+ treated as contamination
lambda1405Cand.isSigmaMinus = true;
lambda1405Cand.isSigmaPlus = false;
lambda1405Cand.isSigmaPlus = false;
rSelections.fill(HIST("hSelectionsSigmaMinus"), 1); // Passed kink sel
} else { // Only Sigma+ can have a proton as kink daughter
} else { // Only Sigma+ can have a proton as kink daughter
lambda1405Cand.isSigmaMinus = false;
lambda1405Cand.isSigmaPlus = true;
lambda1405Cand.isSigmaPlus = true;
rSelections.fill(HIST("hSelectionsSigmaPlus"), 1); // Passed kink sel
}

Expand All @@ -541,11 +541,11 @@
rSigmaPlus.fill(HIST("h2PtPrKinkNSigBeforeCutsSigmaPlus"), kinkDauTrack.pt(), kinkDauTrack.tpcNSigmaPr());
}

if (lambda1405Cand.isSigmaMinus && (sigmaCand.mSigmaMinus() < o2::constants::physics::MassSigmaMinus - cutSigmaMass ||
if (lambda1405Cand.isSigmaMinus && (sigmaCand.mSigmaMinus() < o2::constants::physics::MassSigmaMinus - cutSigmaMass ||
sigmaCand.mSigmaMinus() > o2::constants::physics::MassSigmaMinus + cutSigmaMass)) {
return;
}
if (lambda1405Cand.isSigmaPlus && (sigmaCand.mSigmaPlus() < o2::constants::physics::MassSigmaPlus - cutSigmaMass ||
if (lambda1405Cand.isSigmaPlus && (sigmaCand.mSigmaPlus() < o2::constants::physics::MassSigmaPlus - cutSigmaMass ||
sigmaCand.mSigmaPlus() > o2::constants::physics::MassSigmaPlus + cutSigmaMass)) {
return;
}
Expand Down Expand Up @@ -584,17 +584,17 @@
}

auto kinkDauMom = std::array{sigmaCand.pxDaug(), sigmaCand.pyDaug(), sigmaCand.pzDaug()};
auto sigmaMom = std::array{sigmaCand.pxMoth(), sigmaCand.pyMoth(), sigmaCand.pzMoth()};
auto sigmaMom = std::array{sigmaCand.pxMoth(), sigmaCand.pyMoth(), sigmaCand.pzMoth()};
// Sigma properties
lambda1405Cand.sigmaId = sigmaCand.globalIndex();
lambda1405Cand.sigmaId = sigmaCand.globalIndex();
lambda1405Cand.sigmaMinusMass = sigmaCand.mSigmaMinus();
lambda1405Cand.sigmaPlusMass = sigmaCand.mSigmaPlus();
lambda1405Cand.xiMinusMass = sigmaCand.mXiMinus();
lambda1405Cand.sigmaSign = sigmaCand.mothSign();
lambda1405Cand.sigmaAlphaAP = alphaAP(sigmaMom, kinkDauMom);
lambda1405Cand.sigmaQtAP = qtAP(sigmaMom, kinkDauMom);
lambda1405Cand.sigmaPt = sigmaCand.ptMoth();
lambda1405Cand.sigmaRadius = sigmaRad;
lambda1405Cand.sigmaPlusMass = sigmaCand.mSigmaPlus();
lambda1405Cand.xiMinusMass = sigmaCand.mXiMinus();
lambda1405Cand.sigmaSign = sigmaCand.mothSign();
lambda1405Cand.sigmaAlphaAP = alphaAP(sigmaMom, kinkDauMom);
lambda1405Cand.sigmaQtAP = qtAP(sigmaMom, kinkDauMom);
lambda1405Cand.sigmaPt = sigmaCand.ptMoth();
lambda1405Cand.sigmaRadius = sigmaRad;
lambda1405Cand.kinkDcaDauToPv = sigmaCand.dcaDaugPv();

if (lambda1405Cand.sigmaQtAP < funcMinQtAlphaAP.Eval(lambda1405Cand.sigmaAlphaAP) ||
Expand Down Expand Up @@ -728,9 +728,9 @@
for (const auto& sigmaCand : sigmaCands) {
std::vector<lambda1405candidate> selectedCandidates;
constructCollCandidates(sigmaCand, tracks, selectedCandidates);
for (auto& lambda1405Cand : selectedCandidates) {

Check failure on line 731 in PWGLF/Tasks/Resonances/lambda1405analysis.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 (lambda1405Cand.isSigmaMinus) {
rLambda1405.fill(HIST("h2SigmaMinusMassVsLambdaMass"), lambda1405Cand.massL1405, lambda1405Cand.sigmaMinusMass);
rLambda1405.fill(HIST("h2SigmaMinusMassVsLambdaMass"), lambda1405Cand.massL1405, lambda1405Cand.sigmaMinusMass);
} else {
rLambda1405.fill(HIST("h2SigmaPlusMassVsLambdaMass"), lambda1405Cand.massL1405, lambda1405Cand.sigmaPlusMass);
}
Expand Down Expand Up @@ -884,7 +884,7 @@
for (const auto& sigmaCand : sigmaCandsPerCol) {
std::vector<lambda1405candidate> selectedCandidates;
constructCollCandidates(sigmaCand, tracksPerCol, selectedCandidates);
for (auto& lambda1405Cand : selectedCandidates) {

Check failure on line 887 in PWGLF/Tasks/Resonances/lambda1405analysis.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.
rLambda1405.fill(HIST("hRecoL1405"), 0., lambda1405Cand.pt()); // All reconstructed

// Do MC association
Expand Down
Loading