|
ATLAS Offline Software
|
Go to the documentation of this file.
14 return (
hash>>1) << 1;
40 const unsigned int indx{onlineId.
index()};
47 const unsigned int indx{onlineId.
index()};
78 std::map<SCT_SerialNumber, IdentifierHash>::const_iterator
it{
m_sn2HashMap.find(sn)};
std::array< SCT_SerialNumber, NUMBER_OF_HASHES > m_hash2SnArray
Array for hash to serial number.
static const SCT_SerialNumber s_invalidSn
Invalid SCT_SerialNumber.
IdentifierHash getHashFromSerialNumber(const SCT_SerialNumber &sn) const
Get IdentifierHash from SCT_SerialNumber.
void setRod(const std::uint32_t &rod)
Set m_rodIdSet.
IdentifierHash getHashFromOnlineId(const SCT_OnlineId &onlineId) const
Get IdentifierHash from SCT_OnlineId.
bool setSerialNumberForHash(const SCT_SerialNumber &sn, const IdentifierHash &hash)
Set m_hash2SnArray.
void invalidateHashesForOnlineIds()
Invalidate m_onlineId2HashArray.
std::array< IdentifierHash, SCT_OnlineId::NUMBER_OF_INDICES > m_onlineId2HashArray
Array for onlineId to hash.
bool setHashForSerialNumber(const IdentifierHash &hash, const SCT_SerialNumber &sn)
Set m_sn2HashMap.
bool setOnlineIdForHash(const SCT_OnlineId &onlineId, const IdentifierHash &hash)
Set m_hash2OnlineIdArray.
void invalidateSerialNumbersForHashes()
Invalidate m_hash2SnArray.
std::set< std::uint32_t > m_rodIdSet
Set of robIds.
void invalidateOnlineIdsForHashes()
Invalidate m_hash2OnlineIdArray.
std::map< SCT_SerialNumber, IdentifierHash > m_sn2HashMap
Data map for serial number to hash.
void invalidateRods()
Invalidate m_rodIdSet.
unsigned int index() const
Return an index in the range 0-9215, calculated from parts of the onlineId.
static const SCT_OnlineId s_invalidId
Invalid SCT_OnlineId.
SCT_CablingData()
constructor
void invalidate()
Invalidate all data members.
void invalidateHashesForSerialNumbers()
Invalidate m_sn2HashMap.
void getRods(std::vector< std::uint32_t > &usersVector) const
Get a vector of all RODs.
std::array< SCT_OnlineId, NUMBER_OF_HASHES > m_hash2OnlineIdArray
Array for hash to onlineId; hash goes from 0-8175.
SCT_OnlineId getOnlineIdFromHash(const IdentifierHash &hash) const
Get SCT_OnlineId from IdentifierHash.
static const IdentifierHash s_invalidHash
Invalid IdentifierHash.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
SCT_SerialNumber getSerialNumberFromHash(const IdentifierHash &hash) const
Get SCT_SerialNumber from IdentifierHash.
unsigned int getHashEntries() const
Return the size of m_sn2HashMap.
bool setHashForOnlineId(const IdentifierHash &hash, const SCT_OnlineId &onlineId)
Set m_onlineId2HashArray.