#include <STGTPPackets.h>
|
| size_t | Size (const int ver) |
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 245 of file STGTPPackets.cxx.
245 {
246 size_t packet_size_w =
Size(ver);
247
248 if (std::size(payload) != packet_size_w) {
249 throw std::runtime_error(
250 Muon::nsw::format(
"Strip packet vector has size {} instead of expected size {}", std::size(payload), packet_size_w));
251 }
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
262
266 }
267
268
272 }
273
274
279}
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 225 of file STGTPPackets.cxx.
225 {
226 size_t packet_size_w = 0;
227 size_t word_size = 32;
228 switch (ver) {
229 case 1:
231 break;
232 case 2:
234 break;
235 case 3:
237 break;
238 default:
239 packet_size_w = 0;
240 break;
241 }
242 return packet_size_w;
243}
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: