@@ -862,13 +862,13 @@ void countTrackletsInROFsHandler(const IndexTableUtils* utils,
862862 gsl::span<int *> trackletsLUTsHost,
863863 const int iteration,
864864 const float NSigmaCut,
865- std::vector <float >& phiCuts,
865+ bounded_vector <float >& phiCuts,
866866 const float resolutionPV,
867867 std::array<float , nLayers>& minRs,
868868 std::array<float , nLayers>& maxRs,
869- std::vector <float >& resolutions,
869+ bounded_vector <float >& resolutions,
870870 std::vector<float >& radii,
871- std::vector <float >& mulScatAng,
871+ bounded_vector <float >& mulScatAng,
872872 const int nBlocks,
873873 const int nThreads)
874874{
@@ -928,13 +928,13 @@ void computeTrackletsInROFsHandler(const IndexTableUtils* utils,
928928 gsl::span<int *> trackletsLUTsHost,
929929 const int iteration,
930930 const float NSigmaCut,
931- std::vector <float >& phiCuts,
931+ bounded_vector <float >& phiCuts,
932932 const float resolutionPV,
933933 std::array<float , nLayers>& minRs,
934934 std::array<float , nLayers>& maxRs,
935- std::vector <float >& resolutions,
935+ bounded_vector <float >& resolutions,
936936 std::vector<float >& radii,
937- std::vector <float >& mulScatAng,
937+ bounded_vector <float >& mulScatAng,
938938 const int nBlocks,
939939 const int nThreads)
940940{
@@ -1139,7 +1139,7 @@ void processNeighboursHandler(const int startLayer,
11391139 std::array<int *, nLayers - 2 >& neighbours,
11401140 gsl::span<int *> neighboursDeviceLUTs,
11411141 const TrackingFrameInfo** foundTrackingFrameInfo,
1142- std::vector <CellSeed>& seedsHost,
1142+ bounded_vector <CellSeed>& seedsHost,
11431143 const float bz,
11441144 const float maxChi2ClusterAttachment,
11451145 const float maxChi2NDF,
@@ -1257,9 +1257,8 @@ void processNeighboursHandler(const int startLayer,
12571257 thrust::device_vector<CellSeed> outSeeds (updatedCellSeed.size());
12581258 auto end = thrust::copy_if(updatedCellSeed.begin(), updatedCellSeed.end(), outSeeds.begin(), gpu::seed_selector(1 .e3 , maxChi2NDF * ((startLevel + 2 ) * 2 - 5)));
12591259 auto s{end - outSeeds.begin ()};
1260- std::vector<CellSeed> outSeedsHost (s);
1261- thrust::copy (outSeeds.begin(), outSeeds.begin() + s, outSeedsHost.begin());
1262- seedsHost.insert(seedsHost.end(), outSeedsHost.begin(), outSeedsHost.end());
1260+ seedsHost.reserve(seedsHost.size() + s);
1261+ thrust::copy (outSeeds.begin(), outSeeds.begin() + s, std::back_inserter(seedsHost));
12631262}
12641263
12651264void trackSeedHandler (CellSeed* trackSeeds,
@@ -1316,13 +1315,13 @@ template void countTrackletsInROFsHandler<7>(const IndexTableUtils* utils,
13161315 gsl::span<int *> trackletsLUTsHost,
13171316 const int iteration,
13181317 const float NSigmaCut,
1319- std::vector <float >& phiCuts,
1318+ bounded_vector <float >& phiCuts,
13201319 const float resolutionPV,
13211320 std::array<float , 7 >& minRs,
13221321 std::array<float , 7 >& maxRs,
1323- std::vector <float >& resolutions,
1322+ bounded_vector <float >& resolutions,
13241323 std::vector<float >& radii,
1325- std::vector <float >& mulScatAng,
1324+ bounded_vector <float >& mulScatAng,
13261325 const int nBlocks,
13271326 const int nThreads);
13281327
@@ -1348,13 +1347,13 @@ template void computeTrackletsInROFsHandler<7>(const IndexTableUtils* utils,
13481347 gsl::span<int *> trackletsLUTsHost,
13491348 const int iteration,
13501349 const float NSigmaCut,
1351- std::vector <float >& phiCuts,
1350+ bounded_vector <float >& phiCuts,
13521351 const float resolutionPV,
13531352 std::array<float , 7 >& minRs,
13541353 std::array<float , 7 >& maxRs,
1355- std::vector <float >& resolutions,
1354+ bounded_vector <float >& resolutions,
13561355 std::vector<float >& radii,
1357- std::vector <float >& mulScatAng,
1356+ bounded_vector <float >& mulScatAng,
13581357 const int nBlocks,
13591358 const int nThreads);
13601359
@@ -1367,7 +1366,7 @@ template void processNeighboursHandler<7>(const int startLayer,
13671366 std::array<int *, 5 >& neighbours,
13681367 gsl::span<int *> neighboursDeviceLUTs,
13691368 const TrackingFrameInfo** foundTrackingFrameInfo,
1370- std::vector <CellSeed>& seedsHost,
1369+ bounded_vector <CellSeed>& seedsHost,
13711370 const float bz,
13721371 const float maxChi2ClusterAttachment,
13731372 const float maxChi2NDF,
0 commit comments