#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_ |
|
inline |
Definition at line 125 of file AMCSpec.h.
References groupFilesInBlocks::block, data, svgfig::load(), and dataset::user.
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 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 |
std::unique_ptr< uint64_t[]> Packet::data | ( | ) |
Definition at line 179 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 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 |
Definition at line 143 of file AMCSpec.h.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and addPayload().
|
private |
Definition at line 143 of file AMCSpec.h.
Referenced by block(), and finalize().
|
private |
Definition at line 147 of file AMCSpec.h.
Referenced by finalize(), and Packet().
|
private |
Definition at line 150 of file AMCSpec.h.
Referenced by addPayload(), block(), data(), finalize(), and Packet().
|
private |
Definition at line 148 of file AMCSpec.h.
Referenced by finalize(), and Packet().