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 51 of file PndEvtGenDirect.cxx.

Constructor & Destructor Documentation

EvtRootRandomEngine::EvtRootRandomEngine ( int  s = 0)
inline

Definition at line 53 of file PndEvtGenDirect.cxx.

References s, and seed.

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

Member Function Documentation

double EvtRootRandomEngine::random ( )

Definition at line 58 of file PndEvtGenDirect.cxx.

References seed.

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

Member Data Documentation

int EvtRootRandomEngine::seed

Definition at line 55 of file PndEvtGenDirect.cxx.


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