17 #include "CLHEP/Random/RandGauss.h" 36 , empty_events(pset.getUntrackedParameter<
bool>(
"emptyEvents",
false))
37 , meansize(pset.getUntrackedParameter<unsigned
int>(
"meanSize",1024))
38 ,
width(pset.getUntrackedParameter<unsigned
int>(
"width",1024))
39 , injected_errors_per_million_events(pset.getUntrackedParameter<unsigned
int>(
"injectErrPpm",0))
40 , modulo_error_events(injected_errors_per_million_events ? 1000000/injected_errors_per_million_events : 0xffffffff)
43 produces<FEDRawDataCollection>();
95 gettimeofday(&now,
nullptr);
107 std::unique_ptr<FEDRawDataCollection> bare_product(fedcoll);
124 float logsiz = CLHEP::RandGauss::shoot(
std::log(meansize),
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const unsigned int EVM_TCS_TRIGNR_OFFSET
const unsigned int EVM_BOARDID_VALUE
void fillFEDs(const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width)
void fillGTPFED(edm::EventID &eID, FEDRawDataCollection &data, timeval *now)
const unsigned int SLINK_HALFWORD_SIZE
LuminosityBlockNumber_t luminosityBlock() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
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.
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
void resize(size_t newsize)
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
DaqFakeReader(const edm::ParameterSet &pset)
void produce(edm::Event &, edm::EventSetup const &) override
const unsigned int SLINK_WORD_SIZE
~DaqFakeReader() override
const unsigned int EVM_BOARDID_OFFSET
char data[epos_bytes_allocation]
const unsigned int EVM_GTFE_BSTGPS_OFFSET
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
edm::EventNumber_t eventNum
const unsigned int EVM_BOARDID_SHIFT