|
| MP7BufferDumpToRaw (const edm::ParameterSet &) |
|
| ~MP7BufferDumpToRaw () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 57 of file MP7BufferDumpToRaw.cc.
std::vector< Block > l1t::MP7BufferDumpToRaw::getBlocks |
( |
int |
iAmc | ) |
|
|
private |
Definition at line 282 of file MP7BufferDumpToRaw.cc.
References PacketData::begin(), groupFilesInBlocks::block, gather_cfg::blocks, edmIntegrityCheck::d, data, MP7PacketReader::get(), MP7FileReader::get(), mps_fire::i, FileData::link(), LogDebug, nFramesPerEvent_, AlCaHLTBitMon_ParallelJobs::p, packetisedData_, rxBlockLength_, rxFileReader_, rxIndex_, rxPacketReader_, findQualityFiles::size, txBlockLength_, txFileReader_, txIndex_, and txPacketReader_.
Referenced by produce().
287 std::vector<Block>
blocks;
290 for (
unsigned link=0; link<
rxBlockLength_.at(iBoard).size(); ++link) {
292 unsigned id = link*2;
295 if (size==0)
continue;
297 std::vector<uint32_t>
data;
302 for (
unsigned i=0;
i<
rxIndex_.at(iBoard);
i++) itr++;
304 LogDebug(
"L1T") <<
"Found packet [" << itr->first_ <<
", " << itr->last_ <<
"]";
305 LogDebug(
"L1T") <<
"Link " << link <<
" has " << itr->links_.find(link)->second.size() <<
" frames";
307 for (
unsigned iFrame=0; iFrame<itr->links_.find(link)->second.size(); ++iFrame) {
308 uint64_t d = itr->links_.find(link)->second.at(iFrame);
316 LogDebug(
"L1T") <<
"Frame " << iFrame <<
" : " << std::hex <<
d;
317 if ((d & 0x100000000) > 0) data.push_back( d & 0xffffffff );
322 LogDebug(
"L1T") <<
"Board " << iBoard <<
" block " <<
id <<
", size " << data.size();
325 blocks.push_back(
block);
330 for (
unsigned link=0; link<
txBlockLength_.at(iBoard).size(); ++link) {
332 unsigned id = (link*2)+1;
335 if (size==0)
continue;
337 LogDebug(
"L1T") <<
"Block " <<
id <<
" expecting size " <<
size;
339 std::vector<uint32_t>
data;
344 for (
unsigned i=0;
i<
txIndex_.at(iBoard);
i++) itr++;
346 LogDebug(
"L1T") <<
"Found packet [" << itr->first_ <<
", " << itr->last_ <<
"]";
347 LogDebug(
"L1T") <<
"Link " << link <<
" has " << itr->links_.find(link)->second.size() <<
" frames";
349 for (
unsigned iFrame=0; iFrame<itr->links_.find(link)->second.size(); ++iFrame) {
350 uint64_t d = itr->links_.find(link)->second.at(iFrame);
359 LogDebug(
"L1T") <<
"Frame " << iFrame <<
" : " << std::hex <<
d;
360 if ((d & 0x100000000) > 0) data.push_back( d & 0xffffffff );
365 LogDebug(
"L1T") <<
"Board " << iBoard <<
" block " <<
id <<
", size " << data.size();
369 blocks.push_back(
block);
382 LogDebug(
"L1T") <<
"Board " << iBoard <<
", read " << blocks.size() <<
" blocks";
MP7FileReader rxFileReader_
const_iterator begin() const
std::vector< std::vector< int > > rxBlockLength_
unsigned nFramesPerEvent_
std::vector< std::vector< int > > txBlockLength_
MP7FileReader txFileReader_
MP7PacketReader txPacketReader_
const FileData & get(size_t k) const
data getter via index
const PacketData & get(size_t i)
std::vector< unsigned > rxIndex_
std::vector< unsigned > txIndex_
unsigned long long uint64_t
std::vector< Packet >::const_iterator const_iterator
char data[epos_bytes_allocation]
MP7PacketReader rxPacketReader_
const std::vector< uint64_t > & link(uint32_t i) const