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: ";
64 if (ret.
index() < 0) {
65 throw cms::Exception(
"Assert") <<
"No hit index for cluster " << clusterIndex <<
" of collection " <<
id;
void increaseLayerSize(int layer, size_t additionalSize)
ret
prodAgent to be discontinued
std::vector< ClusterToMkFitHit > cmsswToMkFit_
void insert(edm::ProductID id, size_t clusterIndex, MkFitHit hit, const TrackingRecHit *hitPtr)
const MkFitHit & mkFitHit(edm::ProductID id, size_t clusterIndex) const
Get mkFit hit index and layer.
size_t clusterIndex(MkFitHit hit) const
Get CMSSW cluster index (currently used only for debugging)
std::vector< std::vector< CMSSWHit > > mkFitToCMSSW_
def elem(elemtype, innerHTML='', html_class='', kwargs)
void resizeByClusterIndex(edm::ProductID id, size_t clusterIndex)
const TrackingRecHit * hitPtr(MkFitHit hit) const
Get CMSSW hit pointer.