Class to shoot random numbers given by a user-defined distribution function. More...
#include "utl/VRandomSampler.h"

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 |
Class to shoot random numbers given by a user-defined distribution function.
Major refactoring of the class
Another major refactoring of the class
Definition at line 32 of file VRandomSampler.h.
|
inlinevirtual |
Definition at line 35 of file VRandomSampler.h.
| engine utl::VRandomSampler::flatArray | ( | size | , |
| rand | |||
| ) |
|
protectedpure virtual |
Implemented in utl::RandomSamplerFromPDF, and utl::RandomSamplerFromCDF.
Referenced by shoot().
|
inline |
Method to shoot random values using a given engine by-passing the static generator.
Definition at line 38 of file VRandomSampler.h.
References MapRandom().
Referenced by ParticleInjectorNEU::ParticleInjector::GenerateAzimuth(), ParticleInjectorNEU::ParticleInjector::GenerateEnergy(), ParticleInjectorNEU::ParticleInjector::GeneratePosition(), ParticleInjectorNEU::ParticleInjector::GenerateZenith(), utl::MuonTimeModel::GetFirstAndMeanTime(), utl::MuonTimeModel::GetFirstTime(), utl::MuonTimeModel::GetLastTime(), utl::MuonTimeModel::GetMeanTime(), utl::MuonTimeModel::GetTimes(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::LateralDistributionScatteredCherenkov(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Run(), TestRandomSamplerFromCDF::TestFunction(), TestRandomSamplerFromCDF::TestMap(), TestRandomSamplerFromCDF::TestTabulatedFunction(), TestRandomSamplerFromPDF::TestTabulatedFunction(), TestRandomSamplerFromCDF::TestVectorAndNormalization(), and TestRandomSamplerFromCDF::TestVectors().
| void utl::VRandomSampler::const |
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.