#include <RpcFlatCableTranslator.h>
|
static constexpr uint8_t | readStrips = 32 |
| Number of channels covered by one chip. More...
|
|
static constexpr uint8_t | notSet = 250 |
| Default value indicating that the channel is not set. More...
|
|
static constexpr uint8_t | firstStrip = 1 |
| Convention of the lowest strip number. More...
|
|
static constexpr uint8_t | firstTdc = 0 |
| Convention of the lowest tdc number. More...
|
|
Definition at line 18 of file RpcFlatCableTranslator.h.
◆ Storage_t
◆ RpcFlatCableTranslator()
Muon::RpcFlatCableTranslator::RpcFlatCableTranslator |
( |
const uint8_t |
cardId | ) |
|
◆ connectedChannels()
uint8_t Muon::RpcFlatCableTranslator::connectedChannels |
( |
| ) |
const |
◆ id()
uint8_t Muon::RpcFlatCableTranslator::id |
( |
| ) |
const |
◆ mapChannels()
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.
- Parameters
-
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.
73 log<<MSG::ERROR<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": The strip "<<
static_cast<unsigned>(
strip)
78 log<<MSG::ERROR<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": The strip "<<
static_cast<unsigned>(
strip)
86 log<<
MSG::VERBOSE<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": Map strip "<<
static_cast<unsigned>(
strip)
87 <<
" to tdc "<<
static_cast<unsigned>(tdc)<<
endmsg;
◆ stripChannel()
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
- Parameters
-
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.
56 log<<MSG::WARNING<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": The parsed tdc "
62 log<<
MSG::VERBOSE<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": The parsed tdc "
◆ stripMap()
◆ tdcChannel()
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.
- Parameters
-
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.
42 log<<
MSG::VERBOSE<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": The channel "
43 <<
static_cast<unsigned>(
strip)<<
" is unmapped."<<
endmsg;
48 log<<
MSG::VERBOSE<<
"RpcFlatCableTranslator::"<<__func__<<
"() - "<<__LINE__<<
": Map channel "
◆ tdcMap()
◆ firstStrip
constexpr uint8_t Muon::RpcFlatCableTranslator::firstStrip = 1 |
|
staticconstexpr |
◆ firstTdc
constexpr uint8_t Muon::RpcFlatCableTranslator::firstTdc = 0 |
|
staticconstexpr |
◆ m_id
uint8_t Muon::RpcFlatCableTranslator::m_id {0} |
|
private |
◆ m_nCh
uint8_t Muon::RpcFlatCableTranslator::m_nCh {0} |
|
private |
◆ m_stripToTdc
◆ m_tdcToStrip
◆ notSet
constexpr uint8_t Muon::RpcFlatCableTranslator::notSet = 250 |
|
staticconstexpr |
◆ readStrips
constexpr uint8_t Muon::RpcFlatCableTranslator::readStrips = 32 |
|
staticconstexpr |
The documentation for this class was generated from the following files: