#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 | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
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::ESHandle< RPCAMCLinkMap > | es_tm_link_map_ |
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<> | |
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 30 of file RPCTwinMuxRawToDigi.h.
RPCTwinMuxRawToDigi::RPCTwinMuxRawToDigi | ( | edm::ParameterSet const & | config | ) |
|
override |
Definition at line 36 of file RPCTwinMuxRawToDigi.cc.
|
override |
Definition at line 56 of file RPCTwinMuxRawToDigi.cc.
References edm::ESWatcher< T >::check(), es_tm_link_map_, es_tm_link_map_watcher_, l1tstage2emulator_dqm_sourceclient-live_cfg::feds, feds_, get, RPCAMCLinkMap::getMap(), and singleTopDQM_cfi::setup.
|
static |
Definition at line 38 of file RPCTwinMuxRawToDigi.cc.
References evf::compute_crc_8bit().
Referenced by processBlock(), processCDFHeaders(), processTwinMux(), and produce().
|
static |
Definition at line 46 of file RPCTwinMuxRawToDigi.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_2018_cff::InputTag.
|
protected |
Definition at line 214 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 137 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), calculate_crc_, compute_crc_64bit(), 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 175 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 389 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), RPCAMCLinkEvents::amc_event_, RPCAMCLinkEvents::amc_link_invalid_, l1GtPatternGenerator_cfi::bx, 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_, GlobalPosition_Frontier_DevDB_cff::record, RPCLBLink::setConnector(), RPCLBLink::setLinkBoard(), digitizers_cfi::strip, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by processTwinMux().
|
protected |
Definition at line 273 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::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 67 of file RPCTwinMuxRawToDigi.cc.
References calculate_crc_, compute_crc_64bit(), FEDTrailer::crc(), FEDRawData::data(), es_lb_link_map_, es_tm_link_map_, RPCAMCLinkEvents::fed_event_, RPCAMCLinkEvents::fed_trailer_crc_mismatch_, FEDRawDataCollection::FEDData(), feds_, fill_counters_, get, LogDebug, eostools::move(), processBlock(), processCDFHeaders(), processCDFTrailers(), putCounters(), putRPCDigis(), raw_token_, singleTopDQM_cfi::setup, FEDRawData::size(), and RPCAMCLink::wildcard_.
|
protected |
Definition at line 530 of file RPCTwinMuxRawToDigi.cc.
References eostools::move().
Referenced by produce().
|
protected |
Definition at line 507 of file RPCTwinMuxRawToDigi.cc.
References LogDebug, and eostools::move().
Referenced by produce().
|
protected |
Definition at line 85 of file RPCTwinMuxRawToDigi.h.
Referenced by processTwinMux().
|
protected |
Definition at line 85 of file RPCTwinMuxRawToDigi.h.
Referenced by processTwinMux().
|
protected |
Definition at line 84 of file RPCTwinMuxRawToDigi.h.
Referenced by processBlock(), processCDFHeaders(), processTwinMux(), and produce().
|
protected |
Definition at line 90 of file RPCTwinMuxRawToDigi.h.
Referenced by processRPCRecord(), and produce().
|
protected |
Definition at line 89 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun(), processRPCRecord(), and produce().
|
protected |
Definition at line 87 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun().
|
protected |
Definition at line 88 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun(), and produce().
|
protected |
Definition at line 84 of file RPCTwinMuxRawToDigi.h.
Referenced by processBlock(), processCDFHeaders(), processCDFTrailers(), processRPCRecord(), processTwinMux(), produce(), and RPCTwinMuxRawToDigi().
|
protected |
Definition at line 82 of file RPCTwinMuxRawToDigi.h.
Referenced by produce(), and RPCTwinMuxRawToDigi().