24 template <
typename ColumnContainer>
25 static inline auto findByPdg(int32_t
pdg,
const ColumnContainer& column)
26 -> std::optional<std::decay_t<decltype(column[0])>> {
28 assert((std::size(column) ==
kParticlesCount) and
"Inconsistent column size");
33 auto pos = std::lower_bound(beg, end,
pdg);
40 return std::make_optional(column[std::distance(beg,
pos)]);
50 return std::numeric_limits<float>::quiet_NaN();
66 os << static_cast<int32_t>(
pdg);
67 if (not
name.empty()) {