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 > engine_
ExternalRandomNumberGeneratorService const & operator=(ExternalRandomNumberGeneratorService const &)=delete
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.
std::vector< RandomEngineState > const & getLumiCache(LuminosityBlockIndex const &) const final
std::vector< unsigned long > getState() const
void print(std::ostream &os) const final
For debugging purposes only.
std::uint32_t mySeed() const final
void preBeginLumi(LuminosityBlock const &lumi) final
std::unique_ptr< CLHEP::HepRandomEngine > createFromState(std::vector< unsigned long > const &, long seed) const
ExternalRandomNumberGeneratorService()
std::vector< RandomEngineState > const & getEventCache(StreamID const &) const final
void postEventRead(Event const &event) final
void consumes(ConsumesCollector &&iC) const final
void setEventCache(StreamID, std::vector< RandomEngineState > const &iStates) final