#include <RPCRecordFormatter.h>
Public Member Functions | |
std::vector < rpcrawtodigi::EventRecords > | recordPack (uint32_t rawDetId, const RPCDigi &digi, int trigger_BX) const |
int | recordUnpack (const rpcrawtodigi::EventRecords &event, RPCDigiCollection *prod, RPCRawDataCounts *counter, RPCRawSynchro::ProdItem *synchro) |
RPCRecordFormatter (int fedId, const RPCReadOutMapping *readoutMapping) | |
Creator. More... | |
~RPCRecordFormatter () | |
Destructor. More... | |
Private Attributes | |
int | currentFED |
int | currentTbLinkInputNumber |
const RPCReadOutMapping * | readoutMapping |
Definition at line 15 of file RPCRecordFormatter.h.
RPCRecordFormatter::RPCRecordFormatter | ( | int | fedId, |
const RPCReadOutMapping * | readoutMapping | ||
) |
Creator.
Definition at line 28 of file RPCRecordFormatter.cc.
RPCRecordFormatter::~RPCRecordFormatter | ( | ) |
std::vector< EventRecords > RPCRecordFormatter::recordPack | ( | uint32_t | rawDetId, |
const RPCDigi & | digi, | ||
int | trigger_BX | ||
) | const |
Definition at line 32 of file RPCRecordFormatter.cc.
References RPCDigi::bx(), currentFED, LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardElectronicIndex::lbNumInLink, LogTrace, LinkBoardPackedStrip::packedStrip(), RPCReadOutMapping::rawDataFrame(), readoutMapping, mps_fire::result, RPCDigi::strip(), and LinkBoardElectronicIndex::tbLinkInputNum.
Referenced by RPCPackingModule::eventRecords().
int RPCRecordFormatter::recordUnpack | ( | const rpcrawtodigi::EventRecords & | event, |
RPCDigiCollection * | prod, | ||
RPCRawDataCounts * | counter, | ||
RPCRawSynchro::ProdItem * | synchro | ||
) |
Committing digi to the product
Definition at line 74 of file RPCRecordFormatter.cc.
References RPCRawDataCounts::addReadoutError(), currentFED, currentTbLinkInputNumber, rpcrawtodigi::EventRecords::dataToTriggerDelay(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, debug, edm::MessageDrop::debugEnabled, RPCReadOutMapping::detUnitFrame(), rpcrawtodigi::RecordCD::eod(), relativeConstraints::error, edm::MessageDrop::instance(), LinkBoardElectronicIndex::lbNumInLink, RPCReadOutMapping::location(), LogDebug, LogTrace, readoutMapping, rpcrawtodigi::EventRecords::recordCD(), RPCDetId, LinkBoardElectronicIndex::tbLinkInputNum, and rpcrawtodigi::ReadoutError::type().
Referenced by RPCUnpackingModule::produce().
|
private |
Definition at line 31 of file RPCRecordFormatter.h.
Referenced by recordPack(), and recordUnpack().
|
private |
Definition at line 32 of file RPCRecordFormatter.h.
Referenced by recordUnpack().
|
private |
Definition at line 34 of file RPCRecordFormatter.h.
Referenced by recordPack(), and recordUnpack().