#include <RPCAMCRawToDigi.h>
Public Member Functions | |
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) override |
void | produce (edm::Event &event, edm::EventSetup const &setup) override |
RPCAMCRawToDigi (edm::ParameterSet const &config) | |
~RPCAMCRawToDigi () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | compute_crc16_64bit (std::uint16_t &crc, std::uint64_t const &word) |
static void | fillDescriptions (edm::ConfigurationDescriptions &descs) |
Protected Member Functions | |
bool | processBlocks (int fed, std::uint64_t const *&word, std::uint64_t const *word_end, std::uint16_t &crc, RPCAMCLinkCounters &counters, std::map< RPCAMCLink, rpcamc13::AMCPayload > &amc_payload) const |
bool | processCDFHeaders (int fed, std::uint64_t const *&word, std::uint64_t const *&word_end, std::uint16_t &crc, RPCAMCLinkCounters &counters) const |
bool | processCDFTrailers (int fed, unsigned int nwords, std::uint64_t const *&word, std::uint64_t const *&word_end, std::uint16_t &crc, RPCAMCLinkCounters &counters) const |
Protected Attributes | |
bool | calculate_crc_ |
bool | fill_counters_ |
edm::EDGetTokenT< FEDRawDataCollection > | raw_token_ |
std::unique_ptr< RPCAMCUnpacker > | rpc_unpacker_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 21 of file RPCAMCRawToDigi.h.
RPCAMCRawToDigi::RPCAMCRawToDigi | ( | edm::ParameterSet const & | config | ) |
Definition at line 20 of file RPCAMCRawToDigi.cc.
References fill_counters_, edm::ParameterSet::getParameter(), and raw_token_.
RPCAMCRawToDigi::~RPCAMCRawToDigi | ( | ) |
Definition at line 34 of file RPCAMCRawToDigi.cc.
|
override |
Definition at line 48 of file RPCAMCRawToDigi.cc.
References rpc_unpacker_.
|
inlinestatic |
Definition at line 58 of file RPCAMCRawToDigi.h.
References evf::compute_crc_8bit().
Referenced by processBlocks(), processCDFHeaders(), and produce().
|
static |
Definition at line 37 of file RPCAMCRawToDigi.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), RPCAMCUnpacker::fillDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 208 of file RPCAMCRawToDigi.cc.
References RPCAMCLinkCounters::add(), amc, RPCAMCLinkEvents::amc_amc13_block_incomplete_, RPCAMCLinkEvents::amc_amc13_crc_mismatch_, RPCAMCLinkEvents::amc_amc13_evc_bc_invalid_, RPCAMCLinkEvents::amc_amc13_length_incorrect_, RPCAMCLinkEvents::amc_amc13_size_inconsistent_, RPCAMCLinkEvents::amc_event_, RPCAMCLinkEvents::amc_number_mismatch_, RPCAMCLinkEvents::amc_payload_incomplete_, RPCAMCLinkEvents::amc_size_mismatch_, calculate_crc_, compute_crc16_64bit(), DEFINE_FWK_MODULE, RPCAMCLinkEvents::fed_amc13_amc_number_invalid_, RPCAMCLinkEvents::fed_amc13_block_incomplete_, fill_counters_, rpcamc13::AMCPayload::getAMCHeader(), rpcamc::Header::getAMCNumber(), rpcamc13::AMCHeader::getAMCNumber(), rpcamc13::AMCPayload::getData(), rpcamc::Header::getDataLength(), rpcamc13::Header::getNAMC(), rpcamc13::AMCHeader::getSize(), rpcamc13::AMCHeader::getSizeInBlock(), rpcamc::Header::hasDataLength(), rpcamc13::AMCHeader::hasTotalSize(), RecoTauValidation_cfi::header, rpcamc13::AMCPayload::insert(), rpcamc13::AMCHeader::isCRCOk(), rpcamc13::AMCHeader::isFirstBlock(), rpcamc13::AMCHeader::isLastBlock(), rpcamc13::AMCHeader::isLengthCorrect(), rpcamc13::AMCHeader::isValid(), RPCAMCLink::max_amcnumber_, jets_cff::payload, rpcamc13::AMCPayload::setAMCHeader(), rpcamc13::AMCHeader::setCRCOk(), rpcamc13::AMCHeader::setLengthCorrect(), rpcamc13::AMCPayload::setValid(), and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 132 of file RPCAMCRawToDigi.cc.
References RPCAMCLinkCounters::add(), calculate_crc_, FEDHeader::check(), compute_crc16_64bit(), TauDecayModes::dec, RPCAMCLinkEvents::fed_header_check_fail_, RPCAMCLinkEvents::fed_header_id_mismatch_, fill_counters_, RecoTauValidation_cfi::header, LogDebug, FEDHeader::sourceID(), and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 171 of file RPCAMCRawToDigi.cc.
References RPCAMCLinkCounters::add(), FEDTrailer::check(), TauDecayModes::dec, RPCAMCLinkEvents::fed_trailer_check_fail_, RPCAMCLinkEvents::fed_trailer_length_mismatch_, fill_counters_, FEDTrailer::fragmentLength(), LogDebug, and RPCAMCLink::wildcard_.
Referenced by produce().
|
override |
Definition at line 53 of file RPCAMCRawToDigi.cc.
References calculate_crc_, compute_crc16_64bit(), FEDTrailer::crc(), FEDRawData::data(), RPCAMCLinkEvents::fed_event_, RPCAMCLinkEvents::fed_trailer_crc_mismatch_, FEDRawDataCollection::FEDData(), fill_counters_, LogDebug, eostools::move(), processBlocks(), processCDFHeaders(), processCDFTrailers(), raw_token_, rpc_unpacker_, FEDRawData::size(), and RPCAMCLink::wildcard_.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
protected |
Definition at line 53 of file RPCAMCRawToDigi.h.
Referenced by processBlocks(), processCDFHeaders(), and produce().
|
protected |
Definition at line 53 of file RPCAMCRawToDigi.h.
Referenced by processBlocks(), processCDFHeaders(), processCDFTrailers(), produce(), and RPCAMCRawToDigi().
|
protected |
Definition at line 51 of file RPCAMCRawToDigi.h.
Referenced by produce(), and RPCAMCRawToDigi().
|
protected |
Definition at line 55 of file RPCAMCRawToDigi.h.
Referenced by beginRun(), and produce().