Public Member Functions | Protected Attributes | List of all members
rndm::NuRandomService::CLHEPengineSeeder Class Reference

Seeder_t functor setting the seed of a CLHEP::HepRandomEngine engine (untested!) More...

#include <NuRandomService.h>

Public Member Functions

 CLHEPengineSeeder (CLHEP::HepRandomEngine &e)
 
 CLHEPengineSeeder (CLHEP::HepRandomEngine *e)
 
void operator() (EngineId const &, seed_t seed)
 

Protected Attributes

CLHEP::HepRandomEngine & engine
 

Detailed Description

Seeder_t functor setting the seed of a CLHEP::HepRandomEngine engine (untested!)

Definition at line 853 of file NuRandomService.h.

Constructor & Destructor Documentation

rndm::NuRandomService::CLHEPengineSeeder::CLHEPengineSeeder ( CLHEP::HepRandomEngine &  e)
inline

Definition at line 855 of file NuRandomService.h.

855 : engine(e) {}
const double e
rndm::NuRandomService::CLHEPengineSeeder::CLHEPengineSeeder ( CLHEP::HepRandomEngine *  e)
inline

Definition at line 856 of file NuRandomService.h.

856 : engine(*e) {}
const double e

Member Function Documentation

void rndm::NuRandomService::CLHEPengineSeeder::operator() ( EngineId const &  ,
seed_t  seed 
)
inline

Definition at line 857 of file NuRandomService.h.

858  {
859  engine.setSeed(seed, 0);
860  MF_LOG_DEBUG("CLHEPengineSeeder")
861  << "CLHEP engine: '" << engine.name() << "'[" << ((void*) &engine)
862  << "].setSeed(" << seed << ", 0)";
863  }
#define MF_LOG_DEBUG(id)

Member Data Documentation

CLHEP::HepRandomEngine& rndm::NuRandomService::CLHEPengineSeeder::engine
protected

Definition at line 865 of file NuRandomService.h.


The documentation for this class was generated from the following file: