15 #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 : 0xffffffff)
41 produces<FEDRawDataCollection>();
102 std::auto_ptr<FEDRawDataCollection> bare_product(fedcoll);
116 for (
int fedId = fedmin; fedId <= fedmax; ++fedId ) {
119 float logsiz = CLHEP::RandGauss::shoot(
std::log(meansize),
156 gettimeofday(&now, 0);
EventNumber_t event() const
unsigned int modulo_error_events
unsigned int size() const
void fillFED1023(edm::EventID &eID, FEDRawDataCollection &data)
void fillFEDs(const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width)
static void set(unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false)
Set all fields in the trailer.
unsigned int fedId() const
LuminosityBlockNumber_t luminosityBlock() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void setEPProcessId(pid_t pid)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
void resize(size_t newsize)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
virtual void produce(edm::Event &, edm::EventSetup const &)
unsigned char *const getPayload()
DaqFakeReader(const edm::ParameterSet &pset)
unsigned long long uint64_t
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
edm::EventNumber_t eventNum
void setRBTimeStamp(uint64_t ts)
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.
void setDAQDiaWord1(uint64_t word)
void putHeader(unsigned int l1id, unsigned int bxid)