#include <STGTPPackets.h>
Definition at line 103 of file STGTPPackets.h.
◆ STGTPStripPacket()
| Muon::nsw::STGTPStripPacket::STGTPStripPacket |
( |
const std::vector< std::uint32_t > & | payload, |
|
|
const int | ver ) |
|
explicit |
Definition at line 247 of file STGTPPackets.cxx.
247 {
248 size_t packet_size_w =
Size(ver);
249 if (std::size(payload) != packet_size_w) {
250 throw std::runtime_error(
251 Muon::nsw::format(
"Strip packet vector has size {} instead of expected size {}", std::size(payload), packet_size_w));
252 }
253 const auto packets = std::span{
payload.data(), std::size(payload)};
254 auto readPointer = std::size_t{0};
255 auto decode = [&packets](std::size_t& readPointer,
const std::size_t
size) {
257 };
258
259
261
265 }
266
267
271 }
272
273
278}
size_t size() const
Number of registered mappings.
size_t Size(const int ver)
std::array< std::uint32_t, STGTPStrips::num_strips > m_stripData
std::array< std::uint32_t, STGTPStrips::num_offsets > m_offsets
std::uint32_t m_phiIdValue
std::uint32_t m_phiIdSign
double decode(number_type binnedWeight)
Convert weight from unsigned to double.
constexpr int size_offset
constexpr int size_band_id
constexpr std::size_t num_strips
constexpr int size_phi_id_sign
constexpr int size_phi_id_value
constexpr std::size_t num_offsets
constexpr int size_strip_adc
constexpr int size_padding
std::string format(const std::string &str, const T &arg)
constexpr Target decode_and_advance(const std::span< const Source > words, std::size_t &start, const std::size_t size)
Decode bits from data of words and advance the read pointer.
◆ ~STGTPStripPacket()
| virtual Muon::nsw::STGTPStripPacket::~STGTPStripPacket |
( |
| ) |
|
|
virtualdefault |
◆ BandId()
| std::uint32_t Muon::nsw::STGTPStripPacket::BandId |
( |
| ) |
const |
|
inlinenodiscard |
◆ BCID()
| std::uint32_t Muon::nsw::STGTPStripPacket::BCID |
( |
| ) |
const |
|
inlinenodiscard |
◆ Offset()
| std::uint32_t Muon::nsw::STGTPStripPacket::Offset |
( |
std::size_t | offset | ) |
const |
|
nodiscard |
◆ Offsets()
◆ PhiIdSign()
| std::uint32_t Muon::nsw::STGTPStripPacket::PhiIdSign |
( |
| ) |
const |
|
inlinenodiscard |
◆ PhiIdValue()
| std::uint32_t Muon::nsw::STGTPStripPacket::PhiIdValue |
( |
| ) |
const |
|
inlinenodiscard |
◆ Size()
| size_t Muon::nsw::STGTPStripPacket::Size |
( |
const int | ver | ) |
|
|
private |
Definition at line 227 of file STGTPPackets.cxx.
227 {
228 size_t packet_size_w = 0;
229 size_t word_size = 32;
230 switch (ver) {
231 case 1:
233 break;
234 case 2:
236 break;
237 case 3:
239 break;
240 default:
241 packet_size_w = 0;
242 break;
243 }
244 return packet_size_w;
245}
constexpr std::size_t size_v3
constexpr std::size_t size_v2
constexpr std::size_t size_v1
◆ Strip()
| std::uint32_t Muon::nsw::STGTPStripPacket::Strip |
( |
std::size_t | strip | ) |
const |
|
nodiscard |
◆ Strips()
◆ m_bandId
| std::uint32_t Muon::nsw::STGTPStripPacket::m_bandId {} |
|
private |
◆ m_BCID
| std::uint32_t Muon::nsw::STGTPStripPacket::m_BCID {} |
|
private |
◆ m_offsets
◆ m_phiIdSign
| std::uint32_t Muon::nsw::STGTPStripPacket::m_phiIdSign {} |
|
private |
◆ m_phiIdValue
| std::uint32_t Muon::nsw::STGTPStripPacket::m_phiIdValue {} |
|
private |
◆ m_stripData
The documentation for this class was generated from the following files: