#include <AMCSpec.h>
Public Member Functions | |
void | addPayload (const uint64_t *, unsigned int) |
std::vector< uint64_t > | block (unsigned int id) const |
BlockHeader | blockHeader (unsigned int block=0) const |
unsigned int | blocks () const |
std::unique_ptr< uint64_t[]> | data () |
void | finalize (unsigned int lv1, unsigned int bx, bool legacy_mc=false, bool mtf7_mode=false) |
Header | header () const |
Packet (const uint64_t *d) | |
Packet (unsigned int amc, unsigned int board, unsigned int lv1id, unsigned int orbit, unsigned int bx, const std::vector< uint64_t > &load) | |
unsigned int | size () const |
Trailer | trailer () const |
Private Attributes | |
BlockHeader | block_header_ |
Header | header_ |
std::vector< uint64_t > | payload_ |
Trailer | trailer_ |
Packet::Packet | ( | unsigned int | amc, |
unsigned int | board, | ||
unsigned int | lv1id, | ||
unsigned int | orbit, | ||
unsigned int | bx, | ||
const std::vector< uint64_t > & | load | ||
) |
Definition at line 126 of file AMCSpec.cc.
References header_, payload_, amc::Header::raw(), amc::Trailer::raw(), trailer_, and amc::Trailer::writeCRC().
void Packet::addPayload | ( | const uint64_t * | data, |
unsigned int | size | ||
) |
std::vector< uint64_t > Packet::block | ( | unsigned int | id | ) | const |
Definition at line 167 of file AMCSpec.cc.
References block_header_, amc::BlockHeader::getBlocks(), payload_, and amc::split_block_size.
|
inline |
|
inline |
Definition at line 141 of file AMCSpec.h.
References block_header_, and amc::BlockHeader::getBlocks().
std::unique_ptr< uint64_t[]> Packet::data | ( | ) |
Definition at line 179 of file AMCSpec.cc.
Referenced by cuy.FindIssue::__init__(), and addPayload().
void Packet::finalize | ( | unsigned int | lv1, |
unsigned int | bx, | ||
bool | legacy_mc = false , |
||
bool | mtf7_mode = false |
||
) |
Definition at line 148 of file AMCSpec.cc.
References block_header_, trackerTree::check(), cms::CRC32Calculator::checksum(), amc::BlockHeader::getAMCNumber(), amc::BlockHeader::getBoardID(), amc::BlockHeader::getSize(), amc::Header::getSize(), header_, payload_, AlCaHLTBitMon_QueryRunRegistry::string, and trailer_.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 143 of file AMCSpec.h.
Referenced by block(), blockHeader(), blocks(), and finalize().
|
private |
Definition at line 147 of file AMCSpec.h.
Referenced by finalize(), header(), and Packet().
|
private |
Definition at line 150 of file AMCSpec.h.
Referenced by addPayload(), block(), data(), finalize(), Packet(), and size().