25 #include "CLHEP/Random/RandomEngine.h" 28 for (
auto const&
name : iModuleLabels) {
58 std::vector<RandomEngineState>
const& iStates) {}
62 static const std::vector<RandomEngineState> s_dummy;
66 static const std::vector<RandomEngineState> s_dummy;
78 <<
"PileupRandomNumberGenerator::getEngine()\n" 79 "Requested a random number engine from the RandomNumberGeneratorService\n" 80 "from an unallowed transition. ModuleCallingContext is null\n";
CLHEP::HepRandomEngine & getEngine(edm::StreamID const &) final
Use this engine in event methods.
static ModuleCallingContext const * getCurrentModuleOnThread()
std::unique_ptr< CLHEP::HepRandomEngine > cloneEngine(edm::LuminosityBlockIndex const &) final
void setEventCache(edm::StreamID, std::vector< RandomEngineState > const &iStates) final
ModuleDescription const * moduleDescription() const noexcept
void consumes(edm::ConsumesCollector &&iC) const final
std::unique_ptr< CLHEP::HepRandomEngine > cloneEngine(CLHEP::HepRandomEngine const &)
void print(std::ostream &os) const final
For debugging purposes only.
void setEngine(CLHEP::HepRandomEngine const &)
void setLumiCache(edm::LuminosityBlockIndex, std::vector< RandomEngineState > const &iStates) final
std::vector< RandomEngineState > const & getEventCache(edm::StreamID const &) const final
std::unordered_map< std::string, std::unique_ptr< CLHEP::HepRandomEngine > > m_modulesToEngines
void preBeginLumi(edm::LuminosityBlock const &lumi) final
const std::string & findPresentModule() const
std::vector< RandomEngineState > const & getLumiCache(edm::LuminosityBlockIndex const &) const final
std::string const & moduleLabel() const
PileupRandomNumberGenerator(std::vector< std::string > const &iModuleLabels)
void postEventRead(edm::Event const &event) final
void setSeed(uint32_t iSeed)