@@ -837,8 +837,10 @@ struct HfTaskCharmHadronsTrackFemtoDream {
837837
838838 void processDataLcTrk (FilteredCollisions const & cols,
839839 FilteredFDParticles const & parts,
840- FilteredCharmCand3Prongs const &)
840+ FilteredCharmCand3Prongs const & candidates )
841841 {
842+ rowFemtoResultCharm3Prong.reserve (2 * candidates.size () + 1 );
843+ rowFemtoResultTrk.reserve (parts.size () + 1 );
842844 for (const auto & col : cols) {
843845 eventHisto.fillQA (col);
844846 auto * partitionTrk1Selected = &partitionTrk1;
@@ -876,8 +878,10 @@ struct HfTaskCharmHadronsTrackFemtoDream {
876878
877879 void processDataDplusTrk (FilteredCollisions const & cols,
878880 FilteredFDParticles const & parts,
879- FilteredCharmCand3Prongs const &)
881+ FilteredCharmCand3Prongs const & candidates )
880882 {
883+ rowFemtoResultCharm3Prong.reserve (candidates.size () + 1 );
884+ rowFemtoResultTrk.reserve (parts.size () + 1 );
881885 for (const auto & col : cols) {
882886 eventHisto.fillQA (col);
883887 auto * partitionTrk1Selected = &partitionTrk1;
@@ -916,8 +920,10 @@ struct HfTaskCharmHadronsTrackFemtoDream {
916920
917921 void processDataD0Trk (FilteredCollisions const & cols,
918922 FilteredFDParticles const & parts,
919- FilteredCharmCand2Prongs const &)
923+ FilteredCharmCand2Prongs const & candidates )
920924 {
925+ rowFemtoResultCharm2Prong.reserve (candidates.size () * 2 + 1 );
926+ rowFemtoResultTrk.reserve (parts.size () + 1 );
921927 for (const auto & col : cols) {
922928 eventHisto.fillQA (col);
923929 auto * partitionTrk1Selected = &partitionTrk1;
@@ -955,8 +961,10 @@ struct HfTaskCharmHadronsTrackFemtoDream {
955961
956962 void processDataDstarTrk (FilteredCollisions const & cols,
957963 FilteredFDParticles const & parts,
958- FilteredCharmCandDstars const &)
964+ FilteredCharmCandDstars const & candidates )
959965 {
966+ rowFemtoResultCharmDstar.reserve (candidates.size () + 1 );
967+ rowFemtoResultTrk.reserve (parts.size () + 1 );
960968 for (const auto & col : cols) {
961969 eventHisto.fillQA (col);
962970 auto * partitionTrk1Selected = &partitionTrk1;
0 commit comments