Skip to content

Commit e6b7555

Browse files
committed
[PWGCF] Femto: Adapt D0 builder to the new track builder interface
1 parent 036a5de commit e6b7555

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGCF/Femto/Core/charmHadronBuilder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ class CharmHadronBuilder
401401

402402
auto prong0 = candidate.template prong0_as<T7>();
403403
auto prong1 = candidate.template prong1_as<T7>();
404-
int64_t posDauIndex = trackBuilder.template getDaughterIndex<modes::Track::kCharmDaughter>(prong0, trackProducts, collisionProducts);
405-
int64_t negDauIndex = trackBuilder.template getDaughterIndex<modes::Track::kCharmDaughter>(prong1, trackProducts, collisionProducts);
404+
int64_t posDauIndex = trackBuilder.template getDaughterIndex<modes::Track::kCharmDaughter>(prong0, trackProducts, collisionBuilder);
405+
int64_t negDauIndex = trackBuilder.template getDaughterIndex<modes::Track::kCharmDaughter>(prong1, trackProducts, collisionBuilder);
406406

407407
if constexpr (modes::isEqual(hadronType, modes::CharmHadron::kD0)) {
408408
this->fillD0Tables(collisionProducts, d0Products, candidate, candidate.pt(), mHfHelper.invMassD0ToPiK(candidate), posDauIndex, negDauIndex);
@@ -460,8 +460,8 @@ class CharmHadronBuilder
460460

461461
auto prong0 = candidate.template prong0_as<T8>();
462462
auto prong1 = candidate.template prong1_as<T8>();
463-
int64_t posDauIndex = trackBuilder.template getDaughterIndex<system, modes::Track::kCharmDaughter>(col, collisionProducts, mcCols, prong0, trackProducts, mcParticles, mcBuilder, mcProducts);
464-
int64_t negDauIndex = trackBuilder.template getDaughterIndex<system, modes::Track::kCharmDaughter>(col, collisionProducts, mcCols, prong1, trackProducts, mcParticles, mcBuilder, mcProducts);
463+
int64_t posDauIndex = trackBuilder.template getDaughterIndex<system, modes::Track::kCharmDaughter>(col, collisionBuilder, mcCols, prong0, trackProducts, mcParticles, mcBuilder, mcProducts);
464+
int64_t negDauIndex = trackBuilder.template getDaughterIndex<system, modes::Track::kCharmDaughter>(col, collisionBuilder, mcCols, prong1, trackProducts, mcParticles, mcBuilder, mcProducts);
465465

466466
if constexpr (modes::isEqual(hadronType, modes::CharmHadron::kD0)) {
467467
this->fillD0Tables(collisionProducts, d0Products, candidate, candidate.pt(), mHfHelper.invMassD0ToPiK(candidate), posDauIndex, negDauIndex);

0 commit comments

Comments
 (0)