#include <RPCTwinMuxRawToDigi.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 |
RPCTwinMuxRawToDigi (edm::ParameterSet const &config) | |
~RPCTwinMuxRawToDigi () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | compute_crc_64bit (std::uint16_t &crc, std::uint64_t const &word) |
static void | fillDescriptions (edm::ConfigurationDescriptions &descs) |
Protected Member Functions | |
bool | processBlock (int fed, std::uint64_t const *&word, std::uint64_t const *word_end, std::uint16_t &crc, RPCAMCLinkCounters &counters, std::set< std::pair< RPCDetId, RPCDigi > > &digis) 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 |
void | processRPCRecord (int fed, unsigned int amc_number, unsigned int bx_counter, rpctwinmux::RPCRecord const &record, RPCAMCLinkCounters &counters, std::set< std::pair< RPCDetId, RPCDigi > > &digis, int bx_min, int bx_max, unsigned int link, unsigned int link_max) const |
bool | processTwinMux (int fed, unsigned int amc_number, unsigned int size, std::uint64_t const *&word, std::uint64_t const *word_end, std::uint16_t &crc, RPCAMCLinkCounters &counters, std::set< std::pair< RPCDetId, RPCDigi > > &digis) const |
void | putCounters (edm::Event &event, std::unique_ptr< RPCAMCLinkCounters > counters) |
void | putRPCDigis (edm::Event &event, std::set< std::pair< RPCDetId, RPCDigi > > const &digis) |
Protected Attributes | |
int | bx_max_ |
int | bx_min_ |
bool | calculate_crc_ |
edm::ESHandle< RPCLBLinkMap > | es_lb_link_map_ |
edm::ESGetToken< RPCLBLinkMap, RPCLBLinkMapRcd > | es_lb_link_map_token_ |
edm::ESHandle< RPCAMCLinkMap > | es_tm_link_map_ |
edm::ESGetToken< RPCAMCLinkMap, RPCTwinMuxLinkMapRcd > | es_tm_link_map_br_token_ |
edm::ESGetToken< RPCAMCLinkMap, RPCTwinMuxLinkMapRcd > | es_tm_link_map_token_ |
edm::ESWatcher< RPCTwinMuxLinkMapRcd > | es_tm_link_map_watcher_ |
std::vector< int > | feds_ |
bool | fill_counters_ |
edm::EDGetTokenT< FEDRawDataCollection > | raw_token_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Definition at line 32 of file RPCTwinMuxRawToDigi.h.
RPCTwinMuxRawToDigi::RPCTwinMuxRawToDigi | ( | edm::ParameterSet const & | config | ) |
Definition at line 23 of file RPCTwinMuxRawToDigi.cc.
References fill_counters_, and raw_token_.
|
override |
Definition at line 38 of file RPCTwinMuxRawToDigi.cc.
|
override |
Definition at line 58 of file RPCTwinMuxRawToDigi.cc.
References edm::ESWatcher< T >::check(), es_tm_link_map_br_token_, es_tm_link_map_watcher_, l1tstage2emulator_dqm_sourceclient-live_cfg::feds, feds_, and singleTopDQM_cfi::setup.
|
static |
Definition at line 40 of file RPCTwinMuxRawToDigi.cc.
References evf::compute_crc_8bit().
Referenced by processBlock(), processCDFHeaders(), processTwinMux(), and produce().
|
static |
Definition at line 48 of file RPCTwinMuxRawToDigi.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.
|
protected |
Definition at line 216 of file RPCTwinMuxRawToDigi.cc.
References amc, RPCAMCLinkEvents::amc_amc13_evc_bc_invalid_, calculate_crc_, compute_crc_64bit(), counters, RPCAMCLinkEvents::fed_amc13_block_incomplete_, fill_counters_, rpctwinmux::BlockAMCContent::getAMCNumber(), rpctwinmux::BlockHeader::getNAMC(), rpctwinmux::BlockAMCContent::getSize(), rpctwinmux::BlockAMCContent::isValid(), LogDebug, processTwinMux(), and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 139 of file RPCTwinMuxRawToDigi.cc.
References calculate_crc_, compute_crc_64bit(), counters, TauDecayModes::dec, RPCAMCLinkEvents::fed_header_check_fail_, RPCAMCLinkEvents::fed_header_id_mismatch_, fill_counters_, RecoTauValidation_cfi::header, LogDebug, and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 177 of file RPCTwinMuxRawToDigi.cc.
References FEDTrailer::check(), counters, TauDecayModes::dec, RPCAMCLinkEvents::fed_trailer_check_fail_, RPCAMCLinkEvents::fed_trailer_length_mismatch_, fill_counters_, FEDTrailer::fragmentLength(), LogDebug, and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 391 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkEvents::amc_event_, RPCAMCLinkEvents::amc_link_invalid_, l1GtPatternGenerator_cfi::bx, counters, data, TauDecayModes::dec, es_lb_link_map_, es_tm_link_map_, fill_counters_, RPCLBLinkMap::getMap(), RPCAMCLinkMap::getMap(), RPCFebConnector::getRPCDetId(), RPCFebConnector::getStrip(), RPCAMCLinkEvents::input_connector_invalid_, RPCAMCLinkEvents::input_connector_not_used_, RPCAMCLinkEvents::input_eod_, RPCAMCLinkEvents::input_event_, RPCAMCLinkEvents::input_lb_invalid_, RPCAMCLinkEvents::input_link_ack_fail_, RPCAMCLinkEvents::input_link_error_, createfilelist::int, MainPageGenerator::link, LogDebug, RPCLBLink::max_connector_, RPCLBLink::max_linkboard_, AlCaHarvesting_cff::record, RPCLBLink::setConnector(), RPCLBLink::setLinkBoard(), digitizers_cfi::strip, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by processTwinMux().
|
protected |
Definition at line 275 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkEvents::amc_number_mismatch_, RPCAMCLinkEvents::amc_payload_incomplete_, bx_max_, bx_min_, calculate_crc_, compute_crc_64bit(), counters, TauDecayModes::dec, RPCAMCLinkEvents::fed_amc13_amc_number_invalid_, fill_counters_, rpctwinmux::TwinMuxRecord::getType(), RecoTauValidation_cfi::header, LogDebug, SiStripPI::max, RPCAMCLink::max_amcnumber_, min(), processRPCRecord(), rpctwinmux::RPCRecord::reset(), rpctwinmux::TwinMuxRecord::rpc_first_type_, rpctwinmux::TwinMuxRecord::rpc_second_type_, rpctwinmux::RPCRecord::set(), findQualityFiles::size, and RPCAMCLink::wildcard_.
Referenced by processBlock().
|
override |
Definition at line 69 of file RPCTwinMuxRawToDigi.cc.
References calculate_crc_, compute_crc_64bit(), counters, FEDTrailer::crc(), FEDRawData::data(), es_lb_link_map_, es_lb_link_map_token_, es_tm_link_map_, es_tm_link_map_token_, RPCAMCLinkEvents::fed_event_, RPCAMCLinkEvents::fed_trailer_crc_mismatch_, FEDRawDataCollection::FEDData(), feds_, fill_counters_, LogDebug, eostools::move(), processBlock(), processCDFHeaders(), processCDFTrailers(), putCounters(), putRPCDigis(), raw_token_, singleTopDQM_cfi::setup, FEDRawData::size(), and RPCAMCLink::wildcard_.
|
protected |
Definition at line 532 of file RPCTwinMuxRawToDigi.cc.
References counters, and eostools::move().
Referenced by produce().
|
protected |
Definition at line 509 of file RPCTwinMuxRawToDigi.cc.
References LogDebug, and eostools::move().
Referenced by produce().
|
protected |
Definition at line 87 of file RPCTwinMuxRawToDigi.h.
Referenced by processTwinMux().
|
protected |
Definition at line 87 of file RPCTwinMuxRawToDigi.h.
Referenced by processTwinMux().
|
protected |
Definition at line 86 of file RPCTwinMuxRawToDigi.h.
Referenced by processBlock(), processCDFHeaders(), processTwinMux(), and produce().
|
protected |
Definition at line 92 of file RPCTwinMuxRawToDigi.h.
Referenced by processRPCRecord(), and produce().
|
protected |
Definition at line 95 of file RPCTwinMuxRawToDigi.h.
Referenced by produce().
|
protected |
Definition at line 91 of file RPCTwinMuxRawToDigi.h.
Referenced by processRPCRecord(), and produce().
|
protected |
Definition at line 93 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun().
|
protected |
Definition at line 94 of file RPCTwinMuxRawToDigi.h.
Referenced by produce().
|
protected |
Definition at line 89 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun().
|
protected |
Definition at line 90 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun(), and produce().
|
protected |
Definition at line 86 of file RPCTwinMuxRawToDigi.h.
Referenced by processBlock(), processCDFHeaders(), processCDFTrailers(), processRPCRecord(), processTwinMux(), produce(), and RPCTwinMuxRawToDigi().
|
protected |
Definition at line 84 of file RPCTwinMuxRawToDigi.h.
Referenced by produce(), and RPCTwinMuxRawToDigi().