LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PolicyFactory.h File Reference

Helper to instantiate a random number policy class. More...

#include "nurandom/RandomUtils/Providers/RandomSeedPolicyBase.h"
#include "nurandom/RandomUtils/Providers/PolicyNames.h"
#include "nurandom/RandomUtils/Providers/PoliciesFwd.h"
#include "fhiclcpp/ParameterSet.h"
#include "cetlib_except/exception.h"
#include <memory>
#include <string>

Go to the source code of this file.

Classes

struct  rndm::details::PolicyStruct_t< SEED >
 

Namespaces

 rndm::details
 

Functions

template<typename SEED >
PolicyStruct_t< SEED > rndm::details::makeRandomSeedPolicy (fhicl::ParameterSet const &config)
 Constructs and returns a RandomSeedPolicyBase based on config. More...
 

Detailed Description

Helper to instantiate a random number policy class.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
20210809

This is the random policy "factory", except that it does work very poorly as a factory (no automatic policy discovery, all policies must be linked in). As proven by the need for PoliciesFwd.h header.

Definition in file PolicyFactory.h.