![]() |
ATLAS Offline Software
|
#include <MuonNRPC_CablingMap.h>
Public Types | |
using | ChamberToROBMap = std::map< IdentifierHash, uint32_t > |
typedef to implement the csm mapping to ROB More... | |
using | ROBToChamberMap = std::map< uint32_t, std::vector< IdentifierHash > > |
using | ListOfROB = std::vector< uint32_t > |
Public Member Functions | |
MuonNRPC_CablingMap () | |
~MuonNRPC_CablingMap () | |
bool | getOfflineId (NrpcCablingData &cabling_data, MsgStream &log) const |
return the offline id given the online id More... | |
bool | getOnlineId (NrpcCablingData &cabling_data, MsgStream &log) const |
return the online id given the offline id More... | |
bool | convert (const NrpcCablingData &cabling_data, Identifier &id, bool check_valid=true) const |
converts the cabling data into an identifier. More... | |
bool | convert (const Identifier &id, NrpcCablingData &cabling_data, bool setSideBit) const |
converts the identifier into a cabling data object. More... | |
bool | insertChannels (const NrpcCablingCoolData &cabling_data, MsgStream &log) |
Inserts a cabling object into the map. More... | |
bool | finalize (MsgStream &log) |
Performs consistency checks for the cabling data (I.e. More... | |
uint32_t | getROBId (const IdentifierHash &stationCode, MsgStream &log) const |
return the ROD id of a given chamber, given the hash id More... | |
ListOfROB | getROBId (const std::vector< IdentifierHash > &rpcHashVector, MsgStream &log) const |
get the robs corresponding to a vector of hashIds, copied from Svc before the readCdo migration More... | |
const std::vector< IdentifierHash > & | getChamberHashVec (const uint32_t ROBI, MsgStream &log) const |
return a HashId list for a given ROD More... | |
const ListOfROB & | getAllROBId () const |
return the full list of ROD id More... | |
Private Types | |
using | OnlToOfflMap = std::map< NrpcCablOnDataByTdc, NrpcCablingOfflineID, std::less<> > |
using | OfflToOnlMap = std::map< NrpcCablingOfflineID, NrpcCablOnDataByStripSet, std::less<> > |
Private Attributes | |
OnlToOfflMap | m_onToOffline {} |
Map to cache the online -> offline conversions. More... | |
OfflToOnlMap | m_offToOnline {} |
Map to cache the offline -> online conversions. More... | |
ChamberToROBMap | m_chambROBs {} |
ROBToChamberMap | m_ROBHashes {} |
const RpcIdHelper * | m_rpcIdHelper {} |
Pointer to the RpcIdHelper. More... | |
ListOfROB | m_listOfROB {} |
full list of ROBs More... | |
Definition at line 21 of file MuonNRPC_CablingMap.h.
using MuonNRPC_CablingMap::ChamberToROBMap = std::map<IdentifierHash, uint32_t> |
typedef to implement the csm mapping to ROB
Definition at line 25 of file MuonNRPC_CablingMap.h.
using MuonNRPC_CablingMap::ListOfROB = std::vector<uint32_t> |
Definition at line 27 of file MuonNRPC_CablingMap.h.
|
private |
Definition at line 67 of file MuonNRPC_CablingMap.h.
|
private |
Definition at line 66 of file MuonNRPC_CablingMap.h.
using MuonNRPC_CablingMap::ROBToChamberMap = std::map<uint32_t, std::vector<IdentifierHash> > |
Definition at line 26 of file MuonNRPC_CablingMap.h.
MuonNRPC_CablingMap::MuonNRPC_CablingMap | ( | ) |
Definition at line 13 of file MuonNRPC_CablingMap.cxx.
|
default |
bool MuonNRPC_CablingMap::convert | ( | const Identifier & | id, |
NrpcCablingData & | cabling_data, | ||
bool | setSideBit | ||
) | const |
converts the identifier into a cabling data object.
Returns false if the Identifier is not Nrpc.
Definition at line 49 of file MuonNRPC_CablingMap.cxx.
bool MuonNRPC_CablingMap::convert | ( | const NrpcCablingData & | cabling_data, |
Identifier & | id, | ||
bool | check_valid = true |
||
) | const |
converts the cabling data into an identifier.
The check valid argument optionally enables the check that the returned identifier is actually well defined within the ranges but is also slow
Definition at line 31 of file MuonNRPC_CablingMap.cxx.
bool MuonNRPC_CablingMap::finalize | ( | MsgStream & | log | ) |
Performs consistency checks for the cabling data (I.e.
looking for 0 strips and overlaps)
Generate the ROB maps
Definition at line 162 of file MuonNRPC_CablingMap.cxx.
const MuonNRPC_CablingMap::ListOfROB & MuonNRPC_CablingMap::getAllROBId | ( | ) | const |
return the full list of ROD id
Definition at line 222 of file MuonNRPC_CablingMap.cxx.
const std::vector< IdentifierHash > & MuonNRPC_CablingMap::getChamberHashVec | ( | const uint32_t | ROBI, |
MsgStream & | log | ||
) | const |
bool MuonNRPC_CablingMap::getOfflineId | ( | NrpcCablingData & | cabling_data, |
MsgStream & | log | ||
) | const |
bool MuonNRPC_CablingMap::getOnlineId | ( | NrpcCablingData & | cabling_data, |
MsgStream & | log | ||
) | const |
return the online id given the offline id
get the online id from the offline id
Assign the TDC / tdcSector / subDetector ID
Definition at line 85 of file MuonNRPC_CablingMap.cxx.
uint32_t MuonNRPC_CablingMap::getROBId | ( | const IdentifierHash & | stationCode, |
MsgStream & | log | ||
) | const |
return the ROD id of a given chamber, given the hash id
Definition at line 194 of file MuonNRPC_CablingMap.cxx.
MuonNRPC_CablingMap::ListOfROB MuonNRPC_CablingMap::getROBId | ( | const std::vector< IdentifierHash > & | rpcHashVector, |
MsgStream & | log | ||
) | const |
get the robs corresponding to a vector of hashIds, copied from Svc before the readCdo migration
Definition at line 205 of file MuonNRPC_CablingMap.cxx.
bool MuonNRPC_CablingMap::insertChannels | ( | const NrpcCablingCoolData & | cabling_data, |
MsgStream & | log | ||
) |
Inserts a cabling object into the map.
Definition at line 118 of file MuonNRPC_CablingMap.cxx.
|
private |
Definition at line 73 of file MuonNRPC_CablingMap.h.
|
private |
full list of ROBs
Definition at line 80 of file MuonNRPC_CablingMap.h.
|
private |
Map to cache the offline -> online conversions.
Definition at line 71 of file MuonNRPC_CablingMap.h.
|
private |
Map to cache the online -> offline conversions.
Definition at line 69 of file MuonNRPC_CablingMap.h.
|
private |
Definition at line 74 of file MuonNRPC_CablingMap.h.
|
private |
Pointer to the RpcIdHelper.
Definition at line 77 of file MuonNRPC_CablingMap.h.