Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions PWGLF/TableProducer/Nuspex/hyperKinkRecoTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,15 @@ struct hyperKinkRecoTask {
bool isGoodTPCCand = false;
if (candidate.itsNClsInnerBarrel() == 0 && candidate.itsNCls() < 4 &&
candidate.tpcNClsCrossedRows() >= 70 && candidate.tpcChi2NCl() < 4.f &&
candidate.tpcNClsCrossedRows() > 0.8 * candidate.tpcNClsFindable() && candidate.tpcNClsFound() > 80 && abs(nSigmaTrit) < nSigmaTPCCutTrit) {
candidate.tpcNClsCrossedRows() > 0.8 * candidate.tpcNClsFindable() && candidate.tpcNClsFound() > 80 && std::abs(nSigmaTrit) < nSigmaTPCCutTrit) {
isGoodTPCCand = true;
}

if (!isGoodTPCCand) {
return false;
}

if (candidate.hasTOF() && abs(nSigmaTOFTrit) > nSigmaTOFCutTrit) {
if (candidate.hasTOF() && std::abs(nSigmaTOFTrit) > nSigmaTOFCutTrit) {
return false;
}

Expand Down Expand Up @@ -394,7 +394,7 @@ struct hyperKinkRecoTask {
gpu::gpustd::array<float, 2> dcaInfoHyp;
o2::base::Propagator::Instance()->propagateToDCABxByBz({primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()}, trackParCovHyperPV, 2.f, static_cast<o2::base::Propagator::MatCorrType>(cfgMaterialCorrection.value), &dcaInfoHyp);

if (abs(dcaInfoHyp[0]) > maxDCAHypToPV) {
if (std::abs(dcaInfoHyp[0]) > maxDCAHypToPV) {
continue;
}

Expand All @@ -412,7 +412,7 @@ struct hyperKinkRecoTask {
// propagate to PV
gpu::gpustd::array<float, 2> dcaInfoTrit;
o2::base::Propagator::Instance()->propagateToDCABxByBz({primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()}, trackParCovTrit, 2.f, static_cast<o2::base::Propagator::MatCorrType>(cfgMaterialCorrection.value), &dcaInfoTrit);
if (abs(dcaInfoTrit[0]) < minDCATritToPV) {
if (std::abs(dcaInfoTrit[0]) < minDCATritToPV) {
continue;
}

Expand Down Expand Up @@ -492,13 +492,13 @@ struct hyperKinkRecoTask {
auto mcTrackHyper = mcLabHyper.mcParticle_as<aod::McParticles>();
auto mcTrackTrit = mcLabTrit.mcParticle_as<aod::McParticles>();

if (abs(mcTrackHyper.pdgCode()) != hyperPdg || abs(mcTrackTrit.pdgCode()) != tritDauPdg) {
if (std::abs(mcTrackHyper.pdgCode()) != hyperPdg || std::abs(mcTrackTrit.pdgCode()) != tritDauPdg) {
continue;
}
auto tritIdx = mcTrackTrit.globalIndex();
kinkCand.isSignal = false;
for (auto& dauMCTracks : mcTrackHyper.daughters_as<aod::McParticles>()) {
if (abs(dauMCTracks.pdgCode()) == tritDauPdg) {
if (std::abs(dauMCTracks.pdgCode()) == tritDauPdg) {
if (dauMCTracks.globalIndex() == tritIdx) {
kinkCand.isSignal = true;
break;
Expand Down
4 changes: 2 additions & 2 deletions PWGLF/TableProducer/Nuspex/hyperRecoTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ struct hyperRecoTask {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, piTrackCov, 2.f, fitter.getMatCorrType(), &dcaInfo);
hypCand.piDCAXY = dcaInfo[0];

if (abs(hypCand.piDCAXY) < dcaToPvPion || abs(hypCand.he3DCAXY) < dcaToPvHe) {
if (std::abs(hypCand.piDCAXY) < dcaToPvPion || std::abs(hypCand.he3DCAXY) < dcaToPvHe) {
return;
}

Expand Down Expand Up @@ -597,7 +597,7 @@ struct hyperRecoTask {
for (auto& piMother : mcTrackPi.mothers_as<aod::McParticles>()) {
if (heMother.globalIndex() != piMother.globalIndex())
continue;
if (abs(mcTrackHe.pdgCode()) != heDauPdg || abs(mcTrackPi.pdgCode()) != 211)
if (std::abs(mcTrackHe.pdgCode()) != heDauPdg || std::abs(mcTrackPi.pdgCode()) != 211)
continue;
if (std::abs(heMother.pdgCode()) != hyperPdg)
continue;
Expand Down