#include <EventFilter/RctRawToDigi/src/RctRawToDigi.cc>
Public Member Functions | |
RctRawToDigi (const edm::ParameterSet &) | |
~RctRawToDigi () 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 |
Private Member Functions | |
void | checkHeaders () |
bool | decodeLinkID (const uint32_t inputValue, uint32_t &crateNumber, uint32_t &linkNumber, bool &even) |
virtual void | endJob () |
method called at job end - use to print summary report More... | |
bool | printAll (const unsigned char *data, const unsigned size) |
void | produce (edm::Event &, const edm::EventSetup &) override |
void | unpack (const FEDRawData &d, edm::Event &e, RctUnpackCollections *const colls) |
Unpacks the raw data. More... | |
void | unpackCTP7 (const uint32_t *data, const unsigned block_id, const unsigned size, RctUnpackCollections *const colls) |
Private Attributes | |
std::vector< unsigned > | errorCounters_ |
Counts number of errors for each code (index) More... | |
L1TriggerErrorCollection * | errors_ |
pointer to error collection More... | |
int | fedId_ |
RCT FED ID. More... | |
edm::InputTag | inputLabel_ |
FED collection label. More... | |
unsigned | unpackFailures_ |
To count the total number of RCT unpack failures. More... | |
const bool | verbose_ |
If true, then debug print out for each event. More... | |
Static Private Attributes | |
static const unsigned | amc13HeaderSize_ = 16 |
static const unsigned | amc13TrailerSize_ = 8 |
static const unsigned | ctp7HeaderSize_ = 8 |
static const unsigned | ctp7TrailerSize_ = 8 |
static const unsigned | MAX_DATA = 4680 |
The maximum number of blocks we will try to unpack before thinking something is wrong. More... | |
static const unsigned | MAX_ERR_CODE = 6 |
static const unsigned | MIN_DATA = 900 |
The minimum number of blocks we will try to unpack before thinking something is wrong (really this should be 920, to be tested) More... | |
static const unsigned | sLinkHeaderSize_ = 8 |
static const unsigned | sLinkTrailerSize_ = 8 |
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 |
Description: Produce RCT digis from raw data
Implementation: <Notes on="" implementation>="">
Definition at line 40 of file RctRawToDigi.h.
|
explicit |
Register Products
Definition at line 34 of file RctRawToDigi.cc.
References fedId_, inputLabel_, and LogDebug.
|
override |
Definition at line 48 of file RctRawToDigi.cc.
|
private |
Looks at the firmware version header in the S-Link packet and instantiates relevant format translator. check block headers for consistency
|
private |
|
privatevirtual |
method called at job end - use to print summary report
Definition at line 311 of file RctRawToDigi.cc.
References errorCounters_, mps_fire::i, MAX_ERR_CODE, l1tGTMenu_BTagSeeds_cff::os, dqmMemoryStats::total, and verbose_.
|
private |
Definition at line 301 of file RctRawToDigi.cc.
References gather_cfg::cout, data, mps_fire::i, and findQualityFiles::size.
|
overrideprivate |
Definition at line 55 of file RctRawToDigi.cc.
References amc13HeaderSize_, amc13TrailerSize_, TauDecayModes::dec, fedId_, l1tstage2emulator_dqm_sourceclient-live_cfg::feds, iEvent, inputLabel_, LogDebug, MIN_DATA, FEDRawData::size(), sLinkHeaderSize_, sLinkTrailerSize_, and unpack().
|
private |
Unpacks the raw data.
invalidDataFlag | - if true, then won't attempt unpack but just output empty collecions. |
Definition at line 94 of file RctRawToDigi.cc.
References FEDTrailer::check(), FEDTrailer::crc(), ztail::d, data, FEDTrailer::evtStatus(), FEDTrailer::fragmentLength(), RecoTauValidation_cfi::header, LogDebug, sLinkTrailerSize_, FEDTrailer::ttsBits(), and unpackCTP7().
Referenced by produce().
|
private |
Definition at line 123 of file RctRawToDigi.cc.
References cms::cuda::assert(), data, dqmiolumiharvest::j, isotrackApplyRegressor::k, LogDebug, visualization-live-secondInstance_cfg::m, EcalTangentSkim_cfg::o, haddnano::of, HLT_IsoTrack_cff::offset, submitPVResolutionJobs::q, RctUnpackCollections::rctCalo(), RctUnpackCollections::rctEm(), L1CaloEmCand::setBx(), L1CaloRegion::setBx(), findQualityFiles::size, submitPVValidationJobs::t, createJobs::tmp, parallelization::uint, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by unpack().
|
staticprivate |
Definition at line 75 of file RctRawToDigi.h.
Referenced by produce().
|
staticprivate |
Definition at line 78 of file RctRawToDigi.h.
Referenced by produce().
|
staticprivate |
Definition at line 81 of file RctRawToDigi.h.
|
staticprivate |
Definition at line 84 of file RctRawToDigi.h.
|
private |
Counts number of errors for each code (index)
Definition at line 104 of file RctRawToDigi.h.
Referenced by endJob().
|
private |
pointer to error collection
Definition at line 103 of file RctRawToDigi.h.
|
private |
RCT FED ID.
Definition at line 94 of file RctRawToDigi.h.
Referenced by produce(), and RctRawToDigi().
|
private |
FED collection label.
Definition at line 93 of file RctRawToDigi.h.
Referenced by produce(), and RctRawToDigi().
|
staticprivate |
The maximum number of blocks we will try to unpack before thinking something is wrong.
Definition at line 87 of file RctRawToDigi.h.
|
staticprivate |
Definition at line 102 of file RctRawToDigi.h.
Referenced by endJob().
|
staticprivate |
The minimum number of blocks we will try to unpack before thinking something is wrong (really this should be 920, to be tested)
Definition at line 90 of file RctRawToDigi.h.
Referenced by produce().
|
staticprivate |
Definition at line 69 of file RctRawToDigi.h.
Referenced by produce().
|
staticprivate |
Definition at line 72 of file RctRawToDigi.h.
|
private |
To count the total number of RCT unpack failures.
Definition at line 105 of file RctRawToDigi.h.
|
private |
If true, then debug print out for each event.
Definition at line 96 of file RctRawToDigi.h.
Referenced by endJob().