FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
EvtRootRandomEngine Class Reference
Inheritance diagram for EvtRootRandomEngine:

Public Member Functions

 EvtRootRandomEngine (int s=0)
 
double random ()
 

Public Attributes

int seed
 

Detailed Description

Definition at line 50 of file PndEvtGenDirect.cxx.

Constructor & Destructor Documentation

EvtRootRandomEngine::EvtRootRandomEngine ( int  s = 0)
inline

Definition at line 52 of file PndEvtGenDirect.cxx.

References s, and seed.

52  {
53  seed=s;
54  }
TLorentzVector s
Definition: Pnd2DStar.C:50

Member Function Documentation

double EvtRootRandomEngine::random ( )

Definition at line 59 of file PndEvtGenDirect.cxx.

References seed.

59  {
60  static TRandom3 randengine(seed);
61  return randengine.Rndm();
62 }

Member Data Documentation

int EvtRootRandomEngine::seed

Definition at line 56 of file PndEvtGenDirect.cxx.


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