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
6 changes: 3 additions & 3 deletions PWGLF/Tasks/Strangeness/forwardlambdakzeroanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1243,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 @@ -1392,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 @@ -1449,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 @@ -1505,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 @@ -1561,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 @@ -1617,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 @@ -1680,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 @@ -1825,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 @@ -1929,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 @@ -1977,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 @@ -2141,9 +2141,9 @@

// get decay vertex coordinates
Vec3D vtx = fitter.getPCACandidate();
pairInfo.X = vtx[0]-collision.posX();
pairInfo.Y = vtx[1]-collision.posY();
pairInfo.Z = vtx[2]-collision.posZ();
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
Loading