9 auto resizeByClusterIndexImpl(
T& cmsswToMkFit,
edm::ProductID id,
size_t clusterIndex) ->
typename T::iterator {
11 std::find_if(cmsswToMkFit.begin(), cmsswToMkFit.end(), [&](
const auto&
item) {
return item.productID ==
id; });
12 if (
found == cmsswToMkFit.end()) {
13 found = cmsswToMkFit.emplace(cmsswToMkFit.end(),
id);
15 if (
found->mkFitHits.size() <= clusterIndex) {
16 found->mkFitHits.resize(clusterIndex + 1);
45 if (
hit.index() >= static_cast<int>(layer.size())) {
46 layer.resize(
hit.index() + 1);
56 exp <<
"Encountered a seed with a hit having productID " <<
id
57 <<
" which is not any of the input hit collections: ";
59 exp << elem.productID <<
" ";
64 if (
ret.index() < 0) {