Belle II Software development
EvtGenRandom Class Reference

A class to wrap the Pythia random number generator for use by EvtGen. More...

#include <EvtGenDecays.h>

Inheritance diagram for EvtGenRandom:

Public Member Functions

 EvtGenRandom (Pythia8::Rndm *rndmPtrIn)
 Constructor.
 
double random ()
 Return a random number.
 

Public Attributes

Pythia8::Rndm * rndmPtr
 The random number pointer.
 

Detailed Description

A class to wrap the Pythia random number generator for use by EvtGen.

Definition at line 29 of file EvtGenDecays.h.

Constructor & Destructor Documentation

◆ EvtGenRandom()

EvtGenRandom ( Pythia8::Rndm *  rndmPtrIn)
inlineexplicit

Constructor.

Definition at line 34 of file EvtGenDecays.h.

34{rndmPtr = rndmPtrIn;}
Pythia8::Rndm * rndmPtr
The random number pointer.
Definition: EvtGenDecays.h:40

Member Function Documentation

◆ random()

double random ( )
inline

Return a random number.

Definition at line 37 of file EvtGenDecays.h.

37{if (rndmPtr) return rndmPtr->flat(); else return -1.0;}

Member Data Documentation

◆ rndmPtr

Pythia8::Rndm* rndmPtr

The random number pointer.

Definition at line 40 of file EvtGenDecays.h.


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