|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef SCT_CablingData_h
6 #define SCT_CablingData_h
87 void getRods(std::vector<std::uint32_t>& usersVector)
const;
110 #include "AthenaKernel/CondCont.h"
113 #endif // SCT_CablingData_h
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.
~SCT_CablingData()=default
destructor
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.
SCT_CablingData & operator=(const SCT_CablingData &)=default
Default assignment operator.
bool setOnlineIdForHash(const SCT_OnlineId &onlineId, const IdentifierHash &hash)
Set m_hash2OnlineIdArray.
SCT_CablingData & operator=(SCT_CablingData &&)=default
Default move assignment operator.
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.
CONDCONT_DEF(SCT_CablingData, 160983208)
void invalidateRods()
Invalidate m_rodIdSet.
SCT_CablingData(const SCT_CablingData &)=default
Default copy constructor.
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.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
SCT_OnlineId getOnlineIdFromHash(const IdentifierHash &hash) const
Get SCT_OnlineId from IdentifierHash.
SCT_CablingData(SCT_CablingData &&)=default
Default move constructor.
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.
macros to associate a CLID to a type
bool setHashForOnlineId(const IdentifierHash &hash, const SCT_OnlineId &onlineId)
Set m_onlineId2HashArray.