@@ -510,19 +510,19 @@ class TwoTrackResonanceBuilder
510510 LOG (info) << " Initialization done..." ;
511511 }
512512
513- template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
514- void fillResonances (T1& collisionProducts , T2& trackProducts , T3& resonanceProducts , T4& groupPositiveTracks , T5& groupNegativeTracks , T6& trackBuilder , T7& indexMap)
513+ template <modes::System system, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9 >
514+ void fillResonances (T1 const & col , T2& collisionBuilder , T3& collisionProducts , T4& trackProducts , T5& resonanceProducts , T6& groupPositiveTracks , T7& groupNegativeTracks, T8& trackBuilder, T9 & indexMap)
515515 {
516516 if (!mFillAnyTable ) {
517517 return ;
518518 }
519519 for (auto const & [positiveTrack, negativeTrack] : o2::soa::combinations (o2::soa::CombinationsFullIndexPolicy (groupPositiveTracks, groupNegativeTracks))) {
520- this ->fillResonance ( collisionProducts, trackProducts, resonanceProducts, positiveTrack, negativeTrack, trackBuilder, indexMap);
520+ this ->fillResonance <system>(col, collisionBuilder, collisionProducts, trackProducts, resonanceProducts, positiveTrack, negativeTrack, trackBuilder, indexMap);
521521 }
522522 }
523523
524- template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
525- void fillResonance (T1& collisionProducts , T2& trackProducts , T3& resonanceProducts , T4 const & posDaughter, T4 const & negDaughter, T5 & trackBuilder, T6 & indexMap)
524+ template <modes::System system, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9 >
525+ void fillResonance (T1 const & col , T2& collisionBuilder , T3& collisionProducts , T4& trackProducts, T5& resonanceProducts, T6 const & posDaughter, T7 const & negDaughter, T8 & trackBuilder, T9 & indexMap)
526526 {
527527
528528 mTwoTrackResonanceSelection .reconstructResonance (posDaughter, negDaughter);
@@ -532,6 +532,9 @@ class TwoTrackResonanceBuilder
532532 mTwoTrackResonanceSelection .applySelections (posDaughter, negDaughter); // for resonances selection are only applied to daughter tracks
533533 int64_t posDaughterIndex = 0 ;
534534 int64_t negDaughterIndex = 0 ;
535+
536+ collisionBuilder.template fillCollision <system>(collisionProducts, col);
537+
535538 posDaughterIndex = trackBuilder.template getDaughterIndex <modes::Track::kResonanceDaughter >(posDaughter, trackProducts, collisionProducts, indexMap);
536539 negDaughterIndex = trackBuilder.template getDaughterIndex <modes::Track::kResonanceDaughter >(negDaughter, trackProducts, collisionProducts, indexMap);
537540
0 commit comments