/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/G4Svc/G4Svc-00-01-52/src/RandomNrCenter.cpp

Go to the documentation of this file.
00001 #include "G4Svc/RandomNrCenter.h"
00002 #include <CLHEP/Random/Random.h>
00003 
00004 HepRandomEngine* RandomNrCenter::theDefaultEngine=HepRandom::getTheEngine();
00005 HepRandomEngine* RandomNrCenter::theCurrentEngine=HepRandom::getTheEngine();
00006 
00007 void RandomNrCenter::SaveEngineStatus(std::string s)
00008 {
00009         HepRandom::saveEngineStatus(s.c_str());
00010 }
00011 void RandomNrCenter::RestoreEngineStatus(std::string s)
00012 {
00013         HepRandom::restoreEngineStatus(s.c_str());
00014 }
00015 void RandomNrCenter::SetEngineSeed(long int i)
00016 {
00017         HepRandom::setTheSeed(i,3);
00018 }
00019 long int RandomNrCenter::GetEngineSeed()
00020 {
00021         return HepRandom::getTheSeed();
00022 }
00023 void RandomNrCenter::SetEngine()
00024 {
00025 }
00026 
00027 void RandomNrCenter::ResetEngine()
00028 {
00029         theCurrentEngine=theDefaultEngine;
00030 }
00031 
00032 HepRandomEngine* RandomNrCenter::GetEngine()
00033 {
00034         return theCurrentEngine;
00035 }
00036 
00037 #include <CLHEP/Random/RandGauss.h>
00038 double RandomNrCenter::Rngaus(double mean, double sigma)
00039 {
00040         return RandGauss::shoot(mean,sigma);
00041 }

Generated on Tue Nov 29 23:14:34 2016 for BOSS_7.0.2 by  doxygen 1.4.7