Go to the documentation of this file.
17 #include "CLHEP/Random/RandGauss.h"
34 empty_events(
pset.getUntrackedParameter<
bool>(
"emptyEvents",
false)),
35 meansize(
pset.getUntrackedParameter<unsigned
int>(
"meanSize", 1024)),
36 width(
pset.getUntrackedParameter<unsigned
int>(
"width", 1024)),
37 injected_errors_per_million_events(
pset.getUntrackedParameter<unsigned
int>(
"injectErrPpm", 0)),
38 modulo_error_events(injected_errors_per_million_events ? 1000000 / injected_errors_per_million_events
41 produces<FEDRawDataCollection>();
71 gettimeofday(&
now,
nullptr);
82 std::unique_ptr<FEDRawDataCollection> bare_product(fedcoll);
const unsigned int EVM_BOARDID_OFFSET
void produce(edm::Event &, edm::EventSetup const &) override
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
const unsigned int EVM_GTFE_BSTGPS_OFFSET
DaqFakeReader(const edm::ParameterSet &pset)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
LuminosityBlockNumber_t luminosityBlock() const
edm::EventNumber_t eventNum
const unsigned int EVM_BOARDID_VALUE
EventNumber_t event() const
void fillGTPFED(edm::EventID &eID, FEDRawDataCollection &data, timeval *now)
const unsigned int SLINK_HALFWORD_SIZE
static void set(unsigned char *trailer, uint32_t lenght, uint16_t crc, uint8_t evt_stat, uint8_t tts, bool moreTrailers=false)
Set all fields in the trailer.
void fillFEDs(const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width)
const unsigned int EVM_TCS_TRIGNR_OFFSET
void resize(size_t newsize)
char data[epos_bytes_allocation]
const unsigned int SLINK_WORD_SIZE
~DaqFakeReader() override
const unsigned int EVM_BOARDID_SHIFT
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)