 |
Belle II Software
release-05-02-19
|
11 #include <framework/modules/core/RandomBarrierModule.h>
12 #include <framework/core/RandomNumbers.h>
28 setDescription(
"Sets gRandom to an independent generator for the following modules. E.g. a module chain of the sort [ParticleGun -> RandomBarrier -> FullSim] would use one RNG instance for the ParticleGun, and another for FullSim and all following modules. You may find this useful if you want to change the simulation, but don't want differences to affect the particle generation. The output is equivalent to saving the output of ParticleGun in a file, and reading it again to do the simulation. Correct separation is not provided for terminate(), don't use random numbers there.");
29 setPropertyFlags(c_ParallelProcessingCertified);
32 RandomBarrierModule::~RandomBarrierModule() =
default;
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
virtual void terminate() override
This method is called at the end of the event processing.
static void barrier()
Increase random barrier.
virtual void event() override
This method is the core of the module.
virtual void initialize() override
Initialize the Module.
virtual void endRun() override
This method is called if the current run ends.
Abstract base class for different kinds of events.
Sets gRandom to an independent generator for the following modules.
virtual void beginRun() override
Called when entering a new run.