ATLAS Offline Software
Namespaces | Enumerations | Functions
NSWDecodeHelper.h File Reference
#include <stdint.h>
#include <stdexcept>
#include <sstream>
#include <span>
Include dependency graph for NSWDecodeHelper.h:

Go to the source code of this file.

Namespaces

 Muon
 This class provides conversion from CSC RDO data to CSC Digits.
 
 Muon::nsw
 
 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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<class Out >
constexpr Out Muon::nsw::fill_bitmask (const uint8_t first_bit, const uint8_t num_bits)