LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
evgen::clhep_random Class Reference

Wrapper functor for a standard random number generator. More...

Inheritance diagram for evgen::clhep_random:

Public Member Functions

 clhep_random (CLHEP::HepRandomEngine &gen)
 Constructor. More...
 
virtual double operator() ()
 Main operator. More...
 
virtual ~clhep_random ()
 

Public Attributes

CLHEP::HepRandomEngine & m_generator
 
CLHEP::RandFlat m_rand_flat
 

Detailed Description

Wrapper functor for a standard random number generator.

Definition at line 50 of file Decay0Gen_module.cc.

Constructor & Destructor Documentation

evgen::clhep_random::clhep_random ( CLHEP::HepRandomEngine &  gen)
inline

Constructor.

Definition at line 53 of file Decay0Gen_module.cc.

53 : m_generator(gen), m_rand_flat(gen) {}
CLHEP::RandFlat m_rand_flat
CLHEP::HepRandomEngine & m_generator
virtual evgen::clhep_random::~clhep_random ( )
inlinevirtual

Definition at line 63 of file Decay0Gen_module.cc.

63 {};

Member Function Documentation

virtual double evgen::clhep_random::operator() ( )
inlinevirtual

Main operator.

Definition at line 56 of file Decay0Gen_module.cc.

57  {
58  double v = m_rand_flat.fire(0., 1.);
59  return v;
60  }
CLHEP::RandFlat m_rand_flat

Member Data Documentation

CLHEP::HepRandomEngine& evgen::clhep_random::m_generator

Definition at line 61 of file Decay0Gen_module.cc.

CLHEP::RandFlat evgen::clhep_random::m_rand_flat

Definition at line 62 of file Decay0Gen_module.cc.


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