|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONCABLINGDATA_RPCCABLINGMAP_H
5 #define MUONCABLINGDATA_RPCCABLINGMAP_H
8 #include <unordered_map>
14 #include "Identifier/Identifier.h"
25 class IMuonIdHelperSvc;
32 using ROBToChamberMap = std::unordered_map<uint32_t, std::vector<IdentifierHash>>;
FlatCablePtr flatCable
Pointer to the flat cable card.
Hold mappings of ranges to condition objects.
RpcCablingMap(const IMuonIdHelperSvc *idHelperSvc)
Constructor taking the IdHelperSvc.
OnlToOfflMap m_onToOffline
Map storing the connection from online -> offline channels.
std::vector< GasGapToTdcAssociation > AllTdcsPerGasGap
CONDCONT_DEF(Muon::RpcCablingMap, 138104006)
Struct to represent the offline identifier of the Rpc measurement decomposed into the particular fiel...
Helper struct to associate all Tdcs to their corresponding strips in the gasGap.
FlatCablePtr flatCable
Pointer to the flat cable card.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
bool getOnlineId(RpcCablingData &cabling_data, MsgStream &log) const
return the online id given the offline id
bool operator<(const GasGapToTdcAssociation &other) const
Ordering operator by strip.
bool finalize(MsgStream &log)
Performs consistency checks for the cabling data (I.e.
ListOfROB m_listOfROB
full list of ROBs
OfflToOnlMap m_offToOnline
Map to cache the offline -> online conversions */.
uint8_t firstStrip
Lowest strip number covered by the cable.
bool insertChannels(CoolDBEntry &&dbEntry, MsgStream &log)
Inserts a new dbEntry into the map.
Helper struct to associate all strips in an eta/phi gasGap to the corresponding Tdc.
RpcCablingOfflineID gasGapID
Associated tdc chip.
bool convert(const RpcCablingData &translationCache, Identifier &id, bool checkValid=true) const
Converts the translation cache back to an Identifier.
std::set< FlatCablePtr > flatCables() const
Returns the list of all Rpc flat cable cards.
const RpcIdHelper & m_rpcIdHelper
Pointer to the RpcIdHelper.
ChamberToROBMap m_chambROBs
ROBToChamberMap m_ROBHashes
Helper struct that is parsed to the cabling map to translate between the offline & online Identifiers...
Helper struct to ship all information from the Database
In an analogous way to the RpcCablingOfflineID, the RpcCablingOnlineID, holds all information needed ...
CLASS_DEF(Muon::RpcCablingMap, 195104634, 1)
std::map< RpcCablingOnlineID, AllGasGapsPerTdc > OnlToOfflMap
std::map< RpcCablingOfflineID, AllTdcsPerGasGap > OfflToOnlMap
uint32_t getROBId(const IdentifierHash &stationCode, MsgStream &log) const
return the ROD id of a given chamber, given the hash id
uint8_t firstStrip
first strip
bool getOfflineId(RpcCablingData &cabling_data, MsgStream &log) const
return the offline id given the online id
RpcCablingOnlineID tdcID
Associated tdc chip.
FlatCablePtr flatCable
Pointer to the flat cable card.
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
std::vector< uint32_t > ListOfROB
std::vector< TdcToGasGapAssociation > AllGasGapsPerTdc
const std::vector< IdentifierHash > & getChamberHashVec(const uint32_t ROBI, MsgStream &log) const
return a HashId list for a given ROD
uint8_t firstStrip
Lowest strip number covered by the cable.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
macros to associate a CLID to a type
const ListOfROB & getAllROBId() const
return the full list of ROD id
std::unordered_map< uint32_t, std::vector< IdentifierHash > > ROBToChamberMap
std::unordered_map< IdentifierHash, uint32_t > ChamberToROBMap
typedef to implement the csm mapping to ROB