#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 | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () 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 | ) |
Definition at line 24 of file RPCTwinMuxRawToDigi.cc.
References fill_counters_, edm::ParameterSet::getParameter(), and raw_token_.
|
override |
Definition at line 37 of file RPCTwinMuxRawToDigi.cc.
|
override |
Definition at line 60 of file RPCTwinMuxRawToDigi.cc.
References edm::ESWatcher< T >::check(), es_tm_link_map_, es_tm_link_map_watcher_, feds_, edm::EventSetup::get(), and RPCAMCLinkMap::getMap().
|
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 49 of file RPCTwinMuxRawToDigi.cc.
References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().
|
protected |
Definition at line 227 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 150 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_, RecoTauValidation_cfi::header, LogDebug, FEDHeader::sourceID(), and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 188 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 400 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), RPCAMCLinkEvents::amc_event_, RPCAMCLinkEvents::amc_link_invalid_, data, TauDecayModes::dec, es_lb_link_map_, es_tm_link_map_, fill_counters_, rpctwinmux::RPCRecord::getBXOffset(), RPCLBLinkMap::getMap(), RPCAMCLinkMap::getMap(), 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_, createfilelist::int, LogDebug, RPCLBLink::max_connector_, RPCLBLink::max_linkboard_, RPCLBLink::setConnector(), RPCLBLink::setLinkBoard(), digitizers_cfi::strip, and globals_cff::x1.
Referenced by processTwinMux().
|
protected |
Definition at line 289 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(), 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 72 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_, edm::EventSetup::get(), LogDebug, eostools::move(), processBlock(), processCDFHeaders(), processCDFTrailers(), putCounters(), putRPCDigis(), raw_token_, FEDRawData::size(), and RPCAMCLink::wildcard_.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
protected |
Definition at line 544 of file RPCTwinMuxRawToDigi.cc.
References DEFINE_FWK_MODULE, and eostools::move().
Referenced by produce().
|
protected |
Definition at line 519 of file RPCTwinMuxRawToDigi.cc.
References LogDebug, and eostools::move().
Referenced by produce().
|
protected |
Definition at line 79 of file RPCTwinMuxRawToDigi.h.
Referenced by processTwinMux().
|
protected |
Definition at line 79 of file RPCTwinMuxRawToDigi.h.
Referenced by processTwinMux().
|
protected |
Definition at line 78 of file RPCTwinMuxRawToDigi.h.
Referenced by processBlock(), processCDFHeaders(), processTwinMux(), and produce().
|
protected |
Definition at line 84 of file RPCTwinMuxRawToDigi.h.
Referenced by processRPCRecord(), and produce().
|
protected |
Definition at line 83 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun(), processRPCRecord(), and produce().
|
protected |
Definition at line 81 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun().
|
protected |
Definition at line 82 of file RPCTwinMuxRawToDigi.h.
Referenced by beginRun(), and produce().
|
protected |
Definition at line 78 of file RPCTwinMuxRawToDigi.h.
Referenced by processBlock(), processCDFHeaders(), processCDFTrailers(), processRPCRecord(), processTwinMux(), produce(), and RPCTwinMuxRawToDigi().
|
protected |
Definition at line 76 of file RPCTwinMuxRawToDigi.h.
Referenced by produce(), and RPCTwinMuxRawToDigi().