@@ -837,9 +837,9 @@ class CascadeBuilderDerivedToDerived
837837 auto xiSlice = partitionXi->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
838838
839839 for (auto const & xi : xiSlice) {
840- auto bachelor = oldTrackTable.rawIteratorAt (this -> daughterRow (xi.bachelorId (), oldTrackTable));
841- auto posDaughter = oldTrackTable.rawIteratorAt (this -> daughterRow (xi.posDauId (), oldTrackTable));
842- auto negDaughter = oldTrackTable.rawIteratorAt (this -> daughterRow (xi.negDauId (), oldTrackTable));
840+ auto bachelor = oldTrackTable.rawIteratorAt (utils:: daughterRow (xi.bachelorId (), oldTrackTable));
841+ auto posDaughter = oldTrackTable.rawIteratorAt (utils:: daughterRow (xi.posDauId (), oldTrackTable));
842+ auto negDaughter = oldTrackTable.rawIteratorAt (utils:: daughterRow (xi.negDauId (), oldTrackTable));
843843
844844 int64_t bachelorIndex = trackBuilder.getDaughterIndex (bachelor, newTrackTable, newCollisionTable);
845845 int64_t posDaughterIndex = trackBuilder.getDaughterIndex (posDaughter, newTrackTable, newCollisionTable);
@@ -867,9 +867,9 @@ class CascadeBuilderDerivedToDerived
867867 auto omegaSlice = partitionOmega->sliceByCached (o2::aod::femtobase::stored::fColId , col.globalIndex (), cache);
868868
869869 for (auto const & omega : omegaSlice) {
870- auto bachelor = oldTrackTable.rawIteratorAt (this -> daughterRow (omega.bachelorId (), oldTrackTable));
871- auto posDaughter = oldTrackTable.rawIteratorAt (this -> daughterRow (omega.posDauId (), oldTrackTable));
872- auto negDaughter = oldTrackTable.rawIteratorAt (this -> daughterRow (omega.negDauId (), oldTrackTable));
870+ auto bachelor = oldTrackTable.rawIteratorAt (utils:: daughterRow (omega.bachelorId (), oldTrackTable));
871+ auto posDaughter = oldTrackTable.rawIteratorAt (utils:: daughterRow (omega.posDauId (), oldTrackTable));
872+ auto negDaughter = oldTrackTable.rawIteratorAt (utils:: daughterRow (omega.negDauId (), oldTrackTable));
873873
874874 int64_t bachelorIndex = trackBuilder.getDaughterIndex (bachelor, newTrackTable, newCollisionTable);
875875 int64_t posDaughterIndex = trackBuilder.getDaughterIndex (posDaughter, newTrackTable, newCollisionTable);
@@ -888,20 +888,6 @@ class CascadeBuilderDerivedToDerived
888888 }
889889
890890 private:
891- // / Translate a global daughter index into a row of the current track table frame.
892- // / Aborts if the index does not fall inside the frame, which would otherwise
893- // / silently produce an out-of-range iterator.
894- template <typename T>
895- int64_t daughterRow (int64_t daughterId, T const & trackTable) const
896- {
897- const int64_t row = daughterId - trackTable.offset ();
898- if (daughterId < 0 || row < 0 || row >= static_cast <int64_t >(trackTable.size ())) {
899- LOG (fatal) << " Daughter index " << daughterId << " out of range for track table (offset "
900- << trackTable.offset () << " , size " << trackTable.size () << " ). Breaking..." ;
901- }
902- return row;
903- }
904-
905891 int mLimitXi = 0 ;
906892 int mLimitOmega = 0 ;
907893};
0 commit comments