ATLAS Offline Software
Loading...
Searching...
No Matches
NSWDecodeHelper.h File Reference
#include <stdint.h>
#include <stdexcept>
#include <type_traits>
#include <sstream>
#include <span>
#include <bit>
#include <CxxUtils/ones.h>
Include dependency graph for NSWDecodeHelper.h:

Go to the source code of this file.

Namespaces

namespace  Muon
 NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
namespace  Muon::nsw
namespace  Muon::nsw::helper

Enumerations

enum  Muon::nsw::channel_type { Muon::nsw::OFFLINE_CHANNEL_TYPE_PAD = 0 , Muon::nsw::OFFLINE_CHANNEL_TYPE_STRIP = 1 , Muon::nsw::OFFLINE_CHANNEL_TYPE_WIRE = 2 }
enum  Muon::nsw::vmm_channels { Muon::nsw::VMM_per_MMFE8 = 8 , Muon::nsw::VMM_per_sFEB = 3 , Muon::nsw::VMM_per_pFEB = 3 , Muon::nsw::VMM_channels = 64 }

Functions

uint32_t Muon::nsw::helper::get_bits (uint32_t word, uint32_t mask, uint8_t position)
template<typename T>
std::string Muon::nsw::format (const std::string &str, const T &arg)
template<typename T, typename... Args>
std::string Muon::nsw::format (const std::string &str, const T &arg, const Args &... args)
template<typename Target, typename Source>
Target Muon::nsw::bit_slice (const std::span< const Source > words, const std::size_t start, const std::size_t end)
 Decode bits from data of words.
template<typename Target, typename Source>
constexpr Target Muon::nsw::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.
template<typename Target, typename Source>
constexpr Target Muon::nsw::decode_at_loc (const std::span< const Source > words, std::size_t &start, const int offset, const std::size_t size)
 Decode bits from data of words at read pointer + offset and NOT advance the read pointer.
template<class T>
constexpr int8_t Muon::nsw::max_bit (const T number)
 Returns the most left hand bit which is set in a number.
template<class T>
constexpr int8_t Muon::nsw::min_bit (const T number)
 Returns the most right hand bit which is set in a number.
template<class Out>
constexpr Out Muon::nsw::fill_bitmask (const uint8_t first_bit, const uint8_t num_bits)
uint16_t Muon::nsw::get_16bxor_crc (const uint32_t *dataPointer, uint32_t dataSize)