BOSS 7.1.2
BESIII Offline Software System
|
#include <BesRndmGenSvc.h>
Public Types | |
typedef std::map< std::string, CLHEP::RanluxEngine * > | engineMap |
CLHEP engines typedefs: | |
typedef engineMap::iterator | engineIter |
typedef engineMap::const_iterator | engineConstIter |
typedef engineMap::value_type | engineValType |
Public Member Functions | |
CLHEP::HepRandomEngine * | GetEngine (const std::string &StreamName) |
Interface to the CLHEP engine. | |
void | CreateStream (long seed, const std::string &StreamName) |
engineConstIter | begin (void) const |
engineConstIter | end (void) const |
unsigned int | number_of_streams (void) const |
void | setGenseed (long i) |
long | getGenseed () |
void | print (const std::string &StreamName) |
Print methods. | |
void | print (void) |
CLHEP::HepRandomEngine * | setOnDefinedSeeds (int EventNumber, const std::string &StreamName) |
set the seeds for an engine. First param will usually be the event number | |
StatusCode | initialize () |
Gaudi Service Implementation. | |
StatusCode | finalize () |
void | handle (const Incident &) |
IIncidentListener implementation. Handles EndEvent incident. | |
BesRndmGenSvc (const std::string &name, ISvcLocator *svc) | |
Standard Constructor. | |
virtual | ~BesRndmGenSvc () |
Standard Destructor. | |
Friends | |
class | SvcFactory< BesRndmGenSvc > |
Definition at line 34 of file BesRndmGenSvc.h.
engineMap::const_iterator BesRndmGenSvc::engineConstIter |
Definition at line 49 of file BesRndmGenSvc.h.
engineMap::iterator BesRndmGenSvc::engineIter |
Definition at line 48 of file BesRndmGenSvc.h.
std::map<std::string, CLHEP::RanluxEngine*> BesRndmGenSvc::engineMap |
CLHEP engines typedefs:
Definition at line 47 of file BesRndmGenSvc.h.
engineMap::value_type BesRndmGenSvc::engineValType |
Definition at line 50 of file BesRndmGenSvc.h.
BesRndmGenSvc::BesRndmGenSvc | ( | const std::string & | name, |
ISvcLocator * | svc ) |
Standard Constructor.
Definition at line 42 of file BesRndmGenSvc.cxx.
|
virtual |
|
inline |
Definition at line 128 of file BesRndmGenSvc.h.
Referenced by handle(), and initialize().
void BesRndmGenSvc::CreateStream | ( | long | seed, |
const std::string & | StreamName ) |
Definition at line 276 of file BesRndmGenSvc.cxx.
Referenced by initialize().
|
inline |
Definition at line 132 of file BesRndmGenSvc.h.
Referenced by handle(), and initialize().
StatusCode BesRndmGenSvc::finalize | ( | ) |
Definition at line 254 of file BesRndmGenSvc.cxx.
CLHEP::HepRandomEngine * BesRndmGenSvc::GetEngine | ( | const std::string & | StreamName | ) |
Interface to the CLHEP engine.
Definition at line 262 of file BesRndmGenSvc.cxx.
Referenced by handle(), and initialize().
|
inline |
Definition at line 58 of file BesRndmGenSvc.h.
void BesRndmGenSvc::handle | ( | const Incident & | inc | ) |
IIncidentListener implementation. Handles EndEvent incident.
Definition at line 209 of file BesRndmGenSvc.cxx.
StatusCode BesRndmGenSvc::initialize | ( | ) |
Gaudi Service Implementation.
Incident Service
Definition at line 105 of file BesRndmGenSvc.cxx.
|
inline |
Definition at line 136 of file BesRndmGenSvc.h.
Referenced by initialize().
void BesRndmGenSvc::print | ( | const std::string & | StreamName | ) |
Print methods.
Definition at line 330 of file BesRndmGenSvc.cxx.
void BesRndmGenSvc::print | ( | void | ) |
Definition at line 347 of file BesRndmGenSvc.cxx.
Referenced by print().
|
inline |
Definition at line 57 of file BesRndmGenSvc.h.
CLHEP::HepRandomEngine * BesRndmGenSvc::setOnDefinedSeeds | ( | int | EventNumber, |
const std::string & | StreamName ) |
set the seeds for an engine. First param will usually be the event number
Definition at line 353 of file BesRndmGenSvc.cxx.
|
friend |
Definition at line 113 of file BesRndmGenSvc.h.