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