LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PolicyNames.cxx File Reference

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

#include "nurandom/RandomUtils/Providers/PolicyNames.h"
#include "cetlib_except/exception.h"
#include <algorithm>
#include <vector>
#include <string>
#include <cassert>

Go to the source code of this file.

Namespaces

 rndm::details
 

Macros

#define NURANDOM_SEED_SERVICE_POLICY(x)   #x,
 

Functions

std::vector< std::string > const & rndm::details::policyNames ()
 Returns a list of names of policies, in the same order as Policy enum. More...
 
std::string const & rndm::details::policyName (Policy policy)
 Returns the name of the specified policy. More...
 
Policy rndm::details::policyFromName (std::string const &name)
 Returns the policy with the specified name. 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
See also
nurandom/RandomUtils/Providers/PolicyLoader.h

Definition in file PolicyNames.cxx.

Macro Definition Documentation

#define NURANDOM_SEED_SERVICE_POLICY (   x)    #x,