Go to the documentation of this file. 1 #ifndef FWCore_Services_ExternalRandomNumberGeneratorService_h
2 #define FWCore_Services_ExternalRandomNumberGeneratorService_h
24 void setState(std::vector<unsigned long>
const&,
long seed);
25 std::vector<unsigned long>
getState()
const;
30 std::uint32_t
mySeed()
const final;
50 void print(std::ostream& os)
const final;
56 std::unique_ptr<CLHEP::HepRandomEngine>
createFromState(std::vector<unsigned long>
const&,
long seed)
const;
58 std::unique_ptr<CLHEP::HepRandomEngine>
engine_;
std::unique_ptr< CLHEP::HepRandomEngine > createFromState(std::vector< unsigned long > const &, long seed) const
std::vector< RandomEngineState > const & getEventCache(StreamID const &) const final
std::unique_ptr< CLHEP::HepRandomEngine > cloneEngine(LuminosityBlockIndex const &) final
std::uint32_t mySeed() const final
void setEventCache(StreamID, std::vector< RandomEngineState > const &iStates) final
CLHEP::HepRandomEngine & getEngine(StreamID const &) final
Use this engine in event methods.
void setState(std::vector< unsigned long > const &, long seed)
ExternalRandomNumberGeneratorService const & operator=(ExternalRandomNumberGeneratorService const &)=delete
void postEventRead(Event const &event) final
void print(std::ostream &os) const final
For debugging purposes only.
std::vector< RandomEngineState > const & getLumiCache(LuminosityBlockIndex const &) const final
void setLumiCache(LuminosityBlockIndex, std::vector< RandomEngineState > const &iStates) final
std::vector< unsigned long > getState() const
void consumes(ConsumesCollector &&iC) const final
void preBeginLumi(LuminosityBlock const &lumi) final
std::unique_ptr< CLHEP::HepRandomEngine > engine_
ExternalRandomNumberGeneratorService()