BOSS 7.0.2
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 ()
 
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)
 
static double Rngaus (double mean, double sigma)
 

Detailed Description

Member Function Documentation

◆ GetEngine() [1/2]

HepRandomEngine * RandomNrCenter::GetEngine ( )

Definition at line 32 of file RandomNrCenter.cpp.

33{
34 return theCurrentEngine;
35}

◆ GetEngine() [2/2]

HepRandomEngine * RandomNrCenter::GetEngine ( )

◆ GetEngineSeed() [1/2]

long int RandomNrCenter::GetEngineSeed ( )

Definition at line 19 of file RandomNrCenter.cpp.

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

◆ GetEngineSeed() [2/2]

long int RandomNrCenter::GetEngineSeed ( )

◆ ResetEngine() [1/2]

void RandomNrCenter::ResetEngine ( )

Definition at line 27 of file RandomNrCenter.cpp.

28{
29 theCurrentEngine=theDefaultEngine;
30}

◆ ResetEngine() [2/2]

void RandomNrCenter::ResetEngine ( )

◆ RestoreEngineStatus() [1/2]

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().

◆ RestoreEngineStatus() [2/2]

void RandomNrCenter::RestoreEngineStatus ( std::string  )

◆ Rngaus() [1/2]

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

Definition at line 38 of file RandomNrCenter.cpp.

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

◆ Rngaus() [2/2]

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

◆ SaveEngineStatus() [1/2]

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().

◆ SaveEngineStatus() [2/2]

void RandomNrCenter::SaveEngineStatus ( std::string  )

◆ SetEngine() [1/2]

void RandomNrCenter::SetEngine ( )

Definition at line 23 of file RandomNrCenter.cpp.

24{
25}

Referenced by RandomCenterMessenger::SetNewValue().

◆ SetEngine() [2/2]

void RandomNrCenter::SetEngine ( )

◆ SetEngineSeed() [1/2]

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().

◆ SetEngineSeed() [2/2]

void RandomNrCenter::SetEngineSeed ( long int  )

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