MINT2
Public Member Functions | Private Attributes | List of all members
TGenPhaseSpaceWithRnd Class Reference

#include <TGenPhaseSpaceWithRnd.h>

Inheritance diagram for TGenPhaseSpaceWithRnd:

Public Member Functions

 TGenPhaseSpaceWithRnd (TRandom *rnd=gRandom)
 
void setRandom (TRandom *rnd=gRandom)
 
Double_t Generate ()
 

Private Attributes

TRandom * _rnd
 

Detailed Description

Definition at line 7 of file TGenPhaseSpaceWithRnd.h.

Constructor & Destructor Documentation

◆ TGenPhaseSpaceWithRnd()

TGenPhaseSpaceWithRnd::TGenPhaseSpaceWithRnd ( TRandom *  rnd = gRandom)
inline

Definition at line 10 of file TGenPhaseSpaceWithRnd.h.

10 : _rnd(rnd){}

Member Function Documentation

◆ Generate()

Double_t TGenPhaseSpaceWithRnd::Generate ( )
inline

Definition at line 12 of file TGenPhaseSpaceWithRnd.h.

12  {
13  TRandom* oldGRandom = gRandom;
14  gRandom = _rnd;
15  Double_t returnVal = TGenPhaseSpace::Generate();
16  gRandom = oldGRandom;
17  return returnVal;
18  }

◆ setRandom()

void TGenPhaseSpaceWithRnd::setRandom ( TRandom *  rnd = gRandom)
inline

Definition at line 11 of file TGenPhaseSpaceWithRnd.h.

11 {_rnd = rnd;}

Member Data Documentation

◆ _rnd

TRandom* TGenPhaseSpaceWithRnd::_rnd
private

Definition at line 8 of file TGenPhaseSpaceWithRnd.h.


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