ATLAS Offline Software
Loading...
Searching...
No Matches
ATHRNG Namespace Reference

Classes

class  RNGWrapper
 A wrapper class for event-slot-local random engines. More...

Functions

size_t calculateSeedMC16 (const std::string &algName, uint64_t ev, uint64_t run, uint32_t offset=0)
 Helper methods.
size_t calculateSeedMC20 (const std::string &algName, uint64_t ev, uint64_t run)
 Set the random seed using a string (e.g.
void calculateSeedsMC21 (long *seeds, const std::string &algName, uint64_t ev, uint64_t run, uint64_t offset=0)
 Set the random seed using a string (e.g.
long calculateSeedsPython (const std::string &algName, uint64_t ev, uint64_t run, uint64_t offset=0)

Function Documentation

◆ calculateSeedMC16()

size_t ATHRNG::calculateSeedMC16 ( const std::string & algName,
uint64_t ev,
uint64_t run,
uint32_t offset = 0 )

Helper methods.

Set the random seed using a string (e.g.

Set the random seed using a string (e.g. algorithm name) and the current slot, event, and run numbers and an optional offset. - MC16 Legacy Version attempting to reproduce seeds from thread-unsafe random number services

algorithm name) and the current slot, event, and run numbers and an optional offset. - MC16 Legacy Version attempting to reproduce seeds from thread-unsafe random number services

Definition at line 15 of file RNGWrapper.cxx.

◆ calculateSeedMC20()

size_t ATHRNG::calculateSeedMC20 ( const std::string & algName,
uint64_t ev,
uint64_t run )

Set the random seed using a string (e.g.

algorithm name) and the current slot, event, and run numbers. MC20 seeding algorithm

Definition at line 26 of file RNGWrapper.cxx.

◆ calculateSeedsMC21()

void ATHRNG::calculateSeedsMC21 ( long * seeds,
const std::string & algName,
uint64_t ev,
uint64_t run,
uint64_t offset = 0 )

Set the random seed using a string (e.g.

algorithm name) and the current slot, event, and run numbers. MC21 seeding algorithm

Definition at line 37 of file RNGWrapper.cxx.

◆ calculateSeedsPython()

long ATHRNG::calculateSeedsPython ( const std::string & algName,
uint64_t ev,
uint64_t run,
uint64_t offset = 0 )

Definition at line 63 of file RNGWrapper.cxx.