1 #ifndef FWCore_Services_ExternalRandomNumberGeneratorService_h 2 #define FWCore_Services_ExternalRandomNumberGeneratorService_h 26 void setState(std::vector<unsigned long>
const&,
long seed);
27 std::vector<unsigned long>
getState()
const;
32 std::uint32_t
mySeed()
const final;
52 void print(std::ostream&
os)
const final;
55 std::unique_ptr<CLHEP::HepRandomEngine>
createFromState(std::vector<unsigned long>
const&,
long seed)
const;
57 std::unique_ptr<CLHEP::HepRandomEngine>
engine_;
std::unique_ptr< CLHEP::HepRandomEngine > engine_
ExternalRandomNumberGeneratorService const & operator=(ExternalRandomNumberGeneratorService const &)=delete
void print(std::ostream &os) const final
For debugging purposes only.
std::vector< unsigned long > getState() const
std::vector< RandomEngineState > const & getLumiCache(LuminosityBlockIndex const &) const final
std::unique_ptr< CLHEP::HepRandomEngine > cloneEngine(LuminosityBlockIndex const &) final
void setState(std::vector< unsigned long > const &, long seed)
void setLumiCache(LuminosityBlockIndex, std::vector< RandomEngineState > const &iStates) final
CLHEP::HepRandomEngine & getEngine(StreamID const &) final
Use this engine in event methods.
void consumes(ConsumesCollector &&iC) const final
std::vector< RandomEngineState > const & getEventCache(StreamID const &) const final
std::uint32_t mySeed() const final
void preBeginLumi(LuminosityBlock const &lumi) final
ExternalRandomNumberGeneratorService()
void postEventRead(Event const &event) final
std::unique_ptr< CLHEP::HepRandomEngine > createFromState(std::vector< unsigned long > const &, long seed) const
void setEventCache(StreamID, std::vector< RandomEngineState > const &iStates) final