Skip to content
Merged
Changes from 3 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
14 changes: 11 additions & 3 deletions PWGHF/TableProducer/derivedDataCreatorDplusToPiKPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
}

template <typename T>
void fillTablesCandidate(const T& candidate, int candFlag, double invMass,
void fillTablesCandidate(const T& candidate, uint8_t candFlag, double invMass,
double ct, double y, int8_t flagMc, int8_t origin, int8_t swapping, int8_t flagDecayChan, const std::vector<float>& mlScores)
{
rowsCommon.fillTablesCandidate(candidate, invMass, y);
Expand Down Expand Up @@ -189,7 +189,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
}
if (fillCandidateSel) {
rowCandidateSel(
BIT(candFlag));
candFlag);
}
if (fillCandidateMl) {
rowCandidateMl(
Expand Down Expand Up @@ -289,7 +289,15 @@ struct HfDerivedDataCreatorDplusToPiKPi {
if constexpr (IsMl) {
std::copy(candidate.mlProbDplusToPiKPi().begin(), candidate.mlProbDplusToPiKPi().end(), std::back_inserter(mlScoresDplusToPiKPi));
}
fillTablesCandidate(candidate, 0, massDplusToPiKPi, ct, y, flagMcRec, origin, swapping, flagDecayChanRec, mlScoresDplusToPiKPi);
auto trackprong0 = candidate.template prong0_as<TracksWPid>();
int const sign = trackprong0.sign();
uint8_t candFlag = 0;
if (sign > 0) {
candFlag |= BIT(0); // D+
} else if (sign < 0) {
candFlag |= BIT(1); // D-
}
fillTablesCandidate(candidate, sign, massDplusToPiKPi, ct, y, flagMcRec, origin, swapping, flagDecayChanRec, mlScoresDplusToPiKPi);
}
}
}
Expand Down
Loading