#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 user=0) | |
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, | ||
unsigned int | user = 0 |
||
) |
Definition at line 101 of file AMCSpec.cc.
References header_, svgfig::load(), 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 143 of file AMCSpec.cc.
References block_header_, amc::BlockHeader::getBlocks(), payload_, and amc::split_block_size.
|
inline |
|
inline |
Definition at line 152 of file AMCSpec.h.
References block_header_, and amc::BlockHeader::getBlocks().
std::unique_ptr< uint64_t[]> Packet::data | ( | ) |
Definition at line 154 of file AMCSpec.cc.
References mps_fire::i, and payload_.
Referenced by addPayload().
void Packet::finalize | ( | unsigned int | lv1, |
unsigned int | bx, | ||
bool | legacy_mc = false , |
||
bool | mtf7_mode = false |
||
) |
Definition at line 125 of file AMCSpec.cc.
References block_header_, l1GtPatternGenerator_cfi::bx, RPCNoise_example::check, amc::Trailer::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 |
Definition at line 154 of file AMCSpec.h.
References payload_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and addPayload().
|
inline |
|
private |
Definition at line 154 of file AMCSpec.h.
Referenced by block(), blockHeader(), blocks(), and finalize().
|
private |
Definition at line 158 of file AMCSpec.h.
Referenced by finalize(), header(), and Packet().
|
private |
Definition at line 161 of file AMCSpec.h.
Referenced by addPayload(), block(), data(), finalize(), Packet(), and size().