20 std::vector<HWIdentifier>&& oflHashtoSymOnl,
21 std::vector<HWIdentifier>&& onlHashtoSymOnl,
22 std::vector<HWIdentifier>&&
symIds) :
32std::vector<LArMCSym::IdPair_t>
34 const std::vector<HWIdentifier>&
symIds)
const
36 std::vector<IdPair_t> out;
37 out.reserve (ids.size());
44 else if (
id != last_id) {
49 auto it = std::lower_bound (
symIds.begin(),
symIds.end(),
id);
50 if (it ==
symIds.end() || *it !=
id) std::abort();
54 out.emplace_back (
id.get_identifier32().get_compact(), idx);
Helper base class for offline cell identifiers.
const std::vector< HWIdentifier > & symIds() const
Return the list of symmetric hashes.
const LArOnlineID_Base * m_onlineID
const std::vector< IdPair_t > m_oflHashtoSymOnl
const std::vector< HWIdentifier > m_symIds
std::vector< IdPair_t > initIndices(const std::vector< HWIdentifier > &ids, const std::vector< HWIdentifier > &symIds) const
static constexpr size_t NO_INDEX
Return for an index if there's no valid symmetric identifier.
const std::vector< IdPair_t > m_onlHashtoSymOnl
const CaloCell_Base_ID * m_caloCellID
Helper for the Liquid Argon Calorimeter cell identifiers.