MCBooster  1.0.1
Tool to generate MC phase space samples in parallel.
MCBooster::RandGen Struct Reference

Fill a given vector with random numbers between 0 and 1. More...

#include <RandGen.h>

+ Collaboration diagram for MCBooster::RandGen:

Public Member Functions

 RandGen (const GInt_t _ndaughters, GReal_t *_rnd)
 RandGen ctor. More...
 
__host__ __device__ GUInt_t hash (GUInt_t a)
 hash function. More...
 
__host__ __device__ void operator() (GLong_t idx)
 operator(). More...
 

Public Attributes

GInt_t fNDaughters
 Number of daughter particles. More...
 
GReal_tfRndNumbers
 Pointer to the array of random numbers. More...
 

Detailed Description

Definition at line 40 of file RandGen.h.

Constructor & Destructor Documentation

MCBooster::RandGen::RandGen ( const GInt_t  _ndaughters,
GReal_t _rnd 
)
inline

Takes the number of daughter particles and the address of the array of to be filled with random numbers

Definition at line 48 of file RandGen.h.

Member Function Documentation

__host__ __device__ GUInt_t MCBooster::RandGen::hash ( GUInt_t  a)
inline

Generate hashs to be used in random number generation initialization

Definition at line 56 of file RandGen.h.

Referenced by operator()().

+ Here is the caller graph for this function:

__host__ __device__ void MCBooster::RandGen::operator() ( GLong_t  idx)
inline

Calculate and set random numbers. It takes the index of the event.

Definition at line 70 of file RandGen.h.

References hash().

+ Here is the call graph for this function:

Member Data Documentation

GInt_t MCBooster::RandGen::fNDaughters

Definition at line 42 of file RandGen.h.

GReal_t* MCBooster::RandGen::fRndNumbers

Definition at line 43 of file RandGen.h.


The documentation for this struct was generated from the following file: