15 #ifndef HEPRNDM_HEPRNDMBASEENGINE_H 16 #define HEPRNDM_HEPRNDMBASEENGINE_H 1 19 #include "CLHEP/Random/Random.h" 25 class HepRandomEngine;
39 const CLHEP::HepRandomEngine*
hepEngine()
const {
return m_hepEngine.
get(); }
41 double rndm()
const override {
return m_hepEngine->flat(); }
45 if ( m_hepEngine ) CLHEP::HepRandom::setTheEngine(
nullptr );
55 #endif // HEPRNDM_HEPRNDMBASEENGINE_H The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
StatusCode finalize() override
StatusCode finalize() override
std::unique_ptr< CLHEP::HepRandomEngine > m_hepEngine
double rndm() const override
This class is used for returning status codes from appropriate routines.
const CLHEP::HepRandomEngine * hepEngine() const
BaseEngine(const std::string &name, ISvcLocator *loc)
Random Generator engine definition.
CLHEP::HepRandomEngine * hepEngine()