1#ifndef PACKING_RAWDATAFILE_SUBSYSTEMPACKET_H_
2#define PACKING_RAWDATAFILE_SUBSYSTEMPACKET_H_
6#include "Packing/Utility/CRC.h"
7#include "Packing/Utility/Reader.h"
8#include "Packing/Utility/Writer.h"
11namespace rawdatafile {
27 std::vector<uint32_t>
header()
const;
32 std::vector<uint32_t>&
data() {
return data_; }
33 const uint16_t& id()
const {
return id_; }
38 std::vector<uint32_t>
tail()
const;
57 std::vector<uint32_t> data_;
SubsystemPacket structure.
utility::CRC & add(utility::CRC &c) const
add the subsystem packet to the input crc
std::vector< uint32_t > & data()
Get data.
std::vector< uint32_t > tail() const
get the tailing words
utility::Reader & read(utility::Reader &r)
read the subsystem packet from the input reader
std::vector< uint32_t > header() const
get the header words
SubsystemPacket()=default
default constructor for reading
utility::Writer & write(utility::Writer &w) const
write the subsystem packet to the input writer
The HGC ROC and FPGA use a CRC checksum to double check that the data transfer has been done correctl...