CMS 3D CMS Logo

RandomEngineState.h
Go to the documentation of this file.
1 #ifndef RandomEngine_RandomEngineState_h
2 #define RandomEngine_RandomEngineState_h
3 // -*- C++ -*-
4 //
5 // Package: RandomEngine
6 // Class : RandomEngineState
7 //
17 //
18 // Original Author: W. David Dagenhart, Fermilab
19 // Created: Tue Oct 3 09:56:36 CDT 2006
20 //
21 
22 #include <vector>
23 #include <string>
24 #include <cstdint>
25 
27 public:
29 
31 
32  const std::string& getLabel() const { return label_; }
33  const std::vector<uint32_t>& getState() const { return state_; }
34  const std::vector<uint32_t>& getSeed() const { return seed_; }
35 
36  void setLabel(const std::string& value) { label_ = value; }
37  void setState(const std::vector<uint32_t>& value) { state_ = value; }
38  void setSeed(const std::vector<uint32_t>& value) { seed_ = value; }
39 
40  void clearSeedVector() { seed_.clear(); }
42  void push_back_seedVector(uint32_t v) { seed_.push_back(v); }
43 
44  void clearStateVector() { state_.clear(); }
46  void push_back_stateVector(uint32_t v) { state_.push_back(v); }
47 
48  bool operator<(RandomEngineState const& rhs) const { return label_ < rhs.label_; }
49 
50 private:
52  std::vector<uint32_t> state_;
53  std::vector<uint32_t> seed_;
54 };
55 
56 #endif
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
RandomEngineState::getLabel
const std::string & getLabel() const
Definition: RandomEngineState.h:32
RandomEngineState::label_
std::string label_
Definition: RandomEngineState.h:51
RandomEngineState::RandomEngineState
RandomEngineState()
Definition: RandomEngineState.cc:15
RandomEngineState::setLabel
void setLabel(const std::string &value)
Definition: RandomEngineState.h:36
RandomEngineState::operator<
bool operator<(RandomEngineState const &rhs) const
Definition: RandomEngineState.h:48
findQualityFiles.v
v
Definition: findQualityFiles.py:179
RandomEngineState::seed_
std::vector< uint32_t > seed_
Definition: RandomEngineState.h:53
RandomEngineState::clearSeedVector
void clearSeedVector()
Definition: RandomEngineState.h:40
RandomEngineState
Definition: RandomEngineState.h:26
RandomEngineState::reserveStateVector
void reserveStateVector(std::vector< uint32_t >::size_type n)
Definition: RandomEngineState.h:45
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
RandomEngineState::setSeed
void setSeed(const std::vector< uint32_t > &value)
Definition: RandomEngineState.h:38
RandomEngineState::setState
void setState(const std::vector< uint32_t > &value)
Definition: RandomEngineState.h:37
RandomEngineState::state_
std::vector< uint32_t > state_
Definition: RandomEngineState.h:52
RandomEngineState::getSeed
const std::vector< uint32_t > & getSeed() const
Definition: RandomEngineState.h:34
RandomEngineState::reserveSeedVector
void reserveSeedVector(std::vector< uint32_t >::size_type n)
Definition: RandomEngineState.h:41
RandomEngineState::~RandomEngineState
~RandomEngineState()
Definition: RandomEngineState.cc:17
RandomEngineState::push_back_stateVector
void push_back_stateVector(uint32_t v)
Definition: RandomEngineState.h:46
RandomEngineState::getState
const std::vector< uint32_t > & getState() const
Definition: RandomEngineState.h:33
value
Definition: value.py:1
RandomEngineState::clearStateVector
void clearStateVector()
Definition: RandomEngineState.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
relativeConstraints.value
value
Definition: relativeConstraints.py:53
RandomEngineState::push_back_seedVector
void push_back_seedVector(uint32_t v)
Definition: RandomEngineState.h:42