#include <SimDataFormats/RandomEngine/interface/RandomEngineState.h>
Public Member Functions | |
void | clearSeedVector () |
void | clearStateVector () |
const std::string & | getLabel () const |
const std::vector< uint32_t > & | getSeed () const |
const std::vector< uint32_t > & | getState () const |
bool | operator< (RandomEngineState const &rhs) |
void | push_back_seedVector (uint32_t v) |
void | push_back_stateVector (uint32_t v) |
RandomEngineState () | |
void | reserveSeedVector (std::vector< uint32_t >::size_type n) |
void | reserveStateVector (std::vector< uint32_t >::size_type n) |
void | setLabel (const std::string &value) |
void | setSeed (const std::vector< uint32_t > &value) |
void | setState (const std::vector< uint32_t > &value) |
~RandomEngineState () | |
Private Attributes | |
std::string | label_ |
std::vector< uint32_t > | seed_ |
std::vector< uint32_t > | state_ |
Description: Holds the state of a CLHEP random number engine and the label of the module it is associated with.
Usage: This should only be used by the Random Number Generator service.
Definition at line 28 of file RandomEngineState.h.
RandomEngineState::RandomEngineState | ( | ) |
Definition at line 17 of file RandomEngineState.cc.
{ }
RandomEngineState::~RandomEngineState | ( | ) |
Definition at line 21 of file RandomEngineState.cc.
{ }
void RandomEngineState::clearSeedVector | ( | ) | [inline] |
void RandomEngineState::clearStateVector | ( | ) | [inline] |
const std::string& RandomEngineState::getLabel | ( | ) | const [inline] |
const std::vector<uint32_t>& RandomEngineState::getSeed | ( | ) | const [inline] |
const std::vector<uint32_t>& RandomEngineState::getState | ( | ) | const [inline] |
bool RandomEngineState::operator< | ( | RandomEngineState const & | rhs | ) | [inline] |
Definition at line 52 of file RandomEngineState.h.
References label_.
{ return label_ < rhs.label_; }
void RandomEngineState::push_back_seedVector | ( | uint32_t | v | ) | [inline] |
void RandomEngineState::push_back_stateVector | ( | uint32_t | v | ) | [inline] |
void RandomEngineState::reserveSeedVector | ( | std::vector< uint32_t >::size_type | n | ) | [inline] |
void RandomEngineState::reserveStateVector | ( | std::vector< uint32_t >::size_type | n | ) | [inline] |
void RandomEngineState::setLabel | ( | const std::string & | value | ) | [inline] |
Definition at line 40 of file RandomEngineState.h.
References label_, and relativeConstraints::value.
Referenced by edm::RandomEngineStates::getRandomEngineStates(), and edm::service::RandomNumberGeneratorService::readEngineState().
void RandomEngineState::setSeed | ( | const std::vector< uint32_t > & | value | ) | [inline] |
Definition at line 42 of file RandomEngineState.h.
References seed_, and relativeConstraints::value.
void RandomEngineState::setState | ( | const std::vector< uint32_t > & | value | ) | [inline] |
Definition at line 41 of file RandomEngineState.h.
References state_, and relativeConstraints::value.
std::string RandomEngineState::label_ [private] |
Definition at line 56 of file RandomEngineState.h.
Referenced by getLabel(), operator<(), and setLabel().
std::vector<uint32_t> RandomEngineState::seed_ [private] |
Definition at line 58 of file RandomEngineState.h.
Referenced by clearSeedVector(), getSeed(), push_back_seedVector(), reserveSeedVector(), and setSeed().
std::vector<uint32_t> RandomEngineState::state_ [private] |
Definition at line 57 of file RandomEngineState.h.
Referenced by clearStateVector(), getState(), push_back_stateVector(), reserveStateVector(), and setState().