CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RandomEngineState Class Reference

#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) const
 
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_
 

Detailed Description

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 26 of file RandomEngineState.h.

Constructor & Destructor Documentation

◆ RandomEngineState()

RandomEngineState::RandomEngineState ( )

Definition at line 15 of file RandomEngineState.cc.

15 {}

◆ ~RandomEngineState()

RandomEngineState::~RandomEngineState ( )

Definition at line 17 of file RandomEngineState.cc.

17 {}

Member Function Documentation

◆ clearSeedVector()

void RandomEngineState::clearSeedVector ( )
inline

Definition at line 40 of file RandomEngineState.h.

40 { seed_.clear(); }

References seed_.

◆ clearStateVector()

void RandomEngineState::clearStateVector ( )
inline

Definition at line 44 of file RandomEngineState.h.

44 { state_.clear(); }

References state_.

◆ getLabel()

const std::string& RandomEngineState::getLabel ( ) const
inline

Definition at line 32 of file RandomEngineState.h.

32 { return label_; }

References label_.

◆ getSeed()

const std::vector<uint32_t>& RandomEngineState::getSeed ( ) const
inline

Definition at line 34 of file RandomEngineState.h.

34 { return seed_; }

References seed_.

◆ getState()

const std::vector<uint32_t>& RandomEngineState::getState ( ) const
inline

Definition at line 33 of file RandomEngineState.h.

33 { return state_; }

References state_.

◆ operator<()

bool RandomEngineState::operator< ( RandomEngineState const &  rhs) const
inline

Definition at line 48 of file RandomEngineState.h.

48 { return label_ < rhs.label_; }

References label_.

◆ push_back_seedVector()

void RandomEngineState::push_back_seedVector ( uint32_t  v)
inline

Definition at line 42 of file RandomEngineState.h.

42 { seed_.push_back(v); }

References seed_, and findQualityFiles::v.

◆ push_back_stateVector()

void RandomEngineState::push_back_stateVector ( uint32_t  v)
inline

Definition at line 46 of file RandomEngineState.h.

46 { state_.push_back(v); }

References state_, and findQualityFiles::v.

◆ reserveSeedVector()

void RandomEngineState::reserveSeedVector ( std::vector< uint32_t >::size_type  n)
inline

Definition at line 41 of file RandomEngineState.h.

41 { seed_.reserve(n); }

References dqmiodumpmetadata::n, and seed_.

◆ reserveStateVector()

void RandomEngineState::reserveStateVector ( std::vector< uint32_t >::size_type  n)
inline

Definition at line 45 of file RandomEngineState.h.

45 { state_.reserve(n); }

References dqmiodumpmetadata::n, and state_.

◆ setLabel()

void RandomEngineState::setLabel ( const std::string &  value)
inline

◆ setSeed()

void RandomEngineState::setSeed ( const std::vector< uint32_t > &  value)
inline

Definition at line 38 of file RandomEngineState.h.

38 { seed_ = value; }

References seed_, and relativeConstraints::value.

◆ setState()

void RandomEngineState::setState ( const std::vector< uint32_t > &  value)
inline

Definition at line 37 of file RandomEngineState.h.

37 { state_ = value; }

References state_, and relativeConstraints::value.

Member Data Documentation

◆ label_

std::string RandomEngineState::label_
private

◆ seed_

std::vector<uint32_t> RandomEngineState::seed_
private

◆ state_

std::vector<uint32_t> RandomEngineState::state_
private
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
RandomEngineState::label_
std::string label_
Definition: RandomEngineState.h:51
findQualityFiles.v
v
Definition: findQualityFiles.py:179
RandomEngineState::seed_
std::vector< uint32_t > seed_
Definition: RandomEngineState.h:53
RandomEngineState::state_
std::vector< uint32_t > state_
Definition: RandomEngineState.h:52
relativeConstraints.value
value
Definition: relativeConstraints.py:53