29#include <CLHEP/Random/Random.h>
33 class HepRandomEngine;
50 if (
m_hepEngine ) CLHEP::HepRandom::setTheEngine(
nullptr );
57 virtual std::unique_ptr<CLHEP::HepRandomEngine>
createEngine() = 0;
const CLHEP::HepRandomEngine * hepEngine() const
double rndm() const override
StatusCode finalize() override
CLHEP::HepRandomEngine * hepEngine()
virtual std::unique_ptr< CLHEP::HepRandomEngine > createEngine()=0
BaseEngine(const std::string &name, ISvcLocator *loc)
std::unique_ptr< CLHEP::HepRandomEngine > m_hepEngine
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Random Generator engine definition.
StatusCode finalize() override
const std::string & name() const override
Retrieve name of the service.
This class is used for returning status codes from appropriate routines.