|
LDMX Software
|
SubsystemPacket structure. More...
#include <SubsystemPacket.h>
Public Member Functions | |
| SubsystemPacket ()=default | |
| default constructor for reading | |
| SubsystemPacket (uint32_t event, uint16_t id, std::vector< uint32_t > data) | |
| constructor for writing | |
| std::vector< uint32_t > | header () const |
| get the header words | |
| std::vector< uint32_t > & | data () |
| Get data. | |
| const uint16_t & | id () const |
| std::vector< uint32_t > | tail () const |
| get the tailing words | |
| utility::Reader & | read (utility::Reader &r) |
| read the subsystem packet from the input reader | |
| utility::Writer & | write (utility::Writer &w) const |
| write the subsystem packet to the input writer | |
| utility::CRC & | add (utility::CRC &c) const |
| add the subsystem packet to the input crc | |
Private Attributes | |
| uint32_t | event_ |
| uint16_t | id_ |
| std::vector< uint32_t > | data_ |
| bool | crc_ok_ |
| unsigned int | crc_ |
SubsystemPacket structure.
Definition at line 16 of file SubsystemPacket.h.
| packing::rawdatafile::SubsystemPacket::SubsystemPacket | ( | uint32_t | event, |
| uint16_t | id, | ||
| std::vector< uint32_t > | data ) |
constructor for writing
Definition at line 9 of file SubsystemPacket.cxx.
References packing::utility::CRC::get().
| utility::CRC & packing::rawdatafile::SubsystemPacket::add | ( | utility::CRC & | c | ) | const |
add the subsystem packet to the input crc
Definition at line 51 of file SubsystemPacket.cxx.
|
inline |
Get data.
Definition at line 32 of file SubsystemPacket.h.
Referenced by eventbuilder::EventBuilder::produce().
| std::vector< uint32_t > packing::rawdatafile::SubsystemPacket::header | ( | ) | const |
get the header words
Definition at line 20 of file SubsystemPacket.cxx.
Referenced by add(), eventbuilder::EventBuilder::produce(), and write().
|
inline |
Definition at line 33 of file SubsystemPacket.h.
| utility::Reader & packing::rawdatafile::SubsystemPacket::read | ( | utility::Reader & | r | ) |
read the subsystem packet from the input reader
Definition at line 28 of file SubsystemPacket.cxx.
References packing::utility::Reader::read().
Referenced by eventbuilder::EventBuilder::produce().
| std::vector< uint32_t > packing::rawdatafile::SubsystemPacket::tail | ( | ) | const |
| utility::Writer & packing::rawdatafile::SubsystemPacket::write | ( | utility::Writer & | w | ) | const |
|
private |
Definition at line 59 of file SubsystemPacket.h.
|
private |
Definition at line 58 of file SubsystemPacket.h.
|
private |
Definition at line 57 of file SubsystemPacket.h.
|
private |
Definition at line 55 of file SubsystemPacket.h.
|
private |
Definition at line 56 of file SubsystemPacket.h.