Skip to content
Open
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
98 changes: 85 additions & 13 deletions PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,8 @@
if (doPlainTopoQA) {
// All candidates received
histos.add("hPosDCAToPVxy", "hPosDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("hPosDCAToPVz", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("hPosDCAToPVz", "hPosDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("hNegDCAToPVz", "hNegDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("hDCADaughters", "hDCADaughters", kTH1D, {axisConfigurations.axisDCAdau});
histos.add("hCosPA", "hCosPA", kTH1D, {axisConfigurations.axisCosPA});
Expand All @@ -727,6 +727,16 @@
histos.add("hV0InvMassAntiLambda", "hV0InvMassAntiLambda", kTH1D, {axisConfigurations.axisLambdaMass});
histos.add("hV0InvMassD0", "hV0InvMassD0", kTH1D, {axisConfigurations.axisD0Mass});
histos.add("hV0InvMassAntiD0", "hV0InvMassAntiD0", kTH1D, {axisConfigurations.axisD0Mass});
if (doCompleteTopoQA) {
histos.add("hV0InvMassK0sVsLambda", "hV0InvMassK0sVsLambda", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisLambdaMass});
histos.add("hV0InvMassK0sVsAntiLambda", "hV0InvMassK0sVsAntiLambda", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisLambdaMass});
histos.add("hV0InvMassK0sVsD0", "hV0InvMassK0sVsD0", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisD0Mass});
histos.add("hV0InvMassK0sVsAntiD0", "hV0InvMassK0sVsAntiD0", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisD0Mass});
histos.add("hV0InvMassLambdaVsD0", "hV0InvMassLambdaVsD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("hV0InvMassAntiLambdaVsD0", "hV0InvMassAntiLambdaVsD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("hV0InvMassLambdaVsAntiD0", "hV0InvMassLambdaVsAntiD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("hV0InvMassAntiLambdaVsAntiD0", "hV0InvMassAntiLambdaVsAntiD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
}

histos.add("hPositiveMFTcls", "hPositiveMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
histos.add("hNegativeMFTcls", "hNegativeMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
Expand All @@ -741,7 +751,7 @@
if (analyseK0Short) {
histos.add("K0Short/hPosDCAToPVxy", "hPosDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("K0Short/hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("K0Short/hPosDCAToPVz", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("K0Short/hPosDCAToPVz", "hPosDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("K0Short/hNegDCAToPVz", "hNegDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("K0Short/hDCADaughters", "hDCADaughters", kTH1D, {axisConfigurations.axisDCAdau});
histos.add("K0Short/hCosPA", "hCosPA", kTH1D, {axisConfigurations.axisCosPA});
Expand All @@ -760,6 +770,12 @@
histos.add("K0Short/hV0InvMassAntiLambda", "hV0InvMassAntiLambda", kTH1D, {axisConfigurations.axisLambdaMass});
histos.add("K0Short/hV0InvMassD0", "hV0InvMassD0", kTH1D, {axisConfigurations.axisD0Mass});
histos.add("K0Short/hV0InvMassAntiD0", "hV0InvMassAntiD0", kTH1D, {axisConfigurations.axisD0Mass});
if (doCompleteTopoQA) {
histos.add("K0Short/hV0InvMassK0sVsLambda", "hV0InvMassK0sVsLambda", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisLambdaMass});
histos.add("K0Short/hV0InvMassK0sVsAntiLambda", "hV0InvMassK0sVsAntiLambda", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisLambdaMass});
histos.add("K0Short/hV0InvMassK0sVsD0", "hV0InvMassK0sVsD0", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisD0Mass});
histos.add("K0Short/hV0InvMassK0sVsAntiD0", "hV0InvMassK0sVsAntiD0", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisD0Mass});
}

histos.add("K0Short/hPositiveMFTcls", "hPositiveMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
histos.add("K0Short/hNegativeMFTcls", "hNegativeMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
Expand All @@ -775,7 +791,7 @@
if (analyseLambda) {
histos.add("Lambda/hPosDCAToPVxy", "hPosDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("Lambda/hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("Lambda/hPosDCAToPVz", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("Lambda/hPosDCAToPVz", "hPosDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("Lambda/hNegDCAToPVz", "hNegDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("Lambda/hDCADaughters", "hDCADaughters", kTH1D, {axisConfigurations.axisDCAdau});
histos.add("Lambda/hCosPA", "hCosPA", kTH1D, {axisConfigurations.axisCosPA});
Expand All @@ -794,6 +810,11 @@
histos.add("Lambda/hV0InvMassAntiLambda", "hV0InvMassAntiLambda", kTH1D, {axisConfigurations.axisLambdaMass});
histos.add("Lambda/hV0InvMassD0", "hV0InvMassD0", kTH1D, {axisConfigurations.axisD0Mass});
histos.add("Lambda/hV0InvMassAntiD0", "hV0InvMassAntiD0", kTH1D, {axisConfigurations.axisD0Mass});
if (doCompleteTopoQA) {
histos.add("Lambda/hV0InvMassK0sVsLambda", "hV0InvMassK0sVsLambda", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisLambdaMass});
histos.add("Lambda/hV0InvMassLambdaVsD0", "hV0InvMassLambdaVsD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("Lambda/hV0InvMassLambdaVsAntiD0", "hV0InvMassLambdaVsAntiD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
}

histos.add("Lambda/hPositiveMFTcls", "hPositiveMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
histos.add("Lambda/hNegativeMFTcls", "hNegativeMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
Expand All @@ -809,7 +830,7 @@
if (analyseAntiLambda) {
histos.add("AntiLambda/hPosDCAToPVxy", "hPosDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("AntiLambda/hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("AntiLambda/hPosDCAToPVz", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("AntiLambda/hPosDCAToPVz", "hPosDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("AntiLambda/hNegDCAToPVz", "hNegDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("AntiLambda/hDCADaughters", "hDCADaughters", kTH1D, {axisConfigurations.axisDCAdau});
histos.add("AntiLambda/hCosPA", "hCosPA", kTH1D, {axisConfigurations.axisCosPA});
Expand All @@ -828,6 +849,11 @@
histos.add("AntiLambda/hV0InvMassAntiLambda", "hV0InvMassAntiLambda", kTH1D, {axisConfigurations.axisLambdaMass});
histos.add("AntiLambda/hV0InvMassD0", "hV0InvMassD0", kTH1D, {axisConfigurations.axisD0Mass});
histos.add("AntiLambda/hV0InvMassAntiD0", "hV0InvMassAntiD0", kTH1D, {axisConfigurations.axisD0Mass});
if (doCompleteTopoQA) {
histos.add("AntiLambda/hV0InvMassK0sVsAntiLambda", "hV0InvMassK0sVsAntiLambda", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisLambdaMass});
histos.add("AntiLambda/hV0InvMassAntiLambdaVsD0", "hV0InvMassAntiLambdaVsD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("AntiLambda/hV0InvMassAntiLambdaVsAntiD0", "hV0InvMassAntiLambdaVsAntiD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
}

histos.add("AntiLambda/hPositiveMFTcls", "hPositiveMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
histos.add("AntiLambda/hNegativeMFTcls", "hNegativeMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
Expand All @@ -843,7 +869,7 @@
if (analyseD0) {
histos.add("D0/hPosDCAToPVxy", "hPosDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("D0/hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("D0/hPosDCAToPVz", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("D0/hPosDCAToPVz", "hPosDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("D0/hNegDCAToPVz", "hNegDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("D0/hDCADaughters", "hDCADaughters", kTH1D, {axisConfigurations.axisDCAdau});
histos.add("D0/hCosPA", "hCosPA", kTH1D, {axisConfigurations.axisCosPA});
Expand All @@ -862,6 +888,11 @@
histos.add("D0/hV0InvMassAntiLambda", "hV0InvMassAntiLambda", kTH1D, {axisConfigurations.axisLambdaMass});
histos.add("D0/hV0InvMassD0", "hV0InvMassD0", kTH1D, {axisConfigurations.axisD0Mass});
histos.add("D0/hV0InvMassAntiD0", "hV0InvMassAntiD0", kTH1D, {axisConfigurations.axisD0Mass});
if (doCompleteTopoQA) {
histos.add("D0/hV0InvMassK0sVsD0", "hV0InvMassK0sVsD0", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisD0Mass});
histos.add("D0/hV0InvMassLambdaVsD0", "hV0InvMassLambdaVsD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("D0/hV0InvMassAntiLambdaVsD0", "hV0InvMassAntiLambdaVsD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
}

histos.add("D0/hPositiveMFTcls", "hPositiveMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
histos.add("D0/hNegativeMFTcls", "hNegativeMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
Expand All @@ -877,7 +908,7 @@
if (analyseAntiD0) {
histos.add("AntiD0/hPosDCAToPVxy", "hPosDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("AntiD0/hNegDCAToPVxy", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("AntiD0/hPosDCAToPVz", "hNegDCAToPVxy", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("AntiD0/hPosDCAToPVz", "hPosDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVxy});
histos.add("AntiD0/hNegDCAToPVz", "hNegDCAToPVz", kTH1D, {axisConfigurations.axisDCAtoPVz});
histos.add("AntiD0/hDCADaughters", "hDCADaughters", kTH1D, {axisConfigurations.axisDCAdau});
histos.add("AntiD0/hCosPA", "hCosPA", kTH1D, {axisConfigurations.axisCosPA});
Expand All @@ -896,6 +927,11 @@
histos.add("AntiD0/hV0InvMassAntiLambda", "hV0InvMassAntiLambda", kTH1D, {axisConfigurations.axisLambdaMass});
histos.add("AntiD0/hV0InvMassD0", "hV0InvMassD0", kTH1D, {axisConfigurations.axisD0Mass});
histos.add("AntiD0/hV0InvMassAntiD0", "hV0InvMassAntiD0", kTH1D, {axisConfigurations.axisD0Mass});
if (doCompleteTopoQA) {
histos.add("AntiD0/hV0InvMassK0sVsAntiD0", "hV0InvMassK0sVsAntiD0", kTH2D, {axisConfigurations.axisK0Mass, axisConfigurations.axisD0Mass});
histos.add("AntiD0/hV0InvMassLambdaVsAntiD0", "hV0InvMassLambdaVsAntiD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
histos.add("AntiD0/hV0InvMassAntiLambdaVsAntiD0", "hV0InvMassAntiLambdaVsAntiD0", kTH2D, {axisConfigurations.axisLambdaMass, axisConfigurations.axisD0Mass});
}

histos.add("AntiD0/hPositiveMFTcls", "hPositiveMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
histos.add("AntiD0/hNegativeMFTcls", "hNegativeMFTcls", kTH1D, {axisConfigurations.axisMFTclus});
Expand Down Expand Up @@ -1207,7 +1243,7 @@

//
// armenteros
if (v0Selections.armPodCut < 1e-4 || v0.QtArm * v0Selections.armPodCut > std::abs(v0.AlphaArm)) {

Check failure on line 1246 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
BITSET(bitMap, selK0ShortArmenteros);
}

Expand Down Expand Up @@ -1313,6 +1349,16 @@
histos.fill(HIST("hV0InvMassAntiLambda"), invMassAntiLambda);
histos.fill(HIST("hV0InvMassD0"), invMassD0);
histos.fill(HIST("hV0InvMassAntiD0"), invMassAntiD0);
if (doCompleteTopoQA) {
histos.fill(HIST("hV0InvMassK0sVsLambda"), invMassK0Short, invMassLambda);
histos.fill(HIST("hV0InvMassK0sVsAntiLambda"), invMassK0Short, invMassAntiLambda);
histos.fill(HIST("hV0InvMassK0sVsD0"), invMassK0Short, invMassD0);
histos.fill(HIST("hV0InvMassK0sVsAntiD0"), invMassK0Short, invMassAntiD0);
histos.fill(HIST("hV0InvMassLambdaVsD0"), invMassLambda, invMassD0);
histos.fill(HIST("hV0InvMassAntiLambdaVsD0"), invMassAntiLambda, invMassD0);
histos.fill(HIST("hV0InvMassLambdaVsAntiD0"), invMassLambda, invMassAntiD0);
histos.fill(HIST("hV0InvMassAntiLambdaVsAntiD0"), invMassAntiLambda, invMassAntiD0);
}

histos.fill(HIST("hPositiveMFTcls"), v0.posNclusters);
histos.fill(HIST("hNegativeMFTcls"), v0.negNclusters);
Expand Down Expand Up @@ -1346,7 +1392,7 @@
histos.fill(HIST("h3dMassK0ShortSGA"), centrality, pt, invMassK0Short);
else if (gapSide == 1)
histos.fill(HIST("h3dMassK0ShortSGC"), centrality, pt, invMassK0Short);
else if (gapSide == 2)

Check failure on line 1395 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
histos.fill(HIST("h3dMassK0ShortDG"), centrality, pt, invMassK0Short);
else
histos.fill(HIST("h3dMassK0ShortHadronic"), centrality, pt, invMassK0Short);
Expand Down Expand Up @@ -1374,6 +1420,12 @@
histos.fill(HIST("K0Short/hV0InvMassAntiLambda"), invMassAntiLambda);
histos.fill(HIST("K0Short/hV0InvMassD0"), invMassD0);
histos.fill(HIST("K0Short/hV0InvMassAntiD0"), invMassAntiD0);
if (doCompleteTopoQA) {
histos.fill(HIST("K0Short/hV0InvMassK0sVsLambda"), invMassK0Short, invMassLambda);
histos.fill(HIST("K0Short/hV0InvMassK0sVsAntiLambda"), invMassK0Short, invMassAntiLambda);
histos.fill(HIST("K0Short/hV0InvMassK0sVsD0"), invMassK0Short, invMassD0);
histos.fill(HIST("K0Short/hV0InvMassK0sVsAntiD0"), invMassK0Short, invMassAntiD0);
}

histos.fill(HIST("K0Short/hPositiveMFTcls"), v0.posNclusters);
histos.fill(HIST("K0Short/hNegativeMFTcls"), v0.negNclusters);
Expand All @@ -1397,7 +1449,7 @@
histos.fill(HIST("h3dMassLambdaSGA"), centrality, pt, invMassLambda);
else if (gapSide == 1)
histos.fill(HIST("h3dMassLambdaSGC"), centrality, pt, invMassLambda);
else if (gapSide == 2)

Check failure on line 1452 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
histos.fill(HIST("h3dMassLambdaDG"), centrality, pt, invMassLambda);
else
histos.fill(HIST("h3dMassLambdaHadronic"), centrality, pt, invMassLambda);
Expand Down Expand Up @@ -1425,6 +1477,11 @@
histos.fill(HIST("Lambda/hV0InvMassAntiLambda"), invMassAntiLambda);
histos.fill(HIST("Lambda/hV0InvMassD0"), invMassD0);
histos.fill(HIST("Lambda/hV0InvMassAntiD0"), invMassAntiD0);
if (doCompleteTopoQA) {
histos.fill(HIST("Lambda/hV0InvMassK0sVsLambda"), invMassK0Short, invMassLambda);
histos.fill(HIST("Lambda/hV0InvMassLambdaVsD0"), invMassLambda, invMassD0);
histos.fill(HIST("Lambda/hV0InvMassLambdaVsAntiD0"), invMassLambda, invMassAntiD0);
}

histos.fill(HIST("Lambda/hPositiveMFTcls"), v0.posNclusters);
histos.fill(HIST("Lambda/hNegativeMFTcls"), v0.negNclusters);
Expand All @@ -1448,7 +1505,7 @@
histos.fill(HIST("h3dMassAntiLambdaSGA"), centrality, pt, invMassAntiLambda);
else if (gapSide == 1)
histos.fill(HIST("h3dMassAntiLambdaSGC"), centrality, pt, invMassAntiLambda);
else if (gapSide == 2)

Check failure on line 1508 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
histos.fill(HIST("h3dMassAntiLambdaDG"), centrality, pt, invMassAntiLambda);
else
histos.fill(HIST("h3dMassAntiLambdaHadronic"), centrality, pt, invMassAntiLambda);
Expand Down Expand Up @@ -1476,6 +1533,11 @@
histos.fill(HIST("AntiLambda/hV0InvMassAntiLambda"), invMassAntiLambda);
histos.fill(HIST("AntiLambda/hV0InvMassD0"), invMassD0);
histos.fill(HIST("AntiLambda/hV0InvMassAntiD0"), invMassAntiD0);
if (doCompleteTopoQA) {
histos.fill(HIST("AntiLambda/hV0InvMassK0sVsAntiLambda"), invMassK0Short, invMassAntiLambda);
histos.fill(HIST("AntiLambda/hV0InvMassAntiLambdaVsD0"), invMassAntiLambda, invMassD0);
histos.fill(HIST("AntiLambda/hV0InvMassAntiLambdaVsAntiD0"), invMassAntiLambda, invMassAntiD0);
}

histos.fill(HIST("AntiLambda/hPositiveMFTcls"), v0.posNclusters);
histos.fill(HIST("AntiLambda/hNegativeMFTcls"), v0.negNclusters);
Expand All @@ -1499,7 +1561,7 @@
histos.fill(HIST("h3dMassD0SGA"), centrality, pt, invMassD0);
else if (gapSide == 1)
histos.fill(HIST("h3dMassD0SGC"), centrality, pt, invMassD0);
else if (gapSide == 2)

Check failure on line 1564 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
histos.fill(HIST("h3dMassD0DG"), centrality, pt, invMassD0);
else
histos.fill(HIST("h3dMassD0Hadronic"), centrality, pt, invMassD0);
Expand Down Expand Up @@ -1527,6 +1589,11 @@
histos.fill(HIST("D0/hV0InvMassAntiLambda"), invMassAntiLambda);
histos.fill(HIST("D0/hV0InvMassD0"), invMassD0);
histos.fill(HIST("D0/hV0InvMassAntiD0"), invMassAntiD0);
if (doCompleteTopoQA) {
histos.fill(HIST("D0/hV0InvMassK0sVsD0"), invMassK0Short, invMassD0);
histos.fill(HIST("D0/hV0InvMassLambdaVsD0"), invMassLambda, invMassD0);
histos.fill(HIST("D0/hV0InvMassAntiLambdaVsD0"), invMassAntiLambda, invMassD0);
}

histos.fill(HIST("D0/hPositiveMFTcls"), v0.posNclusters);
histos.fill(HIST("D0/hNegativeMFTcls"), v0.negNclusters);
Expand All @@ -1550,7 +1617,7 @@
histos.fill(HIST("h3dMassAntiD0SGA"), centrality, pt, invMassAntiD0);
else if (gapSide == 1)
histos.fill(HIST("h3dMassAntiD0SGC"), centrality, pt, invMassAntiD0);
else if (gapSide == 2)

Check failure on line 1620 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
histos.fill(HIST("h3dMassAntiD0DG"), centrality, pt, invMassAntiD0);
else
histos.fill(HIST("h3dMassAntiD0Hadronic"), centrality, pt, invMassAntiD0);
Expand Down Expand Up @@ -1578,6 +1645,11 @@
histos.fill(HIST("AntiD0/hV0InvMassAntiLambda"), invMassAntiLambda);
histos.fill(HIST("AntiD0/hV0InvMassD0"), invMassD0);
histos.fill(HIST("AntiD0/hV0InvMassAntiD0"), invMassAntiD0);
if (doCompleteTopoQA) {
histos.fill(HIST("AntiD0/hV0InvMassK0sVsAntiD0"), invMassK0Short, invMassAntiD0);
histos.fill(HIST("AntiD0/hV0InvMassLambdaVsAntiD0"), invMassLambda, invMassAntiD0);
histos.fill(HIST("AntiD0/hV0InvMassAntiLambdaVsAntiD0"), invMassAntiLambda, invMassAntiD0);
}

histos.fill(HIST("AntiD0/hPositiveMFTcls"), v0.posNclusters);
histos.fill(HIST("AntiD0/hNegativeMFTcls"), v0.negNclusters);
Expand Down Expand Up @@ -1608,7 +1680,7 @@
if (std::abs(v0.pdgCodeMother) == o2::constants::physics::Pdg::kXi0)
rapidityXi = RecoDecay::y(std::array{v0.momentumMotherMc[0], v0.momentumMotherMc[1], v0.momentumMotherMc[2]}, o2::constants::physics::MassXi0);

if (std::fabs(rapidityXi) > 0.5f)

Check failure on line 1683 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
return; // not a valid mother rapidity (PDG selection is later)

// __________________________________________
Expand Down Expand Up @@ -1753,7 +1825,7 @@
histos.fill(HIST("hEventSelection"), 16 /* INEL > 0 */);
}

if (eventSelections.requireINEL1 && collision.multNTracksPVeta1() < 2) {

Check failure on line 1828 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
return false;
}
if (fillHists) {
Expand Down Expand Up @@ -1857,7 +1929,7 @@

histos.fill(HIST("hGapSide"), gapSide);
histos.fill(HIST("hSelGapSide"), selGapSide);
histos.fill(HIST("hEventCentralityVsSelGapSide"), centrality, selGapSide <= 2 ? selGapSide : -1);

Check failure on line 1932 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
}

histos.fill(HIST("hEventCentrality"), centrality);
Expand Down Expand Up @@ -1905,7 +1977,7 @@
continue;
}

if (eventSelections.requireINEL1 && mcCollision.multMCNParticlesEta10() < 2) {

Check failure on line 1980 in PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.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.
continue;
}

Expand Down Expand Up @@ -2069,9 +2141,9 @@

// get decay vertex coordinates
Vec3D vtx = fitter.getPCACandidate();
pairInfo.X = vtx[0];
pairInfo.Y = vtx[1];
pairInfo.Z = vtx[2];
pairInfo.X = vtx[0] - collision.posX();
pairInfo.Y = vtx[1] - collision.posY();
pairInfo.Z = vtx[2] - collision.posZ();

// get daughter DCA to PV
pairInfo.dcaPosToPVxy = std::sqrt(dcaPosToPVx * dcaPosToPVx + dcaPosToPVy * dcaPosToPVy);
Expand Down Expand Up @@ -2101,16 +2173,16 @@
pairInfo.OpAngle = track1Momentum.Angle(track2Momentum);

// Radius
pairInfo.Radius = std::sqrt(vtx[0] * vtx[0] + vtx[1] * vtx[1]);
pairInfo.Radius = std::sqrt(pairInfo.X * pairInfo.X + pairInfo.Y * pairInfo.Y);

// Dist over tot mom.
float px = pairInfo.positiveMomentum[0] + pairInfo.negativeMomentum[0];
float py = pairInfo.positiveMomentum[1] + pairInfo.negativeMomentum[1];
float pz = pairInfo.positiveMomentum[2] + pairInfo.negativeMomentum[2];
pairInfo.DistOverTotMom = std::sqrt(vtx[0] * vtx[0] + vtx[1] * vtx[1] + vtx[2] * vtx[2]) / std::sqrt(px * px + py * py + pz * pz);
pairInfo.DistOverTotMom = std::sqrt(pairInfo.X * pairInfo.X + pairInfo.Y * pairInfo.Y + pairInfo.Z * pairInfo.Z) / std::sqrt(px * px + py * py + pz * pz);

// Z dist over pz
pairInfo.ZdistOverPz = vtx[2] / pz;
pairInfo.ZdistOverPz = pairInfo.Z / pz;

// V0 Momenta
pairInfo.pT = std::sqrt(px * px + py * py);
Expand Down
Loading