LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 838 of file NuRandomService.h.

Constructor & Destructor Documentation

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

Definition at line 840 of file NuRandomService.h.

840 : engine(e) {}
Float_t e
Definition: plot.C:34
rndm::NuRandomService::CLHEPengineSeeder::CLHEPengineSeeder ( CLHEP::HepRandomEngine *  e)
inline

Definition at line 841 of file NuRandomService.h.

841 : engine(*e) {}
Float_t e
Definition: plot.C:34

Member Function Documentation

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

Definition at line 842 of file NuRandomService.h.

References LOG_DEBUG.

843  {
844  engine.setSeed(seed, 0);
845  LOG_DEBUG("CLHEPengineSeeder")
846  << "CLHEP engine: '" << engine.name() << "'[" << ((void*) &engine)
847  << "].setSeed(" << seed << ", 0)";
848  }
long seed
Definition: chem4.cc:68
#define LOG_DEBUG(id)

Member Data Documentation

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

Definition at line 850 of file NuRandomService.h.


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