11 std::vector<ActsExamples::ParticleHitCount>
13 const size_t& entryIndex)
const {
14 std::vector<ActsExamples::ParticleHitCount> particleHitCount;
15 particleHitCount.reserve(10);
18 return particleHitCount;
26 const auto particleId = state.uncalibrated().truthHit().particleId();
28 auto it = std::find_if(particleHitCount.begin(), particleHitCount.end(),
30 return phc.particleId == particleId;
34 if (
it != particleHitCount.end()) {
37 particleHitCount.push_back({particleId, 1
u});
42 if (not particleHitCount.empty()) {
44 std::sort(particleHitCount.begin(), particleHitCount.end(),
51 return particleHitCount;