ATLAS Offline Software
|
#include <SCT_CablingData.h>
Public Types | |
enum | { NUMBER_OF_HASHES =8176 } |
Private Attributes | |
std::array< IdentifierHash, SCT_OnlineId::NUMBER_OF_INDICES > | m_onlineId2HashArray |
Array for onlineId to hash. More... | |
std::array< SCT_OnlineId, NUMBER_OF_HASHES > | m_hash2OnlineIdArray |
Array for hash to onlineId; hash goes from 0-8175. More... | |
std::map< SCT_SerialNumber, IdentifierHash > | m_sn2HashMap |
Data map for serial number to hash. More... | |
std::array< SCT_SerialNumber, NUMBER_OF_HASHES > | m_hash2SnArray |
Array for hash to serial number. More... | |
std::set< std::uint32_t > | m_rodIdSet |
Set of robIds. More... | |
Static Private Attributes | |
static const IdentifierHash | s_invalidHash {} |
Invalid IdentifierHash. More... | |
static const SCT_OnlineId | s_invalidId {} |
Invalid SCT_OnlineId. More... | |
static const SCT_SerialNumber | s_invalidSn {} |
Invalid SCT_SerialNumber. More... | |
A class to hold the data necessary for SCT_CablingTool. This class is filled by SCT_CablingCondAlgFromCoraCool or SCT_CablingCondAlgFromText for SCT_CablingTool.
Definition at line 35 of file SCT_CablingData.h.
anonymous enum |
SCT_CablingData::SCT_CablingData | ( | ) |
|
default |
destructor
|
default |
Default copy constructor.
|
default |
Default move constructor.
unsigned int SCT_CablingData::getHashEntries | ( | ) | const |
Return the size of m_sn2HashMap.
Definition at line 110 of file SCT_CablingData.cxx.
IdentifierHash SCT_CablingData::getHashFromOnlineId | ( | const SCT_OnlineId & | onlineId | ) | const |
IdentifierHash SCT_CablingData::getHashFromSerialNumber | ( | const SCT_SerialNumber & | sn | ) | const |
SCT_OnlineId SCT_CablingData::getOnlineIdFromHash | ( | const IdentifierHash & | hash | ) | const |
Get SCT_OnlineId from IdentifierHash.
Definition at line 65 of file SCT_CablingData.cxx.
void SCT_CablingData::getRods | ( | std::vector< std::uint32_t > & | usersVector | ) | const |
Get a vector of all RODs.
Definition at line 106 of file SCT_CablingData.cxx.
SCT_SerialNumber SCT_CablingData::getSerialNumberFromHash | ( | const IdentifierHash & | hash | ) | const |
Get SCT_SerialNumber from IdentifierHash.
Definition at line 94 of file SCT_CablingData.cxx.
void SCT_CablingData::invalidate | ( | ) |
void SCT_CablingData::invalidateHashesForOnlineIds | ( | ) |
Invalidate m_onlineId2HashArray.
Definition at line 34 of file SCT_CablingData.cxx.
void SCT_CablingData::invalidateHashesForSerialNumbers | ( | ) |
Invalidate m_sn2HashMap.
Definition at line 69 of file SCT_CablingData.cxx.
void SCT_CablingData::invalidateOnlineIdsForHashes | ( | ) |
Invalidate m_hash2OnlineIdArray.
Definition at line 54 of file SCT_CablingData.cxx.
void SCT_CablingData::invalidateRods | ( | ) |
Invalidate m_rodIdSet.
Definition at line 98 of file SCT_CablingData.cxx.
void SCT_CablingData::invalidateSerialNumbersForHashes | ( | ) |
Invalidate m_hash2SnArray.
Definition at line 83 of file SCT_CablingData.cxx.
|
default |
Default assignment operator.
|
default |
Default move assignment operator.
bool SCT_CablingData::setHashForOnlineId | ( | const IdentifierHash & | hash, |
const SCT_OnlineId & | onlineId | ||
) |
Set m_onlineId2HashArray.
Definition at line 38 of file SCT_CablingData.cxx.
bool SCT_CablingData::setHashForSerialNumber | ( | const IdentifierHash & | hash, |
const SCT_SerialNumber & | sn | ||
) |
Set m_sn2HashMap.
Definition at line 73 of file SCT_CablingData.cxx.
bool SCT_CablingData::setOnlineIdForHash | ( | const SCT_OnlineId & | onlineId, |
const IdentifierHash & | hash | ||
) |
Set m_hash2OnlineIdArray.
Definition at line 58 of file SCT_CablingData.cxx.
void SCT_CablingData::setRod | ( | const std::uint32_t & | rod | ) |
Set m_rodIdSet.
Definition at line 102 of file SCT_CablingData.cxx.
bool SCT_CablingData::setSerialNumberForHash | ( | const SCT_SerialNumber & | sn, |
const IdentifierHash & | hash | ||
) |
Set m_hash2SnArray.
Definition at line 87 of file SCT_CablingData.cxx.
|
private |
Array for hash to onlineId; hash goes from 0-8175.
Definition at line 96 of file SCT_CablingData.h.
|
private |
Array for hash to serial number.
Definition at line 98 of file SCT_CablingData.h.
|
private |
Array for onlineId to hash.
Definition at line 95 of file SCT_CablingData.h.
|
private |
Set of robIds.
Definition at line 99 of file SCT_CablingData.h.
|
private |
Data map for serial number to hash.
Definition at line 97 of file SCT_CablingData.h.
|
staticprivate |
Invalid IdentifierHash.
Definition at line 101 of file SCT_CablingData.h.
|
staticprivate |
Invalid SCT_OnlineId.
Definition at line 102 of file SCT_CablingData.h.
|
staticprivate |
Invalid SCT_SerialNumber.
Definition at line 103 of file SCT_CablingData.h.