#include <AMCSpec.h>
Public Member Functions | |
void | add (unsigned int amc_no, unsigned int board, const std::vector< uint64_t > &load) |
unsigned int | blocks () const |
Packet () | |
bool | parse (const uint64_t *, unsigned int) |
std::vector< amc::Packet > | payload () const |
unsigned int | size () const |
bool | write (const edm::Event &ev, unsigned char *ptr, unsigned int size) const |
Private Attributes | |
Header | header_ |
std::vector< amc::Packet > | payload_ |
void Packet::add | ( | unsigned int | amc_no, |
unsigned int | board, | ||
const std::vector< uint64_t > & | load | ||
) |
Definition at line 133 of file AMCSpec.cc.
References payload_.
Referenced by l1t::MP7BufferDumpToRaw::formatAMC(), and counter.Counter::register().
unsigned int Packet::blocks | ( | ) | const |
Definition at line 259 of file AMCSpec.cc.
References amc, bookConverter::max, and payload_.
Referenced by size(), and write().
bool Packet::parse | ( | const uint64_t * | data, |
unsigned int | size | ||
) |
Definition at line 142 of file AMCSpec.cc.
References amc, b, DDVectorGetter::check(), cms::CRC32Calculator::checksum(), data, amc13::Trailer::getBlock(), amc13::Trailer::getCRC(), amc13::Header::getFormatVersion(), amc13::Header::getNumberOfAMCs(), amc13::Header::getOrbitNumber(), header_, getRunAppsInfo::headers, i, bookConverter::max, payload_, AlCaHLTBitMon_QueryRunRegistry::string, edmStreamStallGrapher::t, and amc13::Header::valid().
Referenced by l1t::L1TRawToDigi::produce().
|
inline |
Definition at line 142 of file AMCSpec.h.
References payload_.
Referenced by l1t::L1TRawToDigi::produce().
unsigned int Packet::size | ( | void | ) | const |
Definition at line 270 of file AMCSpec.cc.
References amc, blocks(), bookConverter::max, and payload_.
Referenced by l1t::MP7BufferDumpToRaw::formatRaw(), and write().
bool Packet::write | ( | const edm::Event & | ev, |
unsigned char * | ptr, | ||
unsigned int | size | ||
) | const |
Definition at line 288 of file AMCSpec.cc.
References amc, b, blocks(), edm::EventBase::bunchCrossing(), cms::CRC32Calculator::checksum(), data, edm::EventID::event(), h, edm::EventBase::id(), edm::EventBase::orbitNumber(), payload_, size(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by l1t::MP7BufferDumpToRaw::formatRaw(), and pkg.AbstractPkg::generate().
|
private |