15 produces<edm::RandomEngineStates, edm::Transition::BeginLuminosityBlock>(
"beginLumi");
16 produces<edm::RandomEngineStates>();
24 auto states = std::make_unique<edm::RandomEngineStates>();
25 states->setRandomEngineStates(randomService->
getEventCache(
ev.streamID()));
34 auto states = std::make_unique<edm::RandomEngineStates>();
42 descriptions.
add(
"randomEngineStateProducer",
desc);
virtual std::vector< RandomEngineState > const & getLumiCache(LuminosityBlockIndex const &) const =0
RandomEngineStateProducer(edm::ParameterSet const &pset)
void put(std::unique_ptr< PROD > product)
Put a new product.
virtual std::vector< RandomEngineState > const & getEventCache(StreamID const &) const =0
void add(std::string const &label, ParameterSetDescription const &psetDescription)
LuminosityBlockIndex index() const
void globalBeginLuminosityBlockProduce(edm::LuminosityBlock &, edm::EventSetup const &) const override
~RandomEngineStateProducer() override
void produce(edm::StreamID iID, edm::Event &ev, edm::EventSetup const &es) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)