Skip to content

Commit 5e83bff

Browse files
committed
update
1 parent a8227d5 commit 5e83bff

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

PWGHF/TableProducer/derivedDataCreatorDstarToD0Pi.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct HfDerivedDataCreatorDstarToD0Pi {
126126
}
127127

128128
template <typename T, typename U>
129-
void fillTablesCandidate(const T& candidate, const U& prong0, const U& prong1, const U& prongSoftPi, int candFlag, double invMass,
129+
void fillTablesCandidate(const T& candidate, const U& prong0, const U& prong1, const U& prongSoftPi, int candFlag, double invMass, double invMassD0,
130130
double y, int8_t flagMc, int8_t flagMcD0, int8_t origin, int8_t nTracksDecayed, double ptBhad, int pdgBhad, const std::vector<float>& mlScores)
131131
{
132132
rowsCommon.fillTablesCandidate(candidate, invMass, y);
@@ -160,7 +160,7 @@ struct HfDerivedDataCreatorDstarToD0Pi {
160160
candidate.pxProng1(),
161161
candidate.pyProng1(),
162162
candidate.pzProng1(),
163-
candidate.invMassD0(),
163+
invMassD0,
164164
candidate.impactParameter0(),
165165
candidate.impactParameter1(),
166166
candidate.impactParameterNormalised0(),
@@ -283,15 +283,18 @@ struct HfDerivedDataCreatorDstarToD0Pi {
283283
auto prong1 = candidate.template prong1_as<TracksWPid>();
284284
auto prongSoftPi = candidate.template prongPi_as<TracksWPid>();
285285
double y = candidate.y(o2::constants::physics::MassDStar);
286-
double massDstar = candidate.invMassDstar();
287286
std::vector<float> mlScoresDstarToD0Pi;
288287
if constexpr (isMl) {
289288
std::copy(candidate.mlProbDstarToD0Pi().begin(), candidate.mlProbDstarToD0Pi().end(), std::back_inserter(mlScoresDstarToD0Pi));
290289
}
291290
if (candidate.signSoftPi() > 0){
292-
fillTablesCandidate(candidate, prong0, prong1, prongSoftPi, 0, massDstar, y, flagMcRec, flagMcRecD0, origin, nTracksDecayed, ptBhadMotherPart, pdgBhadMotherPart, mlScoresDstarToD0Pi);
291+
double massDstar = candidate.invMassDstar();
292+
double invMassD0 = candidate.invMassD0();
293+
fillTablesCandidate(candidate, prong0, prong1, prongSoftPi, 0, massDstar, invMassD0, y, flagMcRec, flagMcRecD0, origin, nTracksDecayed, ptBhadMotherPart, pdgBhadMotherPart, mlScoresDstarToD0Pi);
293294
} else {
294-
fillTablesCandidate(candidate, prong1, prong0, prongSoftPi, 1, massDstar, y, flagMcRec, flagMcRecD0, origin, nTracksDecayed, ptBhadMotherPart, pdgBhadMotherPart, mlScoresDstarToD0Pi);
295+
double massDstar = candidate.invMassAntiDstar();
296+
double invMassD0 = candidate.invMassD0Bar();
297+
fillTablesCandidate(candidate, prong1, prong0, prongSoftPi, 1, massDstar, invMassD0, y, flagMcRec, flagMcRecD0, origin, nTracksDecayed, ptBhadMotherPart, pdgBhadMotherPart, mlScoresDstarToD0Pi);
295298
}
296299
}
297300
}

0 commit comments

Comments
 (0)