18 std::vector<FW::ParticleHitCount>& particleHitCount) {
19 particleHitCount.clear();
21 for (
auto hitIndex : protoTrack) {
23 for (
auto hitParticle :
makeRange(hitParticlesMap.equal_range(hitIndex))) {
24 auto particleId = hitParticle.second;
27 return (phc.particleId == particleId);
29 auto it = std::find_if(particleHitCount.begin(), particleHitCount.end(),
32 if (
it != particleHitCount.end()) {
35 particleHitCount.push_back({particleId, 1
u});
45 std::sort(particleHitCount.begin(), particleHitCount.end(), compareHitCount);