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>();
109 std::unique_ptr<FEDRawDataCollection> bare_product(fedcoll);
123 for (
int fedId = fedmin; fedId <= fedmax; ++fedId ) {
126 float logsiz = CLHEP::RandGauss::shoot(
std::log(meansize),
175 unsigned char * pOffset = feddata.
data() +
sizeof(
fedh_t);
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)
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.
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
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
void resize(size_t newsize)
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
virtual void produce(edm::Event &, edm::EventSetup const &)
DaqFakeReader(const edm::ParameterSet &pset)
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
const unsigned int EVM_BOARDID_SHIFT