#include <DaqFakeReader.h>
Public Member Functions | |
DaqFakeReader (const edm::ParameterSet &pset) | |
virtual int | fillRawData (edm::Event &e, FEDRawDataCollection *&data) |
virtual void | produce (edm::Event &, edm::EventSetup const &) |
virtual | ~DaqFakeReader () |
Public Member Functions inherited from edm::one::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::one::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) |
Private Member Functions | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &iL, edm::EventSetup const &iE) |
void | fillFEDs (const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width) |
void | fillGTPFED (edm::EventID &eID, FEDRawDataCollection &data, timeval *now) |
Private Attributes | |
bool | empty_events |
edm::EventNumber_t | eventNum |
unsigned int | fakeLs_ =0 |
unsigned int | injected_errors_per_million_events |
unsigned int | meansize |
unsigned int | modulo_error_events |
edm::RunNumber_t | runNum |
unsigned int | width |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Generates empty FEDRawData of random size for all FEDs Proper headers and trailers are included; but the payloads are all 0s
Definition at line 21 of file DaqFakeReader.h.
DaqFakeReader::DaqFakeReader | ( | const edm::ParameterSet & | pset | ) |
Definition at line 35 of file DaqFakeReader.cc.
|
virtual |
Definition at line 49 of file DaqFakeReader.cc.
|
privatevirtual |
Definition at line 190 of file DaqFakeReader.cc.
References gather_cfg::cout, fakeLs_, and edm::LuminosityBlockBase::luminosityBlock().
|
private |
Definition at line 115 of file DaqFakeReader.cc.
References FEDRawData::data(), edm::EventID::event(), JetChargeProducer_cfi::exp, FEDRawDataCollection::FEDData(), l1t::stage2::layer2::fedId, createfilelist::int, cmsBatch::log, FEDRawData::resize(), FEDTrailer::set(), FEDHeader::set(), and findQualityFiles::size.
Referenced by fillRawData().
|
private |
Definition at line 154 of file DaqFakeReader.cc.
References FEDRawData::data(), edm::EventID::event(), evf::evtn::EVM_BOARDID_OFFSET, evf::evtn::EVM_BOARDID_SHIFT, evf::evtn::EVM_BOARDID_VALUE, evf::evtn::EVM_GTFE_BSTGPS_OFFSET, evf::evtn::EVM_TCS_TRIGNR_OFFSET, FEDRawDataCollection::FEDData(), l1t::stage2::layer2::fedId, FEDNumbering::MINTriggerGTPFEDID, FEDRawData::resize(), FEDTrailer::set(), FEDHeader::set(), findQualityFiles::size, evf::evtn::SLINK_HALFWORD_SIZE, and evf::evtn::SLINK_WORD_SIZE.
Referenced by fillRawData().
|
virtual |
Definition at line 60 of file DaqFakeReader.cc.
References empty_events, eventNum, fillFEDs(), fillGTPFED(), edm::EventBase::id(), FEDNumbering::MAXCSCFEDID, FEDNumbering::MAXDTFEDID, FEDNumbering::MAXECALFEDID, FEDNumbering::MAXHCALFEDID, FEDNumbering::MAXRPCFEDID, FEDNumbering::MAXSiPixelFEDID, FEDNumbering::MAXSiStripFEDID, meansize, FEDNumbering::MINCSCFEDID, FEDNumbering::MINDTFEDID, FEDNumbering::MINECALFEDID, FEDNumbering::MINHCALFEDID, FEDNumbering::MINRPCFEDID, FEDNumbering::MINSiPixelFEDID, FEDNumbering::MINSiStripFEDID, cmsPerfSuiteHarvest::now, and width.
Referenced by produce().
|
virtual |
Implements edm::one::EDProducerBase.
Definition at line 104 of file DaqFakeReader.cc.
References fillRawData(), eostools::move(), edm::Event::put(), and matplotRender::rawdata.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
Definition at line 59 of file DaqFakeReader.h.
Referenced by fillRawData().
|
private |
Definition at line 58 of file DaqFakeReader.h.
Referenced by fillRawData().
|
private |
Definition at line 64 of file DaqFakeReader.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 62 of file DaqFakeReader.h.
|
private |
Definition at line 60 of file DaqFakeReader.h.
Referenced by fillRawData().
|
private |
Definition at line 63 of file DaqFakeReader.h.
|
private |
Definition at line 57 of file DaqFakeReader.h.
|
private |
Definition at line 61 of file DaqFakeReader.h.
Referenced by python.rootplot.utilities.Hist::__init_TGraph(), Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.rootplot.root2matplotlib.Hist::bar(), python.rootplot.root2matplotlib.Hist::barh(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), Vispa.Gui.VispaWidget.VispaWidget::contentRect(), Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget::drawPortNames(), fillRawData(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView::resizeEvent(), Vispa.Views.PropertyView.PropertyView::sectionResized(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().