#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_, edm::ParameterSet::getParameter(), 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_, unpackBuffers-CaloStage1::feds, feds_, and edm::EventSetup::getHandle().
|
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(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.
|
protected |
Definition at line 216 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), amc, RPCAMCLinkEvents::amc_amc13_evc_bc_invalid_, calculate_crc_, compute_crc_64bit(), 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 RPCAMCLinkCounters::add(), calculate_crc_, FEDHeader::check(), compute_crc_64bit(), TauDecayModes::dec, RPCAMCLinkEvents::fed_header_check_fail_, RPCAMCLinkEvents::fed_header_id_mismatch_, fill_counters_, LogDebug, FEDHeader::sourceID(), and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 177 of file RPCTwinMuxRawToDigi.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().
|
protected |
Definition at line 391 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), RPCAMCLinkEvents::amc_event_, RPCAMCLinkEvents::amc_link_invalid_, makePileupJSON::bx, data, TauDecayModes::dec, es_lb_link_map_, es_tm_link_map_, fill_counters_, rpctwinmux::RPCRecord::getBXOffset(), rpctwinmux::RPCRecord::getRecord(), RPCFebConnector::getRPCDetId(), rpctwinmux::RPCRecord::getRPCLinkRecord(), 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_, MainPageGenerator::link, LogDebug, RPCLBLink::max_connector_, RPCLBLink::max_linkboard_, RPCLBLink::setConnector(), RPCLBLink::setLinkBoard(), and digitizers_cfi::strip.
Referenced by processTwinMux().
|
protected |
Definition at line 275 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), RPCAMCLinkEvents::amc_number_mismatch_, RPCAMCLinkEvents::amc_payload_incomplete_, bx_max_, bx_min_, calculate_crc_, compute_crc_64bit(), TauDecayModes::dec, RPCAMCLinkEvents::fed_amc13_amc_number_invalid_, fill_counters_, rpctwinmux::TwinMuxHeader::getAMCNumber(), rpctwinmux::TwinMuxHeader::getBXCounter(), rpctwinmux::TwinMuxHeader::getRPCBXMax(), rpctwinmux::TwinMuxHeader::getRPCBXMin(), rpctwinmux::TwinMuxRecord::getType(), rpctwinmux::TwinMuxHeader::hasRPCBXWindow(), 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_, feds_, fill_counters_, edm::EventSetup::getHandle(), LogDebug, eostools::move(), processBlock(), processCDFHeaders(), processCDFTrailers(), putCounters(), putRPCDigis(), raw_token_, FEDRawData::size(), and RPCAMCLink::wildcard_.
|
protected |
Definition at line 532 of file RPCTwinMuxRawToDigi.cc.
References 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().