@@ -497,24 +497,24 @@ struct TrackTuner : o2::framework::ConfigurableGroup {
497
497
if (inputNphiBins == 0 )
498
498
nPhiBins = 1 ; // old phi_independent settings
499
499
500
- // reserve memory for needed number of graphs
501
- grDcaXYResVsPtPionMC.reserve (nPhiBins);
502
- grDcaXYResVsPtPionData.reserve (nPhiBins);
500
+ // reserve memory and initialize vector for needed number of graphs
501
+ grDcaXYResVsPtPionMC.resize (nPhiBins);
502
+ grDcaXYResVsPtPionData.resize (nPhiBins);
503
503
504
- grDcaZResVsPtPionMC.reserve (nPhiBins);
505
- grDcaZResVsPtPionData.reserve (nPhiBins);
504
+ grDcaZResVsPtPionMC.resize (nPhiBins);
505
+ grDcaZResVsPtPionData.resize (nPhiBins);
506
506
507
- grDcaXYMeanVsPtPionMC.reserve (nPhiBins);
508
- grDcaXYMeanVsPtPionData.reserve (nPhiBins);
507
+ grDcaXYMeanVsPtPionMC.resize (nPhiBins);
508
+ grDcaXYMeanVsPtPionData.resize (nPhiBins);
509
509
510
- grDcaZMeanVsPtPionMC.reserve (nPhiBins);
511
- grDcaZMeanVsPtPionData.reserve (nPhiBins);
510
+ grDcaZMeanVsPtPionMC.resize (nPhiBins);
511
+ grDcaZMeanVsPtPionData.resize (nPhiBins);
512
512
513
- grDcaXYPullVsPtPionMC.reserve (nPhiBins);
514
- grDcaXYPullVsPtPionData.reserve (nPhiBins);
513
+ grDcaXYPullVsPtPionMC.resize (nPhiBins);
514
+ grDcaXYPullVsPtPionData.resize (nPhiBins);
515
515
516
- grDcaZPullVsPtPionMC.reserve (nPhiBins);
517
- grDcaZPullVsPtPionData.reserve (nPhiBins);
516
+ grDcaZPullVsPtPionMC.resize (nPhiBins);
517
+ grDcaZPullVsPtPionData.resize (nPhiBins);
518
518
519
519
// / Lambda expression to get the TGraphErrors from file
520
520
auto loadGraph = [&](int phiBin, const std::string& strBaseName) -> TGraphErrors* {
0 commit comments