Implementation of the "linearMapping" policy. More...
#include <BasePolicies.h>
Public Types | |
| using | base_t = CheckedRangePolicy< SEED > |
| using | this_t = LinearMappingPolicy< SEED > |
| using | seed_t = typename base_t::seed_t |
| using | base_t = CheckedRangePolicy< SEED > |
| using | this_t = LinearMappingPolicy< SEED > |
| using | seed_t = typename base_t::seed_t |
Public Types inherited from rndm::details::CheckedRangePolicy< SEED > | |
| using | base_t = RandomSeedPolicyBase< SEED > |
| using | this_t = CheckedRangePolicy< SEED > |
| using | seed_t = typename base_t::seed_t |
| using | base_t = RandomSeedPolicyBase< SEED > |
| using | this_t = CheckedRangePolicy< SEED > |
| using | seed_t = typename base_t::seed_t |
Public Types inherited from rndm::details::RandomSeedPolicyBase< SEED > | |
| using | seed_t = SEED |
| type of the random seed More... | |
| using | EventData_t = NuRandomServiceHelper::EventSeedInputData |
| type of data used for event seeds More... | |
| using | seed_t = SEED |
| type of the random seed More... | |
| using | EventData_t = NuRandomServiceHelper::EventSeedInputData |
| type of data used for event seeds More... | |
Public Member Functions | |
| LinearMappingPolicy (fhicl::ParameterSet const &pset) | |
| virtual void | configure (fhicl::ParameterSet const &pset) override |
| Configure this policy. More... | |
| virtual void | print (std::ostream &out) const override |
| Prints the configuration of this policy. More... | |
| LinearMappingPolicy (fhicl::ParameterSet const &pset) | |
| virtual void | configure (fhicl::ParameterSet const &pset) override |
| Configure this policy. More... | |
| virtual void | print (std::ostream &out) const override |
| Prints the configuration of this policy. More... | |
Public Member Functions inherited from rndm::details::CheckedRangePolicy< SEED > | |
| CheckedRangePolicy (std::string policy_name, fhicl::ParameterSet const &pset) | |
| Constructor; requires the policy name. More... | |
| virtual seed_t | getSeed (SeedMasterHelper::EngineId const &id) |
| Returns the next random number. More... | |
| CheckedRangePolicy (std::string policy_name, fhicl::ParameterSet const &pset) | |
| Constructor; requires the policy name. More... | |
| virtual seed_t | getSeed (SeedMasterHelper::EngineId const &id) override |
| Returns the next random number. More... | |
Public Member Functions inherited from rndm::details::RandomSeedPolicyBase< SEED > | |
| RandomSeedPolicyBase (std::string policy_name) | |
| Constructor; requires the policy name. More... | |
| virtual | ~RandomSeedPolicyBase () |
| virtual seed_t | getEventSeed (SeedMasterHelper::EngineId const &id, EventData_t const &eventInfo) |
| Returns a random number specific to an event. More... | |
| std::string | getName () const |
| Returns the given name of the policy. More... | |
| virtual bool | yieldsUniqueSeeds () const override |
| Returns whether the returned seed should be unique. More... | |
| RandomSeedPolicyBase (std::string policy_name) | |
| Constructor; requires the policy name. More... | |
| virtual | ~RandomSeedPolicyBase () |
| virtual seed_t | getEventSeed (SeedMasterHelper::EngineId const &id, EventData_t const &eventInfo) |
| Returns a random number specific to an event. More... | |
| std::string | getName () const |
| Returns the given name of the policy. More... | |
| virtual bool | yieldsUniqueSeeds () const |
| Returns whether the returned seed should be unique. More... | |
Protected Member Functions | |
| virtual seed_t | createSeed (SeedMasterHelper::EngineId const &) override |
| Returns the next random number. More... | |
| void | static_configure (fhicl::ParameterSet const &pset) |
| virtual seed_t | createSeed (SeedMasterHelper::EngineId const &) override |
| Returns the next random number. More... | |
| void | static_configure (fhicl::ParameterSet const &pset) |
Protected Member Functions inherited from rndm::details::CheckedRangePolicy< SEED > | |
| CheckedRangePolicy (std::string policy_name) | |
| Lets the derived class to start configuration. More... | |
| virtual void | ensureRange (SeedMasterHelper::EngineId const &id, seed_t seed) const |
| Performs the range checks and complains if needed. More... | |
| void | CheckRangeConfiguration () const |
| Check that the configuration is complete. More... | |
| void | static_configure (fhicl::ParameterSet const &pset) |
| Local configuration; does not require the range config to be complete. More... | |
| CheckedRangePolicy (std::string policy_name) | |
| Lets the derived class to start configuration. More... | |
| virtual void | ensureRange (SeedMasterHelper::EngineId const &id, seed_t seed) const |
| Performs the range checks and complains if needed. More... | |
| void | CheckRangeConfiguration () const |
| Check that the configuration is complete. More... | |
| void | static_configure (fhicl::ParameterSet const &pset) |
| Local configuration; does not require the range config to be complete. More... | |
Protected Member Functions inherited from rndm::details::RandomSeedPolicyBase< SEED > | |
| virtual seed_t | createEventSeed (SeedMasterHelper::EngineId const &, EventData_t const &) |
| Extracts a seed for specified event information; returns InvalidSeed. More... | |
| virtual seed_t | createEventSeed (SeedMasterHelper::EngineId const &, EventData_t const &) |
| Extracts a seed for specified event information; returns InvalidSeed. More... | |
Protected Attributes | |
| seed_t | first_seed |
| base seed More... | |
| seed_t | next_seed |
| next seed delivered More... | |
| unsigned int | nSeedsPerJob |
Protected Attributes inherited from rndm::details::CheckedRangePolicy< SEED > | |
| RangeCheckHelper< seed_t > | range_check |
Protected Attributes inherited from rndm::details::RandomSeedPolicyBase< SEED > | |
| std::string | name |
| name of the policy More... | |
Additional Inherited Members | |
Static Public Attributes inherited from rndm::details::RandomSeedPolicyBase< SEED > | |
| static constexpr seed_t | InvalidSeed = 0 |
| An invalid seed. More... | |
Implementation of the "linearMapping" policy.
This is heavily based on CheckedRangePolicy.
Definition at line 415 of file BasePolicies.h.
| using rndm::details::LinearMappingPolicy< SEED >::base_t = CheckedRangePolicy<SEED> |
Definition at line 114 of file StandardPolicies.h.
| using rndm::details::LinearMappingPolicy< SEED >::base_t = CheckedRangePolicy<SEED> |
Definition at line 417 of file BasePolicies.h.
| using rndm::details::LinearMappingPolicy< SEED >::seed_t = typename base_t::seed_t |
Definition at line 116 of file StandardPolicies.h.
| using rndm::details::LinearMappingPolicy< SEED >::seed_t = typename base_t::seed_t |
Definition at line 419 of file BasePolicies.h.
| using rndm::details::LinearMappingPolicy< SEED >::this_t = LinearMappingPolicy<SEED> |
Definition at line 115 of file StandardPolicies.h.
| using rndm::details::LinearMappingPolicy< SEED >::this_t = LinearMappingPolicy<SEED> |
Definition at line 418 of file BasePolicies.h.
|
inline |
Configures from a parameter set
Definition at line 423 of file BasePolicies.h.
|
inline |
Configures from a parameter set
Definition at line 120 of file StandardPolicies.h.
|
inlineoverridevirtual |
Configure this policy.
| pset | the parameter set for the configuration |
Parameters:
Reimplemented from rndm::details::CheckedRangePolicy< SEED >.
Definition at line 136 of file StandardPolicies.h.
|
inlineoverridevirtual |
Configure this policy.
| pset | the parameter set for the configuration |
Parameters:
Reimplemented from rndm::details::CheckedRangePolicy< SEED >.
Definition at line 439 of file BasePolicies.h.
|
inlineoverrideprotectedvirtual |
Returns the next random number.
Implements rndm::details::RandomSeedPolicyBase< SEED >.
Definition at line 152 of file StandardPolicies.h.
|
inlineoverrideprotectedvirtual |
Returns the next random number.
Implements rndm::details::RandomSeedPolicyBase< SEED >.
Definition at line 455 of file BasePolicies.h.
|
overridevirtual |
Prints the configuration of this policy.
Reimplemented from rndm::details::CheckedRangePolicy< SEED >.
|
overridevirtual |
Prints the configuration of this policy.
Reimplemented from rndm::details::CheckedRangePolicy< SEED >.
Definition at line 495 of file BasePolicies.h.
|
protected |
|
protected |
Definition at line 465 of file BasePolicies.h.
|
protected |
base seed
Definition at line 450 of file BasePolicies.h.
|
protected |
next seed delivered
Definition at line 451 of file BasePolicies.h.
|
protected |
Definition at line 452 of file BasePolicies.h.
1.8.11