Test service registering its own ßs. More...
#include <GlobalEngineUserTestService.h>
Public Member Functions | |
GlobalEngineUserTestService (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
Private Member Functions | |
void | CheckAllSeeds () const |
Checks all engines by CheckSeed() calls. More... | |
void | preModuleConstruction (art::ModuleDescription const &) |
void | postModuleConstruction (art::ModuleDescription const &) |
void | preModuleBeginRun (art::ModuleContext const &) |
void | postModuleBeginRun (art::ModuleContext const &) |
void | preProcessEvent (art::Event const &evt, art::ScheduleContext) |
void | preModule (art::ModuleContext const &) |
void | postModule (art::ModuleContext const &) |
void | postProcessEvent (art::Event const &, art::ScheduleContext) |
void | preModuleEndJob (art::ModuleDescription const &) |
void | postModuleEndJob (art::ModuleDescription const &) |
Static Private Member Functions | |
static void | CheckSeed (TRandom const &engine) |
Throws an exception if the seed is not expected. More... | |
Private Attributes | |
std::vector< std::string > | instanceNames |
name of engine instances More... | |
bool | perEventSeeds |
whether to skip seed check in constructor More... | |
std::vector< std::unique_ptr< TRandom > > | engines |
our random generator engines More... | |
Static Private Attributes | |
static const std::string | GlobalInstanceName { "GlobalEngineUserServiceEngine" } |
Name used for the global engine instance. More... | |
Test service registering its own ßs.
The service owns all its engines and is asks NuRandomService for their seeds. NuRandomService will use global identifiers for them, that is identifiers not bound to the art execution context (that is, not bound to a specific module).
Definition at line 60 of file GlobalEngineUserTestService.h.
testing::GlobalEngineUserTestService::GlobalEngineUserTestService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 36 of file GlobalEngineUserTestService_service.cc.
|
private |
Checks all engines by CheckSeed() calls.
Definition at line 135 of file GlobalEngineUserTestService_service.cc.
|
staticprivate |
Throws an exception if the seed is not expected.
Definition at line 109 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 205 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 178 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 156 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 234 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 215 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 196 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 167 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 145 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 223 of file GlobalEngineUserTestService_service.cc.
|
private |
Definition at line 188 of file GlobalEngineUserTestService_service.cc.
|
private |
our random generator engines
Definition at line 72 of file GlobalEngineUserTestService.h.
|
staticprivate |
Name used for the global engine instance.
Definition at line 81 of file GlobalEngineUserTestService.h.
|
private |
name of engine instances
Definition at line 67 of file GlobalEngineUserTestService.h.
|
private |
whether to skip seed check in constructor
Definition at line 69 of file GlobalEngineUserTestService.h.