ATLAS Offline Software
|
#include <RpcCablingMap.h>
Classes | |
struct | CoolDBEntry |
Helper struct to ship all information from the Database More... | |
struct | GasGapToTdcAssociation |
Helper struct to associate all strips in an eta/phi gasGap to the corresponding Tdc. More... | |
struct | TdcToGasGapAssociation |
Helper struct to associate all Tdcs to their corresponding strips in the gasGap. More... | |
Public Types | |
using | ChamberToROBMap = std::unordered_map< IdentifierHash, uint32_t > |
typedef to implement the csm mapping to ROB More... | |
using | ROBToChamberMap = std::unordered_map< uint32_t, std::vector< IdentifierHash > > |
using | ListOfROB = std::vector< uint32_t > |
using | FlatCablePtr = GeoModel::TransientConstSharedPtr< Muon::RpcFlatCableTranslator > |
Public Member Functions | |
RpcCablingMap (const IMuonIdHelperSvc *idHelperSvc) | |
Constructor taking the IdHelperSvc. More... | |
~RpcCablingMap () | |
bool | getOfflineId (RpcCablingData &cabling_data, MsgStream &log) const |
return the offline id given the online id More... | |
bool | getOnlineId (RpcCablingData &cabling_data, MsgStream &log) const |
return the online id given the offline id More... | |
bool | convert (const RpcCablingData &translationCache, Identifier &id, bool checkValid=true) const |
Converts the translation cache back to an Identifier. More... | |
bool | convert (const Identifier &id, RpcCablingData &translationCache, bool setSideBit) const |
Copies the Identifier field onto the translationCache. More... | |
bool | insertChannels (CoolDBEntry &&dbEntry, MsgStream &log) |
Inserts a new dbEntry into the map. More... | |
std::set< FlatCablePtr > | flatCables () const |
Returns the list of all Rpc flat cable cards. 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... | |
std::vector< IdentifierHash > | getChamberHashVec (const ListOfROB &ROBs, MsgStream &log) const |
const ListOfROB & | getAllROBId () const |
return the full list of ROD id More... | |
Private Types | |
using | AllTdcsPerGasGap = std::vector< GasGapToTdcAssociation > |
using | AllGasGapsPerTdc = std::vector< TdcToGasGapAssociation > |
using | OfflToOnlMap = std::map< RpcCablingOfflineID, AllTdcsPerGasGap > |
using | OnlToOfflMap = std::map< RpcCablingOnlineID, AllGasGapsPerTdc > |
Private Attributes | |
const RpcIdHelper & | m_rpcIdHelper |
Pointer to the RpcIdHelper. More... | |
OnlToOfflMap | m_onToOffline {} |
Map storing the connection from online -> offline channels. More... | |
OfflToOnlMap | m_offToOnline {} |
Map to cache the offline -> online conversions */. More... | |
ChamberToROBMap | m_chambROBs {} |
ROBToChamberMap | m_ROBHashes {} |
ListOfROB | m_listOfROB {} |
full list of ROBs More... | |
Definition at line 27 of file RpcCablingMap.h.
|
private |
Definition at line 116 of file RpcCablingMap.h.
|
private |
Definition at line 115 of file RpcCablingMap.h.
using Muon::RpcCablingMap::ChamberToROBMap = std::unordered_map<IdentifierHash, uint32_t> |
typedef to implement the csm mapping to ROB
Definition at line 31 of file RpcCablingMap.h.
using Muon::RpcCablingMap::FlatCablePtr = GeoModel::TransientConstSharedPtr<Muon::RpcFlatCableTranslator> |
Definition at line 35 of file RpcCablingMap.h.
using Muon::RpcCablingMap::ListOfROB = std::vector<uint32_t> |
Definition at line 33 of file RpcCablingMap.h.
|
private |
Definition at line 117 of file RpcCablingMap.h.
|
private |
Definition at line 118 of file RpcCablingMap.h.
using Muon::RpcCablingMap::ROBToChamberMap = std::unordered_map<uint32_t, std::vector<IdentifierHash> > |
Definition at line 32 of file RpcCablingMap.h.
Muon::RpcCablingMap::RpcCablingMap | ( | const IMuonIdHelperSvc * | idHelperSvc | ) |
|
default |
bool Muon::RpcCablingMap::convert | ( | const Identifier & | id, |
RpcCablingData & | translationCache, | ||
bool | setSideBit | ||
) | const |
Copies the Identifier field onto the translationCache.
id | Identifier of the offline channel to copy |
setSideBit | Indicate that the chip is located at the HV side of the chamber (BIL-RPC) |
Definition at line 33 of file RpcCablingMap.cxx.
bool Muon::RpcCablingMap::convert | ( | const RpcCablingData & | translationCache, |
Identifier & | id, | ||
bool | checkValid = true |
||
) | const |
Converts the translation cache back to an Identifier.
translationCache | Reference to the translation cache to take the Identifier fields from |
id | Reference to the target Identifier to modify |
checkValid | Checks whether the resuling Identifier is valid within the boundaries of the associated fields. May trigger the function to return false, but is also tremendously slow!!! |
Definition at line 19 of file RpcCablingMap.cxx.
bool Muon::RpcCablingMap::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 153 of file RpcCablingMap.cxx.
std::set< RpcCablingMap::FlatCablePtr > Muon::RpcCablingMap::flatCables | ( | ) | const |
const RpcCablingMap::ListOfROB & Muon::RpcCablingMap::getAllROBId | ( | ) | const |
return the full list of ROD id
Definition at line 228 of file RpcCablingMap.cxx.
std::vector< IdentifierHash > Muon::RpcCablingMap::getChamberHashVec | ( | const ListOfROB & | ROBs, |
MsgStream & | log | ||
) | const |
Definition at line 217 of file RpcCablingMap.cxx.
const std::vector< IdentifierHash > & Muon::RpcCablingMap::getChamberHashVec | ( | const uint32_t | ROBI, |
MsgStream & | log | ||
) | const |
bool Muon::RpcCablingMap::getOfflineId | ( | RpcCablingData & | cabling_data, |
MsgStream & | log | ||
) | const |
return the offline id given the online id
The channel is not connected to this slot
Assign the chamber
Definition at line 93 of file RpcCablingMap.cxx.
bool Muon::RpcCablingMap::getOnlineId | ( | RpcCablingData & | 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 50 of file RpcCablingMap.cxx.
uint32_t Muon::RpcCablingMap::getROBId | ( | const IdentifierHash & | stationCode, |
MsgStream & | log | ||
) | const |
return the ROD id of a given chamber, given the hash id
Definition at line 187 of file RpcCablingMap.cxx.
RpcCablingMap::ListOfROB Muon::RpcCablingMap::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 198 of file RpcCablingMap.cxx.
bool Muon::RpcCablingMap::insertChannels | ( | CoolDBEntry && | dbEntry, |
MsgStream & | log | ||
) |
Inserts a new dbEntry into the map.
dbEntry | Reference to all the DB information to insert |
log | Refernce to the MsgStream of the executing algorithm to report failures & debugs |
Definition at line 122 of file RpcCablingMap.cxx.
|
private |
Definition at line 125 of file RpcCablingMap.h.
|
private |
full list of ROBs
Definition at line 129 of file RpcCablingMap.h.
|
private |
Map to cache the offline -> online conversions */.
Definition at line 123 of file RpcCablingMap.h.
|
private |
Map storing the connection from online -> offline channels.
Definition at line 121 of file RpcCablingMap.h.
|
private |
Definition at line 126 of file RpcCablingMap.h.
|
private |
Pointer to the RpcIdHelper.
Definition at line 114 of file RpcCablingMap.h.