![]() |
ATLAS Offline Software
|
#include <RpcFlatCableTranslator.h>
Public Types | |
| using | Storage_t = std::array<uint8_t, readStrips> |
| Internal storage array. | |
Public Member Functions | |
| RpcFlatCableTranslator (const uint8_t cardId) | |
| Standard constructor taking the card ID as input. | |
| uint8_t | id () const |
| Identifier of the card layout. | |
| std::optional< uint8_t > | tdcChannel (uint8_t strip, MsgStream &log) const |
| Returns the connected tdc channel connected to a strip. | |
| std::optional< uint8_t > | stripChannel (uint8_t tdcChannel, MsgStream &log) const |
| Returns the strip channel connected to a strip. | |
| bool | mapChannels (uint8_t strip, uint8_t tdc, MsgStream &log) |
| Connect the strip with a tdc channel. | |
| const Storage_t & | stripMap () const |
| Returns underlying strip mapping storage. | |
| const Storage_t & | tdcMap () const |
| Returns the underlying tdc mapping storage. | |
| uint8_t | connectedChannels () const |
| Number of connected channels. | |
Static Public Attributes | |
| static constexpr uint8_t | readStrips = 32 |
| Number of channels covered by one chip. | |
| static constexpr uint8_t | notSet = 250 |
| Default value indicating that the channel is not set. | |
| static constexpr uint8_t | firstStrip = 1 |
| Convention of the lowest strip number. | |
| static constexpr uint8_t | firstTdc = 0 |
| Convention of the lowest tdc number. | |
Private Attributes | |
| Storage_t | m_stripToTdc {make_array<uint8_t, readStrips>(notSet)} |
| Storage_t | m_tdcToStrip {make_array<uint8_t, readStrips>(notSet)} |
| uint8_t | m_id {0} |
| uint8_t | m_nCh {0} |
| Number of channels that are connected to the cable. | |
Definition at line 18 of file RpcFlatCableTranslator.h.
| using Muon::RpcFlatCableTranslator::Storage_t = std::array<uint8_t, readStrips> |
Internal storage array.
Definition at line 29 of file RpcFlatCableTranslator.h.
| Muon::RpcFlatCableTranslator::RpcFlatCableTranslator | ( | const uint8_t | cardId | ) |
Standard constructor taking the card ID as input.
Definition at line 29 of file RpcFlatCableTranslator.cxx.
| uint8_t Muon::RpcFlatCableTranslator::connectedChannels | ( | ) | const |
Number of connected channels.
Definition at line 32 of file RpcFlatCableTranslator.cxx.
| uint8_t Muon::RpcFlatCableTranslator::id | ( | ) | const |
| bool Muon::RpcFlatCableTranslator::mapChannels | ( | uint8_t | strip, |
| uint8_t | tdc, | ||
| MsgStream & | log ) |
Connect the strip with a tdc channel.
If the channel has been connected before, false is returned.
| strip | Strip number on the chamber end |
| tdc | Tdc channel on the chip end |
| log | Logger used for debugging |
Definition at line 69 of file RpcFlatCableTranslator.cxx.
| std::optional< uint8_t > Muon::RpcFlatCableTranslator::stripChannel | ( | uint8_t | tdcChannel, |
| MsgStream & | log ) const |
Returns the strip channel connected to a strip.
If the tdc is not connected, a nullopt is returned
| strip | Strip number. It should range from the first strip until the last covered strip |
| log | Logger used for debugging |
Definition at line 53 of file RpcFlatCableTranslator.cxx.
| const RpcFlatCableTranslator::Storage_t & Muon::RpcFlatCableTranslator::stripMap | ( | ) | const |
| std::optional< uint8_t > Muon::RpcFlatCableTranslator::tdcChannel | ( | uint8_t | strip, |
| MsgStream & | log ) const |
Returns the connected tdc channel connected to a strip.
If the strip is not connected to a tdc, a nullopt is returned.
| strip | Strip number. It should range from the first strip until the last covered strip |
| log | Logger used for debugging |
Definition at line 38 of file RpcFlatCableTranslator.cxx.
| const RpcFlatCableTranslator::Storage_t & Muon::RpcFlatCableTranslator::tdcMap | ( | ) | const |
Returns the underlying tdc mapping storage.
Definition at line 35 of file RpcFlatCableTranslator.cxx.
|
staticconstexpr |
Convention of the lowest strip number.
Definition at line 25 of file RpcFlatCableTranslator.h.
|
staticconstexpr |
Convention of the lowest tdc number.
Definition at line 27 of file RpcFlatCableTranslator.h.
|
private |
Definition at line 59 of file RpcFlatCableTranslator.h.
|
private |
Number of channels that are connected to the cable.
Definition at line 61 of file RpcFlatCableTranslator.h.
|
private |
Definition at line 57 of file RpcFlatCableTranslator.h.
|
private |
Definition at line 58 of file RpcFlatCableTranslator.h.
|
staticconstexpr |
Default value indicating that the channel is not set.
Definition at line 23 of file RpcFlatCableTranslator.h.
|
staticconstexpr |
Number of channels covered by one chip.
Definition at line 21 of file RpcFlatCableTranslator.h.