DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <CTBMisc.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the CTBMisc 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. | |
bool | get_ch_status () const |
Get "ch_status" attribute value. | |
void | set_ch_status (bool value) |
Set "ch_status" attribute value. | |
const dunedaq::appmodel::CTBPulser * | get_pulser () const |
Get "pulser" relationship value. | |
void | set_pulser (const dunedaq::appmodel::CTBPulser *value) |
Set "pulser" relationship value. | |
const dunedaq::appmodel::CTBTiming * | get_timing () const |
Get "timing" relationship value. | |
void | set_timing (const dunedaq::appmodel::CTBTiming *value) |
Set "timing" relationship value. | |
const dunedaq::appmodel::CTBRandomTrigger * | get_randomtrigger_1 () const |
Get "randomtrigger_1" relationship value. | |
void | set_randomtrigger_1 (const dunedaq::appmodel::CTBRandomTrigger *value) |
Set "randomtrigger_1" relationship value. | |
const dunedaq::appmodel::CTBRandomTrigger * | get_randomtrigger_2 () const |
Get "randomtrigger_2" relationship value. | |
void | set_randomtrigger_2 (const dunedaq::appmodel::CTBRandomTrigger *value) |
Set "randomtrigger_2" relationship value. | |
nlohmann::json | get_ctb_json (const dunedaq::confmodel::Session &session) const |
virtual std::vector< const Resource * > | contained_resources () const override |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the CTBMisc 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. | |
bool | get_ch_status () const |
Get "ch_status" attribute value. | |
void | set_ch_status (bool value) |
Set "ch_status" attribute value. | |
const dunedaq::appmodel::CTBPulser * | get_pulser () const |
Get "pulser" relationship value. | |
void | set_pulser (const dunedaq::appmodel::CTBPulser *value) |
Set "pulser" relationship value. | |
const dunedaq::appmodel::CTBTiming * | get_timing () const |
Get "timing" relationship value. | |
void | set_timing (const dunedaq::appmodel::CTBTiming *value) |
Set "timing" relationship value. | |
const dunedaq::appmodel::CTBRandomTrigger * | get_randomtrigger_1 () const |
Get "randomtrigger_1" relationship value. | |
void | set_randomtrigger_1 (const dunedaq::appmodel::CTBRandomTrigger *value) |
Set "randomtrigger_1" relationship value. | |
const dunedaq::appmodel::CTBRandomTrigger * | get_randomtrigger_2 () const |
Get "randomtrigger_2" relationship value. | |
void | set_randomtrigger_2 (const dunedaq::appmodel::CTBRandomTrigger *value) |
Set "randomtrigger_2" relationship value. | |
nlohmann::json | get_ctb_json (const dunedaq::confmodel::Session &session) const |
virtual std::vector< const Resource * > | contained_resources () const override |
![]() | |
bool | compute_disabled_state (const std::set< std::string > &disabled) const final |
bool | compute_disabled_state (const std::set< std::string > &disabled) const final |
![]() | |
![]() | |
void | parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const |
bool | is_disabled (const dunedaq::confmodel::ResourceTree &session) const |
void | parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const |
bool | is_disabled (const dunedaq::confmodel::ResourceTree &session) const |
![]() | |
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_ch_status_str () noexcept |
static const std::string & | __get_pulser_str () noexcept |
static const std::string & | __get_timing_str () noexcept |
static const std::string & | __get_randomtrigger_1_str () noexcept |
static const std::string & | __get_randomtrigger_2_str () noexcept |
static const std::string & | __get_ch_status_str () noexcept |
static const std::string & | __get_pulser_str () noexcept |
static const std::string & | __get_timing_str () noexcept |
static const std::string & | __get_randomtrigger_1_str () noexcept |
static const std::string & | __get_randomtrigger_2_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_ch_status = "ch_status" |
static const std::string | s_pulser = "pulser" |
static const std::string | s_timing = "timing" |
static const std::string | s_randomtrigger_1 = "randomtrigger_1" |
static const std::string | s_randomtrigger_2 = "randomtrigger_2" |
![]() | |
static const std::string & | s_class_name |
![]() | |
static const std::string & | s_class_name |
![]() | |
static const std::string & | s_class_name |
Protected Member Functions | |
CTBMisc (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~CTBMisc () 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 |
CTBMisc (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~CTBMisc () 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 |
![]() | |
ResourceSetDisableAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSetDisableAND () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
ResourceSetDisableAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSetDisableAND () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSet () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSet () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Resource () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Resource () noexcept |
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 | |
bool | m_ch_status |
const dunedaq::appmodel::CTBPulser * | m_pulser |
const dunedaq::appmodel::CTBTiming * | m_timing |
const dunedaq::appmodel::CTBRandomTrigger * | m_randomtrigger_1 |
const dunedaq::appmodel::CTBRandomTrigger * | m_randomtrigger_2 |
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 41 of file CTBMisc.hpp.
|
protectednoexcept |
Definition at line 33 of file CTBMisc.cpp.
|
protectedvirtualnoexcept |
Definition at line 98 of file CTBMisc.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 105 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 105 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 146 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 146 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 148 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 148 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 149 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 149 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 147 of file CTBMisc.hpp.
|
inlinestaticnoexcept |
Definition at line 147 of file CTBMisc.hpp.
|
overridevirtual |
Virtual method to obtain the list of all contained Resources. Used internally by the core disabled logic. Not intended to be used in application code as that should be using individual relationships of the derived classes.
Implements dunedaq::confmodel::ResourceSet.
Definition at line 308 of file CTBApplication.cpp.
|
overridevirtual |
Virtual method to obtain the list of all contained Resources. Used internally by the core disabled logic. Not intended to be used in application code as that should be using individual relationships of the derived classes.
Implements dunedaq::confmodel::ResourceSet.
|
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 |
Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.
Definition at line 102 of file CTBMisc.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 |
Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.
|
protected |
Definition at line 112 of file CTBMisc.cpp.
|
protected |
|
inline |
Get "ch_status" attribute value.
Definition at line 115 of file CTBMisc.hpp.
|
inline |
Get "ch_status" attribute value.
Definition at line 115 of file CTBMisc.hpp.
nlohmann::json CTBMisc::get_ctb_json | ( | const dunedaq::confmodel::Session & | session | ) | const |
Definition at line 314 of file CTBApplication.cpp.
nlohmann::json dunedaq::appmodel::CTBMisc::get_ctb_json | ( | const dunedaq::confmodel::Session & | session | ) | const |
|
inline |
Get "pulser" relationship value.
Definition at line 159 of file CTBMisc.hpp.
|
inline |
Get "pulser" relationship value.
Definition at line 159 of file CTBMisc.hpp.
|
inline |
Get "randomtrigger_1" relationship value.
Definition at line 221 of file CTBMisc.hpp.
|
inline |
Get "randomtrigger_1" relationship value.
Definition at line 221 of file CTBMisc.hpp.
|
inline |
Get "randomtrigger_2" relationship value.
Definition at line 252 of file CTBMisc.hpp.
|
inline |
Get "randomtrigger_2" relationship value.
Definition at line 252 of file CTBMisc.hpp.
|
inline |
Get "timing" relationship value.
Definition at line 190 of file CTBMisc.hpp.
|
inline |
Get "timing" relationship value.
Definition at line 190 of file CTBMisc.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.
Definition at line 80 of file CTBMisc.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.
|
virtual |
Print details of the CTBMisc 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 |
Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.
Definition at line 46 of file CTBMisc.cpp.
|
virtual |
Print details of the CTBMisc 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 |
Reimplemented from dunedaq::confmodel::ResourceSetDisableAND.
|
inline |
Set "ch_status" attribute value.
value | new attribute value |
Definition at line 130 of file CTBMisc.hpp.
|
inline |
Set "ch_status" attribute value.
value | new attribute value |
Definition at line 130 of file CTBMisc.hpp.
void dunedaq::appmodel::CTBMisc::set_pulser | ( | const dunedaq::appmodel::CTBPulser * | value | ) |
Set "pulser" relationship value.
value | new relationship value |
Definition at line 133 of file CTBMisc.cpp.
void dunedaq::appmodel::CTBMisc::set_pulser | ( | const dunedaq::appmodel::CTBPulser * | value | ) |
Set "pulser" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBMisc::set_randomtrigger_1 | ( | const dunedaq::appmodel::CTBRandomTrigger * | value | ) |
Set "randomtrigger_1" relationship value.
value | new relationship value |
Definition at line 143 of file CTBMisc.cpp.
void dunedaq::appmodel::CTBMisc::set_randomtrigger_1 | ( | const dunedaq::appmodel::CTBRandomTrigger * | value | ) |
Set "randomtrigger_1" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBMisc::set_randomtrigger_2 | ( | const dunedaq::appmodel::CTBRandomTrigger * | value | ) |
Set "randomtrigger_2" relationship value.
value | new relationship value |
Definition at line 148 of file CTBMisc.cpp.
void dunedaq::appmodel::CTBMisc::set_randomtrigger_2 | ( | const dunedaq::appmodel::CTBRandomTrigger * | value | ) |
Set "randomtrigger_2" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBMisc::set_timing | ( | const dunedaq::appmodel::CTBTiming * | value | ) |
Set "timing" relationship value.
value | new relationship value |
Definition at line 138 of file CTBMisc.cpp.
void dunedaq::appmodel::CTBMisc::set_timing | ( | const dunedaq::appmodel::CTBTiming * | value | ) |
Set "timing" relationship value.
value | new relationship value |
|
friend |
Definition at line 43 of file CTBMisc.hpp.
|
friend |
Definition at line 45 of file CTBMisc.hpp.
|
friend |
Definition at line 44 of file CTBMisc.hpp.
|
friend |
Definition at line 46 of file CTBMisc.hpp.
|
private |
Definition at line 92 of file CTBMisc.hpp.
|
private |
Definition at line 93 of file CTBMisc.hpp.
|
private |
Definition at line 95 of file CTBMisc.hpp.
|
private |
Definition at line 96 of file CTBMisc.hpp.
|
private |
Definition at line 94 of file CTBMisc.hpp.
|
inlinestatic |
Definition at line 103 of file CTBMisc.hpp.
|
static |
The name of the configuration class.
Definition at line 58 of file CTBMisc.hpp.
|
inlinestatic |
Definition at line 141 of file CTBMisc.hpp.
|
inlinestatic |
Definition at line 143 of file CTBMisc.hpp.
|
inlinestatic |
Definition at line 144 of file CTBMisc.hpp.
|
inlinestatic |
Definition at line 142 of file CTBMisc.hpp.