|
CbmRoot
|
Data structure for unpacking the FASP word. More...
#include <UnpackMS.h>
Public Member Functions | |
| FaspMessage ()=default | |
| FaspMessage (const FaspMessage &)=default | |
| FaspMessage (uint8_t c, uint8_t typ, uint8_t t, uint16_t d, uint8_t asic) | |
| std::string | print () const |
| template<uint8_t mess_ver> | |
| void | readDW (uint32_t w) |
| Read DATA WORD and store the content locally. | |
| template<uint8_t mess_ver> | |
| void | readEW (uint32_t w) |
| Read EPOCH WORD and store the content locally. | |
Static Public Member Functions | |
| template<uint8_t mess_ver> | |
| static eMessageType | getType (uint32_t w) |
| Implementation of message type descriptor according to message version. | |
Public Attributes | |
| uint8_t | ch = 0 |
| ch id in the FASP | |
| eMessageType | type = eMessageType::kNone |
| message type 0 = data, 1 = epoch (not used for the moment) | |
| uint8_t | tlab = 0 |
| time of the digi inside the epoch | |
| uint16_t | data = 0 |
| ADC value. | |
| uint32_t | epoch = 0 |
| epoch id (not used for the moment) | |
| uint8_t | fasp = 0 |
| FASP id in the module. | |
Data structure for unpacking the FASP word.
Bytes per FASP frame stored in the microslices (32 bits words)
Definition at line 81 of file trd2d/UnpackMS.h.
|
default |
Referenced by FaspMessage().
|
default |
References FaspMessage().
| cbm::algo::trd2d::FaspMessage::FaspMessage | ( | uint8_t | c, |
| uint8_t | typ, | ||
| uint8_t | t, | ||
| uint16_t | d, | ||
| uint8_t | asic ) |
Definition at line 21 of file trd2d/UnpackMS.cxx.
References ch, data, fasp, cbm::algo::trd2d::kData, cbm::algo::trd2d::kEpoch, cbm::algo::trd2d::kNone, tlab, and type.
|
static |
Implementation of message type descriptor according to message version.
| w | the message word |
Definition at line 51 of file trd2d/UnpackMS.cxx.
References cbm::algo::trd2d::kNone.
Referenced by cbm::algo::trd2d::FaspMessage::getType< uint8_t(eMessageVersion::kMess24)>(), and cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()().
| std::string cbm::algo::trd2d::FaspMessage::print | ( | ) | const |
Definition at line 34 of file trd2d/UnpackMS.cxx.
References ch, data, epoch, fasp, cbm::algo::trd2d::kData, cbm::algo::trd2d::kEpoch, tlab, and type.
| void cbm::algo::trd2d::FaspMessage::readDW | ( | uint32_t | w | ) |
Read DATA WORD and store the content locally.
| w | the message word |
Definition at line 67 of file trd2d/UnpackMS.cxx.
Referenced by cbm::algo::trd2d::FaspMessage::readDW< uint8_t(eMessageVersion::kMess24)>(), and cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()().
| void cbm::algo::trd2d::FaspMessage::readEW | ( | uint32_t | w | ) |
Read EPOCH WORD and store the content locally.
| w | the message word |
Definition at line 109 of file trd2d/UnpackMS.cxx.
Referenced by cbm::algo::trd2d::FaspMessage::readEW< uint8_t(eMessageVersion::kMess24)>(), and cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()().
| uint8_t cbm::algo::trd2d::FaspMessage::ch = 0 |
ch id in the FASP
Definition at line 106 of file trd2d/UnpackMS.h.
Referenced by FaspMessage(), cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()(), and print().
| uint16_t cbm::algo::trd2d::FaspMessage::data = 0 |
ADC value.
Definition at line 109 of file trd2d/UnpackMS.h.
Referenced by FaspMessage(), cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()(), and print().
| uint32_t cbm::algo::trd2d::FaspMessage::epoch = 0 |
epoch id (not used for the moment)
Definition at line 110 of file trd2d/UnpackMS.h.
Referenced by print().
| uint8_t cbm::algo::trd2d::FaspMessage::fasp = 0 |
FASP id in the module.
Definition at line 111 of file trd2d/UnpackMS.h.
Referenced by FaspMessage(), cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()(), and print().
| uint8_t cbm::algo::trd2d::FaspMessage::tlab = 0 |
time of the digi inside the epoch
Definition at line 108 of file trd2d/UnpackMS.h.
Referenced by FaspMessage(), and print().
| eMessageType cbm::algo::trd2d::FaspMessage::type = eMessageType::kNone |
message type 0 = data, 1 = epoch (not used for the moment)
Definition at line 107 of file trd2d/UnpackMS.h.
Referenced by FaspMessage(), cbm::algo::trd2d::UnpackMS< uint8_t(eMessageVersion::kMess24)>::operator()(), and print().