9 #ifndef EventFilter_HGCalRawToDigi_HGCalFrameGenerator_h 10 #define EventFilter_HGCalRawToDigi_HGCalFrameGenerator_h 24 class HepRandomEngine;
51 std::vector<uint64_t>
produceECONEvent(
unsigned int econd_id,
unsigned int cb_id = 0)
const;
73 std::vector<econd::ERxChannelEnable>&)
const;
82 uint32_t
computeCRC(
const std::vector<uint32_t>&)
const;
87 CLHEP::HepRandomEngine*
rng_{
nullptr};
const std::map< unsigned int, econd::EmulatorParameters > & econdParams() const
List of ECON-D operational parameters for emulation.
econd::ECONDInput last_emul_event_
unsigned int format_version
std::map< unsigned int, econd::EmulatorParameters > econd_params_
std::vector< uint64_t > produceECONEvent(unsigned int econd_id, unsigned int cb_id=0) const
void setEmulator(econd::Emulator &)
Set the emulation source for ECON-D frames.
const econd::ECONDInput & lastECONDEmulatedInput() const
Retrieve the last ECON-D event emulated.
HeaderBits generateStatusBits(unsigned int) const
CLHEP::HepRandomEngine * rng_
std::vector< uint64_t > produceCaptureBlockEvent(unsigned int cb_id) const
std::map< ERxId_t, ERxData > ERxInput
eRx data maps
const SlinkParameters & slinkParams() const
List of S-link operational parameters for emulation.
std::vector< uint32_t > generateERxData(unsigned int, const econd::ERxInput &, std::vector< econd::ERxChannelEnable > &) const
econd::ERxChannelEnable generateEnabledChannels(unsigned int) const
std::vector< bool > ERxChannelEnable
list of channels enabled in eRx
std::vector< uint64_t > produceSlinkEvent(unsigned int fed_id) const
Produce a S-link event from an emulated event.
Pure virtual base class for a ECON-D event emulator implementation.
unsigned int num_capture_blocks
List of S-link operational parameters for emulation.
std::vector< unsigned int > active_econds
A S-link/ECON-D payload generator helper.
std::pair< EventId, ERxInput > ECONDInput
ECON-D inputs for a given event.
Map of capture block emulator truth information within a S-link payload.
const HGCalSlinkEmulatorInfo & lastSlinkEmulatedInfo() const
Retrieve the metadata generated along with the last S-link emulated payload.
uint32_t computeCRC(const std::vector< uint32_t > &) const
32bit CRC
HGCalSlinkEmulatorInfo last_slink_emul_info_
static edm::ParameterSetDescription description()
void setRandomEngine(CLHEP::HepRandomEngine &rng)
Set the random number generator engine.
HGCalFrameGenerator(const edm::ParameterSet &)
bool store_header_trailer
SlinkParameters slink_params_
static constexpr size_t kMaxNumECONDs