LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RandomNumberGenerator.h"
Classes | |
struct | Config |
struct | ScheduleData |
Public Types | |
enum | init_t { VIA_SEED = 1, VIA_FILE, VIA_PRODUCT } |
using | base_engine_t = CLHEP::HepRandomEngine |
using | seed_t = long |
using | engine_state_t = RNGsnapshot::engine_state_t |
using | label_t = RNGsnapshot::label_t |
using | eptr_t = std::shared_ptr< base_engine_t > |
using | dict_t = std::map< label_t, eptr_t > |
using | tracker_t = std::map< label_t, init_t > |
using | kind_t = std::map< label_t, std::string > |
using | snapshot_t = std::vector< RNGsnapshot > |
using | Parameters = ServiceTable< Config > |
Public Member Functions | |
RandomNumberGenerator (Parameters const &, art::ActivityRegistry &) | |
base_engine_t & | getEngine () const |
base_engine_t & | getEngine (label_t const &engine_label) const |
Private Attributes | |
bool | engine_creation_is_okay_ {true} |
std::vector< ScheduleData > | data_ |
label_t const | restoreStateLabel_ |
std::string const | saveToFilename_ |
std::string const | restoreFromFilename_ |
unsigned const | nPrint_ |
bool const | debug_ |
Friends | |
class | EngineCreator |
class | EventProcessor |
class | RandomNumberSaver |
class | test::ConcurrentEngineRetrieval |
Definition at line 196 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::base_engine_t = CLHEP::HepRandomEngine |
Definition at line 208 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::dict_t = std::map<label_t, eptr_t> |
Definition at line 216 of file RandomNumberGenerator.h.
Definition at line 210 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::eptr_t = std::shared_ptr<base_engine_t> |
Definition at line 215 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::kind_t = std::map<label_t, std::string> |
Definition at line 218 of file RandomNumberGenerator.h.
Definition at line 214 of file RandomNumberGenerator.h.
Definition at line 231 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::seed_t = long |
Definition at line 209 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::snapshot_t = std::vector<RNGsnapshot> |
Definition at line 219 of file RandomNumberGenerator.h.
using art::RandomNumberGenerator::tracker_t = std::map<label_t, init_t> |
Definition at line 217 of file RandomNumberGenerator.h.
|
privatedelete |
art::RandomNumberGenerator::RandomNumberGenerator | ( | Parameters const & | , |
art::ActivityRegistry & | |||
) |
|
inlineprivate |
Definition at line 269 of file RandomNumberGenerator.h.
References art::ScheduleID::id().
Referenced by art::RandomNumberSaver::produce().
|
private |
|
private |
|
private |
|
inlineprivate |
Definition at line 260 of file RandomNumberGenerator.h.
base_engine_t& art::RandomNumberGenerator::getEngine | ( | ) | const |
Referenced by evgen::RadioGen::Ar42Gamma4(), evgen::RadioGen::Ar42Gamma5(), detsim::SimDriftElectrons::beginJob(), evwgh::GenieWeightCalc::Configure(), evgen::RadioGen::dirCalc(), detsim::SimWire::GenNoise(), evgen::CORSIKAGen::GetSample(), evgen::CORSIKAGen::openDBs(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), evgen::SNNueAr40CCGen::produce(), cluster::fuzzyCluster::produce(), evgen::NucleonDecay::produce(), evgen::NDKGen::produce(), cluster::HoughLineFinder::produce(), detsim::SimWire::produce(), evgen::NeutronOsc::produce(), trkf::Track3DKalman::produce(), rndm::NuRandomService::RandomNumberGeneratorSeeder(), evgen::CosmicsGen::reconfigure(), evgen::GaisserParam::Sample(), evgen::LightSource::Sample(), evgen::SingleGen::Sample(), evgen::RadioGen::samplefromth1d(), evgen::SingleGen::SampleMany(), evgen::GaisserParam::SampleOne(), evgen::RadioGen::SampleOne(), evgen::MUSUN::SampleOne(), evgen::SingleGen::SampleOne(), evgen::RadioGen::samplespectrum(), evgen::MUSUN::sampling(), evgen::NeutronOsc::SelectAnnihilationMode(), evgen::SingleGen::SelectFromHist(), and ToyOneShowerGen::ToyOneShowerGen().
base_engine_t& art::RandomNumberGenerator::getEngine | ( | label_t const & | engine_label | ) | const |
|
private |
|
private |
|
privatedelete |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by art::RandomNumberSaver::produce().
|
private |
|
private |
|
private |
|
private |
|
friend |
Definition at line 197 of file RandomNumberGenerator.h.
|
friend |
Definition at line 198 of file RandomNumberGenerator.h.
|
friend |
Definition at line 199 of file RandomNumberGenerator.h.
|
friend |
Definition at line 200 of file RandomNumberGenerator.h.
|
private |
Definition at line 302 of file RandomNumberGenerator.h.
|
private |
Definition at line 313 of file RandomNumberGenerator.h.
|
private |
Definition at line 290 of file RandomNumberGenerator.h.
|
private |
Definition at line 312 of file RandomNumberGenerator.h.
|
private |
Definition at line 309 of file RandomNumberGenerator.h.
|
private |
Definition at line 305 of file RandomNumberGenerator.h.
|
private |
Definition at line 308 of file RandomNumberGenerator.h.