2 #include <fwk/CentralConfig.h>
3 #include <utl/Branch.h>
4 #include <fwk/RandomEngineRegistry.h>
5 #include <utl/ErrorLogger.h>
15 namespace RandomNumberShredderOG {
20 const Branch topB = CentralConfig::GetInstance()->
GetTopBranch(
"RandomNumberShredder");
21 fNDetector = topB.
GetChild(
"NDetector").
Get<
unsigned int>();
22 fNPhysics = topB.
GetChild(
"NPhysics").
Get<
unsigned int>();
32 info <<
"Burning " << fNDetector <<
" eDetector random numbers.";
34 for (
unsigned int i = 0; i < fNDetector; ++i)
35 RandomEngineRegistry::GetInstance().Get(RandomEngineRegistry::eDetector).GetEngine().flat();
39 info <<
"Burning " << fNPhysics <<
" ePhysics random numbers.";
41 for (
unsigned int i = 0; i < fNPhysics; ++i)
42 RandomEngineRegistry::GetInstance().Get(RandomEngineRegistry::ePhysics).GetEngine().flat();
Branch GetTopBranch() const
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Class representing a document branch.
ResultFlag
Flag returned by module methods to the RunController.