CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
RandomNrCenter.cpp
Go to the documentation of this file.
2#include <CLHEP/Random/Random.h>
3
4HepRandomEngine* RandomNrCenter::theDefaultEngine=HepRandom::getTheEngine();
5HepRandomEngine* RandomNrCenter::theCurrentEngine=HepRandom::getTheEngine();
6
8{
9 HepRandom::saveEngineStatus(s.c_str());
10}
12{
13 HepRandom::restoreEngineStatus(s.c_str());
14}
16{
17 HepRandom::setTheSeed(i,3);
18}
20{
21 return HepRandom::getTheSeed();
22}
24{
25}
26
28{
29 theCurrentEngine=theDefaultEngine;
30}
31
32HepRandomEngine* RandomNrCenter::GetEngine()
33{
34 return theCurrentEngine;
35}
36
37#include <CLHEP/Random/RandGauss.h>
38double RandomNrCenter::Rngaus(double mean, double sigma)
39{
40 return RandGauss::shoot(mean,sigma);
41}
XmlRpcServer s
Definition: HelloServer.cpp:11
static double Rngaus(double mean, double sigma)
long int GetEngineSeed()
HepRandomEngine * GetEngine()
void SaveEngineStatus(std::string)
void SetEngineSeed(long int)
void RestoreEngineStatus(std::string)