19 #include "CLHEP/Random/RandGauss.h"
38 , empty_events(pset.getUntrackedParameter<bool>(
"emptyEvents",
false))
39 , meansize(pset.getUntrackedParameter<unsigned int>(
"meanSize",1024))
40 ,
width(pset.getUntrackedParameter<unsigned int>(
"width",1024))
41 , injected_errors_per_million_events(pset.getUntrackedParameter<unsigned int>(
"injectErrPpm",0))
42 , modulo_error_events(injected_errors_per_million_events ? 1000000/injected_errors_per_million_events : 0xffffffff)
45 produces<FEDRawDataCollection>();
110 std::auto_ptr<FEDRawDataCollection> bare_product(fedcoll);
124 for (
int fedId = fedmin; fedId <= fedmax; ++fedId ) {
127 float logsiz = CLHEP::RandGauss::shoot(
std::log(meansize),
176 unsigned char * pOffset = feddata.
data() +
sizeof(
fedh_t);
EventNumber_t event() const
unsigned int modulo_error_events
unsigned int size() const
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)
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
void fillGTPFED(edm::EventID &eID, FEDRawDataCollection &data, timeval *now)
const unsigned int SLINK_HALFWORD_SIZE
LuminosityBlockNumber_t luminosityBlock() const
void fillFED1023(edm::EventID &eID, FEDRawDataCollection &data, timeval *now)
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
const unsigned int SLINK_WORD_SIZE
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
void setRBTimeStamp(uint64_t ts)
const unsigned int EVM_BOARDID_SHIFT
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)