#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 () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | compute_crc_64bit (std::uint16_t &crc, std::uint64_t const &word) |
static void | fillDescriptions (edm::ConfigurationDescriptions &descs) |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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 Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
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 |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Definition at line 30 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_.
RPCTwinMuxRawToDigi::~RPCTwinMuxRawToDigi | ( | ) |
Definition at line 36 of file RPCTwinMuxRawToDigi.cc.
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 59 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 39 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(), and edm::ParameterSetDescription::add().
|
protected |
Definition at line 226 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), amc, RPCAMCLinkCounters::amc_evc_bc_invalid_, calculate_crc_, compute_crc_64bit(), RPCAMCLinkCounters::fed_block_length_invalid_, 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 149 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), calculate_crc_, FEDHeader::check(), compute_crc_64bit(), TauDecayModes::dec, RPCAMCLinkCounters::fed_header_check_fail_, RPCAMCLinkCounters::fed_header_id_mismatch_, fill_counters_, RecoTauValidation_cfi::header, LogDebug, FEDHeader::sourceID(), and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 187 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), FEDTrailer::check(), TauDecayModes::dec, RPCAMCLinkCounters::fed_trailer_check_fail_, RPCAMCLinkCounters::fed_trailer_length_mismatch_, fill_counters_, createfilelist::int, FEDTrailer::lenght(), LogDebug, and RPCAMCLink::wildcard_.
Referenced by produce().
|
protected |
Definition at line 399 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), RPCAMCLinkCounters::amc_data_, RPCAMCLinkCounters::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(), RPCAMCLinkCounters::input_connector_invalid_, RPCAMCLinkCounters::input_connector_not_used_, RPCAMCLinkCounters::input_data_, RPCAMCLinkCounters::input_eod_, RPCAMCLinkCounters::input_lb_invalid_, RPCAMCLinkCounters::input_link_ack_fail_, RPCAMCLinkCounters::input_link_error_, createfilelist::int, LogDebug, RPCLBLink::max_connector_, RPCLBLink::max_linkboard_, RPCLBLink::setConnector(), RPCLBLink::setLinkBoard(), and digi_MixPreMix_cfi::strip.
Referenced by processTwinMux().
|
protected |
Definition at line 288 of file RPCTwinMuxRawToDigi.cc.
References RPCAMCLinkCounters::add(), RPCAMCLinkCounters::amc_number_mismatch_, RPCAMCLinkCounters::amc_payload_length_invalid_, bx_max_, bx_min_, calculate_crc_, compute_crc_64bit(), TauDecayModes::dec, RPCAMCLinkCounters::fed_block_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, hpstanc_transforms::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().
|
overridevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 71 of file RPCTwinMuxRawToDigi.cc.
References calculate_crc_, compute_crc_64bit(), FEDTrailer::crc(), FEDRawData::data(), es_lb_link_map_, es_tm_link_map_, RPCAMCLinkCounters::fed_event_, RPCAMCLinkCounters::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 543 of file RPCTwinMuxRawToDigi.cc.
References DEFINE_FWK_MODULE, and eostools::move().
Referenced by produce().
|
protected |
Definition at line 518 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().