LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 1158 of file NuRandomService.h.

Constructor & Destructor Documentation

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

Definition at line 1160 of file NuRandomService.h.

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

Definition at line 1161 of file NuRandomService.h.

1161 : engine(*e) {}
Float_t e
Definition: plot.C:35

Member Function Documentation

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

Definition at line 1162 of file NuRandomService.h.

References MF_LOG_DEBUG.

1163  {
1164  engine.setSeed(seed, 0);
1165  MF_LOG_DEBUG("CLHEPengineSeeder")
1166  << "CLHEP engine: '" << engine.name() << "'[" << ((void*) &engine)
1167  << "].setSeed(" << seed << ", 0)";
1168  }
long seed
Definition: chem4.cc:67
#define MF_LOG_DEBUG(id)

Member Data Documentation

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

Definition at line 1170 of file NuRandomService.h.


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