@@ -839,7 +839,8 @@ struct HfTaskCharmHadronsTrackFemtoDream {
839839 FilteredFDParticles const & parts,
840840 FilteredCharmCand3Prongs const & candidates)
841841 {
842- rowFemtoResultCharm3Prong.reserve (candidates.size () + 1 );
842+ rowFemtoResultCharm3Prong.reserve (2 * candidates.size () + 1 );
843+ rowFemtoResultTrk.reserve (parts.size () + 1 );
843844 for (const auto & col : cols) {
844845 eventHisto.fillQA (col);
845846 auto * partitionTrk1Selected = &partitionTrk1;
@@ -879,7 +880,8 @@ struct HfTaskCharmHadronsTrackFemtoDream {
879880 FilteredFDParticles const & parts,
880881 FilteredCharmCand3Prongs const & candidates)
881882 {
882- rowFemtoResultCharm2Prong.reserve (candidates.size () + 1 );
883+ rowFemtoResultCharm3Prong.reserve (candidates.size () + 1 );
884+ rowFemtoResultTrk.reserve (parts.size () + 1 );
883885 for (const auto & col : cols) {
884886 eventHisto.fillQA (col);
885887 auto * partitionTrk1Selected = &partitionTrk1;
@@ -921,6 +923,7 @@ struct HfTaskCharmHadronsTrackFemtoDream {
921923 FilteredCharmCand2Prongs const & candidates)
922924 {
923925 rowFemtoResultCharm2Prong.reserve (candidates.size () * 2 + 1 );
926+ rowFemtoResultTrk.reserve (parts.size () + 1 );
924927 for (const auto & col : cols) {
925928 eventHisto.fillQA (col);
926929 auto * partitionTrk1Selected = &partitionTrk1;
@@ -961,6 +964,7 @@ struct HfTaskCharmHadronsTrackFemtoDream {
961964 FilteredCharmCandDstars const & candidates)
962965 {
963966 rowFemtoResultCharmDstar.reserve (candidates.size () + 1 );
967+ rowFemtoResultTrk.reserve (parts.size () + 1 );
964968 for (const auto & col : cols) {
965969 eventHisto.fillQA (col);
966970 auto * partitionTrk1Selected = &partitionTrk1;
0 commit comments