List of all members | Public Member Functions | Public Attributes | Protected Member Functions
utl::VRandomSampler Class Referenceabstract

Class to shoot random numbers given by a user-defined distribution function. More...

#include "utl/VRandomSampler.h"

Inheritance diagram for utl::VRandomSampler:
Inheritance graph
[legend]

Public Member Functions

engine flatArray (size, rand)
 
double shoot (HepEngine &engine) const
 Method to shoot random values using a given engine by-passing the static generator. More...
 
virtual ~VRandomSampler ()
 

Public Attributes

void const
 Method to shoot random values using a given engine by-passing the static generator. More...
 
 vect [i] = MapRandom(rand[i])
 

Protected Member Functions

virtual double MapRandom (const double rand) const =0
 

Detailed Description

Class to shoot random numbers given by a user-defined distribution function.

Author
Javier Gonzalez
Date
22 Oct 2004

Major refactoring of the class

Author
Ralf Ulrich
Date
27 Aug 2008

Another major refactoring of the class

Author
Darko Veberic
Date
27 Aug 2009

Definition at line 32 of file VRandomSampler.h.

Constructor & Destructor Documentation

virtual utl::VRandomSampler::~VRandomSampler ( )
inlinevirtual

Definition at line 35 of file VRandomSampler.h.

Member Function Documentation

engine utl::VRandomSampler::flatArray ( size  ,
rand   
)
virtual double utl::VRandomSampler::MapRandom ( const double  rand) const
protectedpure virtual

Implemented in utl::RandomSamplerFromPDF, and utl::RandomSamplerFromCDF.

Referenced by shoot().

double utl::VRandomSampler::shoot ( HepEngine engine) const
inline

Member Data Documentation

void utl::VRandomSampler::const
Initial value:
{
double rand[size]

Method to shoot random values using a given engine by-passing the static generator.

Definition at line 45 of file VRandomSampler.h.

utl::VRandomSampler::vect[i] = MapRandom(rand[i])

Definition at line 49 of file VRandomSampler.h.


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

, generated on Tue Sep 26 2023.