CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
RandomNrCenter Class Reference

#include <RandomNrCenter.h>

Public Member Functions

void SaveEngineStatus (std::string)
 
void RestoreEngineStatus (std::string)
 
void SetEngineSeed (long int)
 
long int GetEngineSeed ()
 
void SetEngine ()
 
void ResetEngine ()
 
HepRandomEngine * GetEngine ()
 

Static Public Member Functions

static double Rngaus (double mean, double sigma)
 

Detailed Description

Definition at line 8 of file RandomNrCenter.h.

Member Function Documentation

◆ GetEngine()

HepRandomEngine * RandomNrCenter::GetEngine ( )

Definition at line 32 of file RandomNrCenter.cpp.

33{
34 return theCurrentEngine;
35}

◆ GetEngineSeed()

long int RandomNrCenter::GetEngineSeed ( )

Definition at line 19 of file RandomNrCenter.cpp.

20{
21 return HepRandom::getTheSeed();
22}

◆ ResetEngine()

void RandomNrCenter::ResetEngine ( )

Definition at line 27 of file RandomNrCenter.cpp.

28{
29 theCurrentEngine=theDefaultEngine;
30}

◆ RestoreEngineStatus()

void RandomNrCenter::RestoreEngineStatus ( std::string  s)

Definition at line 11 of file RandomNrCenter.cpp.

12{
13 HepRandom::restoreEngineStatus(s.c_str());
14}
XmlRpcServer s
Definition: HelloServer.cpp:11

Referenced by RandomCenterMessenger::SetNewValue().

◆ Rngaus()

double RandomNrCenter::Rngaus ( double  mean,
double  sigma 
)
static

Definition at line 38 of file RandomNrCenter.cpp.

39{
40 return RandGauss::shoot(mean,sigma);
41}

◆ SaveEngineStatus()

void RandomNrCenter::SaveEngineStatus ( std::string  s)

Definition at line 7 of file RandomNrCenter.cpp.

8{
9 HepRandom::saveEngineStatus(s.c_str());
10}

Referenced by RandomCenterMessenger::SetNewValue().

◆ SetEngine()

void RandomNrCenter::SetEngine ( )

Definition at line 23 of file RandomNrCenter.cpp.

24{
25}

Referenced by RandomCenterMessenger::SetNewValue().

◆ SetEngineSeed()

void RandomNrCenter::SetEngineSeed ( long int  i)

Definition at line 15 of file RandomNrCenter.cpp.

16{
17 HepRandom::setTheSeed(i,3);
18}

Referenced by RandomCenterMessenger::SetNewValue().


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