MarlinMT  0.1.0
marlinmt::RandomSeedExtension Class Reference

RandomSeedExtension class Event extension providing access to random seeds. More...

#include <EventExtensions.h>

Public Types

using RandomSeedMap = std::unique_ptr< RandomSeedManager::RandomSeedMap >
 
using RandomSeedType = RandomSeedManager::SeedType
 

Public Member Functions

 ~RandomSeedExtension ()=default
 
 RandomSeedExtension ()=delete
 
 RandomSeedExtension (const RandomSeedExtension &)=delete
 
RandomSeedExtensionoperator= (const RandomSeedExtension &)=delete
 
 RandomSeedExtension (RandomSeedMap seeds)
 Constructor. More...
 
RandomSeedType randomSeed (const Processor *const processor) const
 Get the random seed for a given processor. More...
 

Private Attributes

RandomSeedMap _randomSeeds {nullptr}
 The random seed map for the current event. More...
 

Detailed Description

RandomSeedExtension class Event extension providing access to random seeds.

Definition at line 77 of file EventExtensions.h.

Member Typedef Documentation

◆ RandomSeedMap

◆ RandomSeedType

Constructor & Destructor Documentation

◆ ~RandomSeedExtension()

marlinmt::RandomSeedExtension::~RandomSeedExtension ( )
default

◆ RandomSeedExtension() [1/3]

marlinmt::RandomSeedExtension::RandomSeedExtension ( )
delete

◆ RandomSeedExtension() [2/3]

marlinmt::RandomSeedExtension::RandomSeedExtension ( const RandomSeedExtension )
delete

◆ RandomSeedExtension() [3/3]

marlinmt::RandomSeedExtension::RandomSeedExtension ( RandomSeedMap  seeds)

Constructor.

Parameters
seedsthe random seed set for the current event

Definition at line 8 of file EventExtensions.cc.

Member Function Documentation

◆ operator=()

RandomSeedExtension& marlinmt::RandomSeedExtension::operator= ( const RandomSeedExtension )
delete

◆ randomSeed()

RandomSeedExtension::RandomSeedType marlinmt::RandomSeedExtension::randomSeed ( const Processor *const  processor) const

Get the random seed for a given processor.

Parameters
processorthe processor pointer

Definition at line 15 of file EventExtensions.cc.

References _randomSeeds, and marlinmt::Component::name().

Member Data Documentation

◆ _randomSeeds

RandomSeedMap marlinmt::RandomSeedExtension::_randomSeeds {nullptr}
private

The random seed map for the current event.

Definition at line 105 of file EventExtensions.h.

Referenced by randomSeed().


The documentation for this class was generated from the following files: