16 segments.reserve(hitGroups.size());
18 for (
const auto& [key, hits] : hitGroups) {
23 std::uint16_t firstChannel = std::numeric_limits<std::uint16_t>::max();
24 std::uint16_t lastChannel = 0;
25 for (
const Hit& hit : hits) {
26 firstChannel = std::min(firstChannel, hit.channel);
27 lastChannel = std::max(lastChannel, hit.channel);
30 segments.emplace_back(key, firstChannel, lastChannel, hits.size());
32 return StatusCode::SUCCESS;