herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::EvtGenRandom Class Reference

The EvtGenRamdom class is a wrapper around the RandomGenerator class of ThePEG so that when running Herwig with EvtGen the same random number generator is used for both. More...

#include <EvtGenRandom.h>

Inheritance diagram for Herwig::EvtGenRandom:

Public Member Functions

 EvtGenRandom (Ptr< RandomGenerator >::pointer rand)
 The Constructor.
 
double random ()
 Member to return the random number.
 
virtual ~EvtGenRandom ()
 Destructor.
 

Private Attributes

Ptr< RandomGenerator >::pointer _rand
 The pointer to the random number generator.
 

Detailed Description

The EvtGenRamdom class is a wrapper around the RandomGenerator class of ThePEG so that when running Herwig with EvtGen the same random number generator is used for both.

Definition at line 26 of file EvtGenRandom.h.

Constructor & Destructor Documentation

◆ EvtGenRandom()

Herwig::EvtGenRandom::EvtGenRandom ( Ptr< RandomGenerator >::pointer  rand)
inline

The Constructor.

Parameters
randPointer to the random number generator

Definition at line 34 of file EvtGenRandom.h.

References _rand.

◆ ~EvtGenRandom()

virtual Herwig::EvtGenRandom::~EvtGenRandom ( )
inlinevirtual

Destructor.

Definition at line 44 of file EvtGenRandom.h.

Member Function Documentation

◆ random()

double Herwig::EvtGenRandom::random ( )
inline

Member to return the random number.

Definition at line 39 of file EvtGenRandom.h.

References _rand.

Member Data Documentation

◆ _rand

Ptr<RandomGenerator>::pointer Herwig::EvtGenRandom::_rand
private

The pointer to the random number generator.

Definition at line 51 of file EvtGenRandom.h.

Referenced by EvtGenRandom(), and random().


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