|
srs-control 0.2.2
|
#include <RandomizeStruct.hpp>

Classes | |
| struct | Config |
| struct | Opt |
Public Member Functions | |
| Randomizer (const Config &config) | |
| auto | randomize_data_struct (StructData &data, const Opt &option) |
Private Member Functions | |
| void | randomize_hits (std::vector< HitData > &hits) |
| void | randomize_markers (std::vector< MarkerData > &markers) |
| void | set_header (ReceiveDataHeader &header, uint32_t frame_counter, uint8_t fec_id) const |
Private Attributes | |
| std::random_device | device_ {} |
| std::mt19937 | rand_gen_ { device_() } |
| Config | config_ |
| std::uniform_int_distribution< std::size_t > | n_hits_gen_ { config_.n_hits.min, config_.n_hits.max } |
| std::uniform_int_distribution< std::size_t > | n_markers_gen_ { config_.n_markers.min, config_.n_markers.max } |
| std::uniform_int_distribution< uint8_t > | channel_num_gen_ { 0, process::internal::CHANNEL_NUM_BIT_MAX } |
| std::uniform_int_distribution< uint8_t > | tdc_gen_ { 0, process::internal::TDC_BIT_MAX } |
| std::uniform_int_distribution< uint8_t > | offset_gen_ { 0, process::internal::OFFSET_BIT_MAX } |
| std::uniform_int_distribution< uint8_t > | vmm_id_gen_ { 0, process::internal::VMM_ID_BIT_MAX } |
| std::uniform_int_distribution< uint16_t > | adc_gen_ { 0, process::internal::ADC_BIT_MAX } |
| std::uniform_int_distribution< uint16_t > | bc_id_gen_ { 0, process::internal::BC_ID_BIT_MAX } |
| std::uniform_int_distribution< uint64_t > | srs_timestamp_gen_ { 0, process::internal::SRS_TIMESTAMP_MAX } |
Definition at line 17 of file RandomizeStruct.hpp.
|
inline |
Definition at line 26 of file RandomizeStruct.hpp.
|
inline |
Definition at line 37 of file RandomizeStruct.hpp.
|
inlineprivate |
Definition at line 59 of file RandomizeStruct.hpp.
|
inlineprivate |
Definition at line 77 of file RandomizeStruct.hpp.
|
inlineprivate |
Definition at line 89 of file RandomizeStruct.hpp.
|
private |
Definition at line 54 of file RandomizeStruct.hpp.
|
private |
Definition at line 55 of file RandomizeStruct.hpp.
|
private |
Definition at line 50 of file RandomizeStruct.hpp.
|
private |
Definition at line 47 of file RandomizeStruct.hpp.
|
private |
Definition at line 45 of file RandomizeStruct.hpp.
|
private |
Definition at line 48 of file RandomizeStruct.hpp.
|
private |
Definition at line 49 of file RandomizeStruct.hpp.
|
private |
Definition at line 52 of file RandomizeStruct.hpp.
|
private |
Definition at line 46 of file RandomizeStruct.hpp.
|
private |
Definition at line 57 of file RandomizeStruct.hpp.
|
private |
Definition at line 51 of file RandomizeStruct.hpp.
|
private |
Definition at line 53 of file RandomizeStruct.hpp.