ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Muon::nsw::MMTrigPacket Class Reference

#include <MMTrigPacket.h>

Collaboration diagram for Muon::nsw::MMTrigPacket:

Public Member Functions

 MMTrigPacket (std::vector< uint32_t > &payload)
 
virtual ~MMTrigPacket ()=default
 
uint32_t trig_padding () const
 
uint32_t trig_BCID () const
 
uint32_t trig_reserved () const
 
uint32_t trig_dTheta () const
 
uint32_t trig_phiBin () const
 
uint32_t trig_rBin () const
 

Private Attributes

uint32_t m_trig_padding
 
uint32_t m_trig_BCID
 
uint32_t m_trig_reserved
 
uint32_t m_trig_dTheta
 
uint32_t m_trig_phiBin
 
uint32_t m_trig_rBin
 

Detailed Description

Definition at line 15 of file MMTrigPacket.h.

Constructor & Destructor Documentation

◆ MMTrigPacket()

Muon::nsw::MMTrigPacket::MMTrigPacket ( std::vector< uint32_t > &  payload)

Definition at line 14 of file MMTrigPacket.cxx.

14  {
15 
16  std::size_t readPointer{0};
17  std::span<const std::uint32_t> data{payload.data(), 3};
18 
19  if (payload.size()!=2) {
20  throw std::runtime_error( Muon::nsw::format( "MM Trigger packet size not as expected: expected exactly 2 uint32_t, got {}", payload.size() ));
21  }
22 
23  m_trig_padding = Muon::nsw::decode_and_advance<uint64_t>(data, readPointer, Muon::nsw::MMTRIG::size_trig_padding);
24  m_trig_BCID = Muon::nsw::decode_and_advance<uint64_t>(data, readPointer, Muon::nsw::MMTRIG::size_trig_BCID);
25  m_trig_reserved = Muon::nsw::decode_and_advance<uint64_t>(data, readPointer, Muon::nsw::MMTRIG::size_trig_reserved);
26  m_trig_dTheta = Muon::nsw::decode_and_advance<uint64_t>(data, readPointer, Muon::nsw::MMTRIG::size_trig_dTheta);
27  m_trig_phiBin = Muon::nsw::decode_and_advance<uint64_t>(data, readPointer, Muon::nsw::MMTRIG::size_trig_phiBin);
28  m_trig_rBin = Muon::nsw::decode_and_advance<uint64_t>(data, readPointer, Muon::nsw::MMTRIG::size_trig_rBin);
29 
30 }

◆ ~MMTrigPacket()

virtual Muon::nsw::MMTrigPacket::~MMTrigPacket ( )
virtualdefault

Member Function Documentation

◆ trig_BCID()

uint32_t Muon::nsw::MMTrigPacket::trig_BCID ( ) const
inline

Definition at line 22 of file MMTrigPacket.h.

22 {return m_trig_BCID;};

◆ trig_dTheta()

uint32_t Muon::nsw::MMTrigPacket::trig_dTheta ( ) const
inline

Definition at line 24 of file MMTrigPacket.h.

24 {return m_trig_dTheta;};

◆ trig_padding()

uint32_t Muon::nsw::MMTrigPacket::trig_padding ( ) const
inline

Definition at line 21 of file MMTrigPacket.h.

21 {return m_trig_padding;};

◆ trig_phiBin()

uint32_t Muon::nsw::MMTrigPacket::trig_phiBin ( ) const
inline

Definition at line 25 of file MMTrigPacket.h.

25 {return m_trig_phiBin;};

◆ trig_rBin()

uint32_t Muon::nsw::MMTrigPacket::trig_rBin ( ) const
inline

Definition at line 26 of file MMTrigPacket.h.

26 {return m_trig_rBin;};

◆ trig_reserved()

uint32_t Muon::nsw::MMTrigPacket::trig_reserved ( ) const
inline

Definition at line 23 of file MMTrigPacket.h.

23 {return m_trig_reserved;};

Member Data Documentation

◆ m_trig_BCID

uint32_t Muon::nsw::MMTrigPacket::m_trig_BCID
private

Definition at line 30 of file MMTrigPacket.h.

◆ m_trig_dTheta

uint32_t Muon::nsw::MMTrigPacket::m_trig_dTheta
private

Definition at line 32 of file MMTrigPacket.h.

◆ m_trig_padding

uint32_t Muon::nsw::MMTrigPacket::m_trig_padding
private

Definition at line 29 of file MMTrigPacket.h.

◆ m_trig_phiBin

uint32_t Muon::nsw::MMTrigPacket::m_trig_phiBin
private

Definition at line 33 of file MMTrigPacket.h.

◆ m_trig_rBin

uint32_t Muon::nsw::MMTrigPacket::m_trig_rBin
private

Definition at line 34 of file MMTrigPacket.h.

◆ m_trig_reserved

uint32_t Muon::nsw::MMTrigPacket::m_trig_reserved
private

Definition at line 31 of file MMTrigPacket.h.


The documentation for this class was generated from the following files:
Muon::nsw::MMTRIG::size_trig_rBin
constexpr int size_trig_rBin
Definition: NSWMMTPDecodeBitmaps.h:101
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Muon::nsw::MMTrigPacket::m_trig_reserved
uint32_t m_trig_reserved
Definition: MMTrigPacket.h:31
Muon::nsw::MMTRIG::size_trig_padding
constexpr int size_trig_padding
Definition: NSWMMTPDecodeBitmaps.h:96
Muon::nsw::MMTrigPacket::m_trig_padding
uint32_t m_trig_padding
Definition: MMTrigPacket.h:26
Muon::nsw::MMTrigPacket::m_trig_rBin
uint32_t m_trig_rBin
Definition: MMTrigPacket.h:34
Muon::nsw::MMTrigPacket::m_trig_phiBin
uint32_t m_trig_phiBin
Definition: MMTrigPacket.h:33
Muon::nsw::MMTRIG::size_trig_BCID
constexpr int size_trig_BCID
Definition: NSWMMTPDecodeBitmaps.h:97
Muon::nsw::MMTRIG::size_trig_phiBin
constexpr int size_trig_phiBin
Definition: NSWMMTPDecodeBitmaps.h:100
Muon::nsw::MMTRIG::size_trig_reserved
constexpr int size_trig_reserved
Definition: NSWMMTPDecodeBitmaps.h:98
Muon::nsw::MMTrigPacket::m_trig_BCID
uint32_t m_trig_BCID
Definition: MMTrigPacket.h:30
Muon::nsw::format
std::string format(const std::string &str, const T &arg)
Definition: NSWDecodeHelper.h:43
Muon::nsw::MMTrigPacket::m_trig_dTheta
uint32_t m_trig_dTheta
Definition: MMTrigPacket.h:32
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
Muon::nsw::MMTRIG::size_trig_dTheta
constexpr int size_trig_dTheta
Definition: NSWMMTPDecodeBitmaps.h:99