DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <StreamEmulationParameters.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the StreamEmulationParameters object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
const std::string & | get_data_file_name () const |
Get "data_file_name" attribute value. | |
void | set_data_file_name (const std::string &value) |
Set "data_file_name" attribute value. | |
const std::string & | get_tp_data_file_name () const |
Get "tp_data_file_name" attribute value. | |
void | set_tp_data_file_name (const std::string &value) |
Set "tp_data_file_name" attribute value. | |
uint32_t | get_input_file_size_limit () const |
Get "input_file_size_limit" attribute value. | |
void | set_input_file_size_limit (uint32_t value) |
Set "input_file_size_limit" attribute value. | |
bool | get_set_t0 () const |
Get "set_t0" attribute value. Set first timestamp to now. | |
void | set_set_t0 (bool value) |
Set "set_t0" attribute value. Set first timestamp to now. | |
uint32_t | get_random_population_size () const |
Get "random_population_size" attribute value. | |
void | set_random_population_size (uint32_t value) |
Set "random_population_size" attribute value. | |
float | get_frame_error_rate_hz () const |
Get "frame_error_rate_hz" attribute value. | |
void | set_frame_error_rate_hz (float value) |
Set "frame_error_rate_hz" attribute value. | |
bool | get_generate_periodic_adc_pattern () const |
Get "generate_periodic_adc_pattern" attribute value. | |
void | set_generate_periodic_adc_pattern (bool value) |
Set "generate_periodic_adc_pattern" attribute value. | |
float | get_TP_rate_per_channel () const |
Get "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz. | |
void | set_TP_rate_per_channel (float value) |
Set "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz. | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the StreamEmulationParameters object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
const std::string & | get_data_file_name () const |
Get "data_file_name" attribute value. | |
void | set_data_file_name (const std::string &value) |
Set "data_file_name" attribute value. | |
const std::string & | get_tp_data_file_name () const |
Get "tp_data_file_name" attribute value. | |
void | set_tp_data_file_name (const std::string &value) |
Set "tp_data_file_name" attribute value. | |
uint32_t | get_input_file_size_limit () const |
Get "input_file_size_limit" attribute value. | |
void | set_input_file_size_limit (uint32_t value) |
Set "input_file_size_limit" attribute value. | |
bool | get_set_t0 () const |
Get "set_t0" attribute value. Set first timestamp to now. | |
void | set_set_t0 (bool value) |
Set "set_t0" attribute value. Set first timestamp to now. | |
uint32_t | get_random_population_size () const |
Get "random_population_size" attribute value. | |
void | set_random_population_size (uint32_t value) |
Set "random_population_size" attribute value. | |
float | get_frame_error_rate_hz () const |
Get "frame_error_rate_hz" attribute value. | |
void | set_frame_error_rate_hz (float value) |
Set "frame_error_rate_hz" attribute value. | |
bool | get_generate_periodic_adc_pattern () const |
Get "generate_periodic_adc_pattern" attribute value. | |
void | set_generate_periodic_adc_pattern (bool value) |
Set "generate_periodic_adc_pattern" attribute value. | |
float | get_TP_rate_per_channel () const |
Get "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz. | |
void | set_TP_rate_per_channel (float value) |
Set "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz. | |
![]() | |
const std::string & | UID () const noexcept |
const std::string & | class_name () const noexcept |
bool | castable (const std::string &target) const noexcept |
bool | castable (const std::string *target) const noexcept |
template<class TARGET > | |
const TARGET * | cast () const noexcept |
Casts object to different class. | |
std::string | full_name () const noexcept |
const ConfigObject & | config_object () const |
DalRegistry & | registry () const noexcept |
Configuration & | configuration () const noexcept |
void | unread () |
void | set (const ConfigObject &o) noexcept |
void | move (const std::string &at) |
void | rename (const std::string &new_id) |
void | p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const |
print object headers | |
std::ostream & | print_object (std::ostream &s) const |
print object details | |
void | throw_init_ex (dunedaq::conffwk::Exception &ex) |
throw object initialisation exception (i.e. | |
Static Public Member Functions | |
static const std::string & | __get_data_file_name_str () noexcept |
static const std::string & | __get_tp_data_file_name_str () noexcept |
static const std::string & | __get_input_file_size_limit_str () noexcept |
static const std::string & | __get_set_t0_str () noexcept |
static const std::string & | __get_random_population_size_str () noexcept |
static const std::string & | __get_frame_error_rate_hz_str () noexcept |
static const std::string & | __get_generate_periodic_adc_pattern_str () noexcept |
static const std::string & | __get_TP_rate_per_channel_str () noexcept |
static const std::string & | __get_data_file_name_str () noexcept |
static const std::string & | __get_tp_data_file_name_str () noexcept |
static const std::string & | __get_input_file_size_limit_str () noexcept |
static const std::string & | __get_set_t0_str () noexcept |
static const std::string & | __get_random_population_size_str () noexcept |
static const std::string & | __get_frame_error_rate_hz_str () noexcept |
static const std::string & | __get_generate_periodic_adc_pattern_str () noexcept |
static const std::string & | __get_TP_rate_per_channel_str () noexcept |
![]() | |
static void | p_null (std::ostream &s) |
print "(null)" | |
static void | p_rm (std::ostream &s) |
print "(deleted object)" | |
static void | p_error (std::ostream &s, dunedaq::conffwk::Exception &ex) |
print error text | |
static void | throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj) |
throw exception in generated get method (i.e. | |
static bool | is_null (const DalObject *ref) noexcept |
check a pointer on DAL object is null | |
Static Public Attributes | |
static const std::string & | s_class_name |
static const std::string | s_data_file_name = "data_file_name" |
static const std::string | s_tp_data_file_name = "tp_data_file_name" |
static const std::string | s_input_file_size_limit = "input_file_size_limit" |
static const std::string | s_set_t0 = "set_t0" |
static const std::string | s_random_population_size = "random_population_size" |
static const std::string | s_frame_error_rate_hz = "frame_error_rate_hz" |
static const std::string | s_generate_periodic_adc_pattern = "generate_periodic_adc_pattern" |
static const std::string | s_TP_rate_per_channel = "TP_rate_per_channel" |
Protected Member Functions | |
StreamEmulationParameters (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~StreamEmulationParameters () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
StreamEmulationParameters (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~StreamEmulationParameters () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
DalObject (DalRegistry &db, const ConfigObject &o) noexcept | |
virtual | ~DalObject () |
void | clear () noexcept |
void | check () const |
bool | is_deleted () const |
void | increment_created () noexcept |
void | increment_read () noexcept |
void | check_init () const |
Check and initialize object if necessary. | |
template<typename T > | |
void | _set_object (const std::string &name, const T *value) |
Helper method for generated set single-value relationship methods. | |
template<typename T > | |
void | _set_objects (const std::string &name, const std::vector< const T * > &value) |
Helper method for generated set multi-value relationship methods. | |
bool | get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const |
Read relationship values as DAL objects using DAL factory. | |
bool | get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const |
Run algorithm and return result as DAL objects using DAL factory. | |
Private Attributes | |
std::string | m_data_file_name |
std::string | m_tp_data_file_name |
uint32_t | m_input_file_size_limit |
bool | m_set_t0 |
uint32_t | m_random_population_size |
float | m_frame_error_rate_hz |
bool | m_generate_periodic_adc_pattern |
float | m_TP_rate_per_channel |
Friends | |
class | conffwk::Configuration |
class | conffwk::DalObject |
class | conffwk::DalFactory |
class | conffwk::DalRegistry |
Additional Inherited Members | |
![]() | |
std::mutex | m_mutex |
Used to protect changes of DAL object. | |
bool | p_was_read |
is true, if the object was read | |
DalRegistry & | p_registry |
Configuration object. | |
ConfigObject | p_obj |
Config object used by given template object. | |
std::string | p_UID |
Is used for template objects (see dqm_conffwk) | |
Definition at line 20 of file StreamEmulationParameters.hpp.
|
protectednoexcept |
Definition at line 26 of file StreamEmulationParameters.cpp.
|
protectedvirtualnoexcept |
Definition at line 82 of file StreamEmulationParameters.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 94 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 94 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 99 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 99 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 100 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 100 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 96 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 96 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 98 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 98 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 97 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 97 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 95 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 95 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 101 of file StreamEmulationParameters.hpp.
|
inlinestaticnoexcept |
Definition at line 101 of file StreamEmulationParameters.hpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
Definition at line 86 of file StreamEmulationParameters.cpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
|
protected |
Definition at line 96 of file StreamEmulationParameters.cpp.
|
protected |
|
inline |
Get "data_file_name" attribute value.
Definition at line 111 of file StreamEmulationParameters.hpp.
|
inline |
Get "data_file_name" attribute value.
Definition at line 111 of file StreamEmulationParameters.hpp.
|
inline |
Get "frame_error_rate_hz" attribute value.
Definition at line 268 of file StreamEmulationParameters.hpp.
|
inline |
Get "frame_error_rate_hz" attribute value.
Definition at line 268 of file StreamEmulationParameters.hpp.
|
inline |
Get "generate_periodic_adc_pattern" attribute value.
Definition at line 299 of file StreamEmulationParameters.hpp.
|
inline |
Get "generate_periodic_adc_pattern" attribute value.
Definition at line 299 of file StreamEmulationParameters.hpp.
|
inline |
Get "input_file_size_limit" attribute value.
Definition at line 173 of file StreamEmulationParameters.hpp.
|
inline |
Get "input_file_size_limit" attribute value.
Definition at line 173 of file StreamEmulationParameters.hpp.
|
inline |
Get "random_population_size" attribute value.
Definition at line 237 of file StreamEmulationParameters.hpp.
|
inline |
Get "random_population_size" attribute value.
Definition at line 237 of file StreamEmulationParameters.hpp.
|
inline |
Get "set_t0" attribute value. Set first timestamp to now.
Definition at line 205 of file StreamEmulationParameters.hpp.
|
inline |
Get "set_t0" attribute value. Set first timestamp to now.
Definition at line 205 of file StreamEmulationParameters.hpp.
|
inline |
Get "tp_data_file_name" attribute value.
Definition at line 142 of file StreamEmulationParameters.hpp.
|
inline |
Get "tp_data_file_name" attribute value.
Definition at line 142 of file StreamEmulationParameters.hpp.
|
inline |
Get "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz.
Definition at line 331 of file StreamEmulationParameters.hpp.
|
inline |
Get "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz.
Definition at line 331 of file StreamEmulationParameters.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Definition at line 61 of file StreamEmulationParameters.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
|
virtual |
Print details of the StreamEmulationParameters object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
Definition at line 33 of file StreamEmulationParameters.cpp.
|
virtual |
Print details of the StreamEmulationParameters object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
|
inline |
Set "data_file_name" attribute value.
value | new attribute value |
Definition at line 126 of file StreamEmulationParameters.hpp.
|
inline |
Set "data_file_name" attribute value.
value | new attribute value |
Definition at line 126 of file StreamEmulationParameters.hpp.
|
inline |
Set "frame_error_rate_hz" attribute value.
value | new attribute value |
Definition at line 283 of file StreamEmulationParameters.hpp.
|
inline |
Set "frame_error_rate_hz" attribute value.
value | new attribute value |
Definition at line 283 of file StreamEmulationParameters.hpp.
|
inline |
Set "generate_periodic_adc_pattern" attribute value.
value | new attribute value |
Definition at line 314 of file StreamEmulationParameters.hpp.
|
inline |
Set "generate_periodic_adc_pattern" attribute value.
value | new attribute value |
Definition at line 314 of file StreamEmulationParameters.hpp.
|
inline |
Set "input_file_size_limit" attribute value.
value | new attribute value |
Definition at line 188 of file StreamEmulationParameters.hpp.
|
inline |
Set "input_file_size_limit" attribute value.
value | new attribute value |
Definition at line 188 of file StreamEmulationParameters.hpp.
|
inline |
Set "random_population_size" attribute value.
value | new attribute value |
Definition at line 252 of file StreamEmulationParameters.hpp.
|
inline |
Set "random_population_size" attribute value.
value | new attribute value |
Definition at line 252 of file StreamEmulationParameters.hpp.
|
inline |
Set "set_t0" attribute value. Set first timestamp to now.
value | new attribute value |
Definition at line 221 of file StreamEmulationParameters.hpp.
|
inline |
Set "set_t0" attribute value. Set first timestamp to now.
value | new attribute value |
Definition at line 221 of file StreamEmulationParameters.hpp.
|
inline |
Set "tp_data_file_name" attribute value.
value | new attribute value |
Definition at line 157 of file StreamEmulationParameters.hpp.
|
inline |
Set "tp_data_file_name" attribute value.
value | new attribute value |
Definition at line 157 of file StreamEmulationParameters.hpp.
|
inline |
Set "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz.
value | new attribute value |
Definition at line 347 of file StreamEmulationParameters.hpp.
|
inline |
Set "TP_rate_per_channel" attribute value. TP rate per channel in units of 100 Hz.
value | new attribute value |
Definition at line 347 of file StreamEmulationParameters.hpp.
|
friend |
Definition at line 22 of file StreamEmulationParameters.hpp.
|
friend |
Definition at line 24 of file StreamEmulationParameters.hpp.
|
friend |
Definition at line 23 of file StreamEmulationParameters.hpp.
|
friend |
Definition at line 25 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 71 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 76 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 77 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 73 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 75 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 74 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 72 of file StreamEmulationParameters.hpp.
|
private |
Definition at line 78 of file StreamEmulationParameters.hpp.
|
static |
The name of the configuration class.
Definition at line 37 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 85 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 90 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 91 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 87 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 89 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 88 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 86 of file StreamEmulationParameters.hpp.
|
inlinestatic |
Definition at line 92 of file StreamEmulationParameters.hpp.