ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Athena_test::RNG Struct Reference

Generator compatible with the STL RandomNumberGenerator. More...

#include <random.h>

Collaboration diagram for Athena_test::RNG:

Public Member Functions

 RNG ()
 
int operator() (int n)
 

Public Attributes

uint32_t seed
 

Detailed Description

Generator compatible with the STL RandomNumberGenerator.

Definition at line 68 of file random.h.

Constructor & Destructor Documentation

◆ RNG()

Athena_test::RNG::RNG ( )
inline

Definition at line 70 of file random.h.

70 : seed(1) {}

Member Function Documentation

◆ operator()()

int Athena_test::RNG::operator() ( int  n)
inline

Definition at line 71 of file random.h.

71 { return randi_seed (seed, n); }

Member Data Documentation

◆ seed

uint32_t Athena_test::RNG::seed

Definition at line 72 of file random.h.


The documentation for this struct was generated from the following file:
Athena_test::randi_seed
int randi_seed(uint32_t &seed, int rmax, int rmin=0)
Generate an integer random number between rmin and rmax.
Definition: random.h:61
beamspotman.n
n
Definition: beamspotman.py:731
Athena_test::RNG::seed
uint32_t seed
Definition: random.h:72