test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
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 27 of file RandomEngineState.h.

Constructor & Destructor Documentation

RandomEngineState::RandomEngineState ( )

Definition at line 16 of file RandomEngineState.cc.

17 {
18 }
RandomEngineState::~RandomEngineState ( )

Definition at line 20 of file RandomEngineState.cc.

21 {
22 }

Member Function Documentation

void RandomEngineState::clearSeedVector ( )
inline

Definition at line 43 of file RandomEngineState.h.

References seed_.

43 { seed_.clear(); }
std::vector< uint32_t > seed_
void RandomEngineState::clearStateVector ( )
inline

Definition at line 47 of file RandomEngineState.h.

References state_.

47 { state_.clear(); }
std::vector< uint32_t > state_
const std::string& RandomEngineState::getLabel ( ) const
inline

Definition at line 35 of file RandomEngineState.h.

References label_.

35 { return label_; }
const std::vector<uint32_t>& RandomEngineState::getSeed ( ) const
inline

Definition at line 37 of file RandomEngineState.h.

References seed_.

37 { return seed_; }
std::vector< uint32_t > seed_
const std::vector<uint32_t>& RandomEngineState::getState ( ) const
inline

Definition at line 36 of file RandomEngineState.h.

References state_.

36 { return state_; }
std::vector< uint32_t > state_
bool RandomEngineState::operator< ( RandomEngineState const &  rhs)
inline

Definition at line 51 of file RandomEngineState.h.

References label_.

51 { return label_ < rhs.label_; }
void RandomEngineState::push_back_seedVector ( uint32_t  v)
inline

Definition at line 45 of file RandomEngineState.h.

References seed_.

45 { seed_.push_back(v); }
std::vector< uint32_t > seed_
void RandomEngineState::push_back_stateVector ( uint32_t  v)
inline

Definition at line 49 of file RandomEngineState.h.

References state_.

49 { state_.push_back(v); }
std::vector< uint32_t > state_
void RandomEngineState::reserveSeedVector ( std::vector< uint32_t >::size_type  n)
inline

Definition at line 44 of file RandomEngineState.h.

References seed_.

44 { seed_.reserve(n); }
std::vector< uint32_t > seed_
void RandomEngineState::reserveStateVector ( std::vector< uint32_t >::size_type  n)
inline

Definition at line 48 of file RandomEngineState.h.

References state_.

48 { state_.reserve(n); }
std::vector< uint32_t > state_
void RandomEngineState::setLabel ( const std::string &  value)
inline
void RandomEngineState::setSeed ( const std::vector< uint32_t > &  value)
inline

Definition at line 41 of file RandomEngineState.h.

References seed_, and relativeConstraints::value.

41 { seed_ = value; }
std::vector< uint32_t > seed_
void RandomEngineState::setState ( const std::vector< uint32_t > &  value)
inline

Definition at line 40 of file RandomEngineState.h.

References state_, and relativeConstraints::value.

40 { state_ = value; }
std::vector< uint32_t > state_

Member Data Documentation

std::string RandomEngineState::label_
private
std::vector<uint32_t> RandomEngineState::seed_
private
std::vector<uint32_t> RandomEngineState::state_
private