#include <DaqFakeReader.h>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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 | fillTCDSFED (edm::EventID &eID, FEDRawDataCollection &data, uint32_t ls, timeval *now) |
Private Attributes | |
bool | empty_events |
edm::EventNumber_t | eventNum |
unsigned int | fakeLs_ = 0 |
bool | fillRandom_ |
unsigned int | injected_errors_per_million_events |
unsigned int | meansize |
unsigned int | modulo_error_events |
edm::RunNumber_t | runNum |
unsigned int | tcdsFEDID_ |
unsigned int | width |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Generates empty FEDRawData of random size for all FEDs Proper headers and trailers are included; but the payloads are all 0s
Definition at line 20 of file DaqFakeReader.h.
DaqFakeReader::DaqFakeReader | ( | const edm::ParameterSet & | pset | ) |
Definition at line 34 of file DaqFakeReader.cc.
References Exception, fillRandom_, FEDNumbering::MINTCDSuTCAFEDID, submitPVValidationJobs::now, and tcdsFEDID_.
|
override |
Definition at line 59 of file DaqFakeReader.cc.
|
privatevirtual |
Definition at line 184 of file DaqFakeReader.cc.
References gather_cfg::cout, fakeLs_, and edm::LuminosityBlockBase::luminosityBlock().
|
static |
Definition at line 189 of file DaqFakeReader.cc.
References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.
|
private |
Definition at line 101 of file DaqFakeReader.cc.
References FEDRawData::data(), data, edm::EventID::event(), JetChargeProducer_cfi::exp, l1tstage2_dqm_sourceclient-live_cfg::fedId, fillRandom_, mps_fire::i, createfilelist::int, dqm-mbProfile::log, meansize, FEDRawData::resize(), FEDHeader::set(), FEDTrailer::set(), findQualityFiles::size, and width.
Referenced by fillRawData().
|
virtual |
Definition at line 66 of file DaqFakeReader.cc.
References data, MillePedeFileConverter_cfg::e, empty_events, eventNum, EcalFEDMonitor_cfi::FEDRawDataCollection, fillFEDs(), fillTCDSFED(), eostools::ls(), 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, submitPVValidationJobs::now, and width.
Referenced by produce().
|
private |
Definition at line 145 of file DaqFakeReader.cc.
References FEDRawData::data(), data, edm::EventID::event(), l1tstage2_dqm_sourceclient-live_cfg::fedId, tcds::BST_v1::gpstimehigh, tcds::BST_v1::gpstimelow, RecoTauValidation_cfi::header, FEDHeader::length, tcds::BST_v1::lhcFillHigh, tcds::BST_v1::lhcFillLow, eostools::ls(), submitPVValidationJobs::now, FEDRawData::resize(), FEDHeader::set(), FEDTrailer::set(), findQualityFiles::size, and tcdsFEDID_.
Referenced by fillRawData().
|
overridevirtual |
Implements edm::one::EDProducerBase.
Definition at line 92 of file DaqFakeReader.cc.
References MillePedeFileConverter_cfg::e, fillRawData(), and eostools::move().
|
private |
Definition at line 53 of file DaqFakeReader.h.
Referenced by fillRawData().
|
private |
Definition at line 52 of file DaqFakeReader.h.
Referenced by fillRawData().
|
private |
Definition at line 60 of file DaqFakeReader.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 54 of file DaqFakeReader.h.
Referenced by DaqFakeReader(), and fillFEDs().
|
private |
Definition at line 57 of file DaqFakeReader.h.
|
private |
Definition at line 55 of file DaqFakeReader.h.
Referenced by fillFEDs(), and fillRawData().
|
private |
Definition at line 59 of file DaqFakeReader.h.
|
private |
Definition at line 51 of file DaqFakeReader.h.
|
private |
Definition at line 58 of file DaqFakeReader.h.
Referenced by DaqFakeReader(), and fillTCDSFED().
|
private |
Definition at line 56 of file DaqFakeReader.h.
Referenced by python.rootplot.utilities.Hist::__init_TGraph(), python.rootplot.root2matplotlib.Hist::bar(), python.rootplot.root2matplotlib.Hist::barh(), python.rootplot.utilities.Hist::delete_bin(), fillFEDs(), and fillRawData().