10 #include "nutools/RandomUtils/NuRandomService.h" 49 virtual void beginRun(
art::Run const&)
override;
58 SeedTestRegisterOnRun::SeedTestRegisterOnRun
61 , registerEngine(pset.
get<
bool>(
"register",
true))
70 void SeedTestRegisterOnRun::beginRun(
art::Run const&) {
73 auto const seed = Seeds->
getSeed();
76 <<
"Got seed=" << seed
77 <<
" for " << (registerEngine?
"registered":
"unregistered")
78 <<
" (unnamed) engine in beginRun()";
seed_t getSeed(std::string instanceName)
Returns a seed for the engine with specified instance name.
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Test module for NuRandomService.
bool registerEngine
whether to register the engine on construction
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
virtual void analyze(const art::Event &) override
seed_t declareEngine(std::string instance="")
Declares the presence of an engine with a given instance name.