DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <CTBoardConf.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the CTBoardConf 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 dunedaq::appmodel::CTBSockets * | get_sockets () const |
Get "sockets" relationship value. | |
void | set_sockets (const dunedaq::appmodel::CTBSockets *value) |
Set "sockets" relationship value. | |
const dunedaq::appmodel::CTBSubsystem * | get_beam () const |
Get "beam" relationship value. | |
void | set_beam (const dunedaq::appmodel::CTBSubsystem *value) |
Set "beam" relationship value. | |
const dunedaq::appmodel::CTBCRTSubsystem * | get_CRT () const |
Get "CRT" relationship value. | |
void | set_CRT (const dunedaq::appmodel::CTBCRTSubsystem *value) |
Set "CRT" relationship value. | |
const dunedaq::appmodel::CTBPDSSubsystem * | get_pds () const |
Get "pds" relationship value. | |
void | set_pds (const dunedaq::appmodel::CTBPDSSubsystem *value) |
Set "pds" relationship value. | |
const dunedaq::confmodel::GeoId * | get_geo_id () const |
Get "geo_id" relationship value. | |
void | set_geo_id (const dunedaq::confmodel::GeoId *value) |
Set "geo_id" relationship value. | |
nlohmann::json | get_ctb_json (const dunedaq::confmodel::Session &session, std::optional< std::string > socket_host=std::nullopt) const |
std::vector< const CTBHLT * > | get_HLTs () const |
std::vector< const CTBCountLLT * > | get_CRT_LLTs () const |
std::vector< const CTBLLT * > | get_beam_LLTs () const |
const CTBMisc & | get_misc () const |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the CTBoardConf 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 dunedaq::appmodel::CTBSockets * | get_sockets () const |
Get "sockets" relationship value. | |
void | set_sockets (const dunedaq::appmodel::CTBSockets *value) |
Set "sockets" relationship value. | |
const dunedaq::appmodel::CTBSubsystem * | get_beam () const |
Get "beam" relationship value. | |
void | set_beam (const dunedaq::appmodel::CTBSubsystem *value) |
Set "beam" relationship value. | |
const dunedaq::appmodel::CTBCRTSubsystem * | get_CRT () const |
Get "CRT" relationship value. | |
void | set_CRT (const dunedaq::appmodel::CTBCRTSubsystem *value) |
Set "CRT" relationship value. | |
const dunedaq::appmodel::CTBPDSSubsystem * | get_pds () const |
Get "pds" relationship value. | |
void | set_pds (const dunedaq::appmodel::CTBPDSSubsystem *value) |
Set "pds" relationship value. | |
const dunedaq::confmodel::GeoId * | get_geo_id () const |
Get "geo_id" relationship value. | |
void | set_geo_id (const dunedaq::confmodel::GeoId *value) |
Set "geo_id" relationship value. | |
nlohmann::json | get_ctb_json (const dunedaq::confmodel::Session &session, std::optional< std::string > socket_host=std::nullopt) const |
std::vector< const CTBHLT * > | get_HLTs () const |
std::vector< const CTBCountLLT * > | get_CRT_LLTs () const |
std::vector< const CTBLLT * > | get_beam_LLTs () const |
const CTBMisc & | get_misc () const |
![]() | |
![]() | |
const std::vector< const dunedaq::confmodel::ResourceBase * > & | get_contains () const |
Get "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable). | |
void | set_contains (const std::vector< const dunedaq::confmodel::ResourceBase * > &value) |
Set "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable). | |
const std::vector< const dunedaq::confmodel::ResourceBase * > & | get_contains () const |
Get "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable). | |
void | set_contains (const std::vector< const dunedaq::confmodel::ResourceBase * > &value) |
Set "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable). | |
![]() | |
![]() | |
void | get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const |
bool | disabled (const dunedaq::confmodel::Session &session) const |
void | get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const |
bool | disabled (const dunedaq::confmodel::Session &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_sockets_str () noexcept |
static const std::string & | __get_beam_str () noexcept |
static const std::string & | __get_CRT_str () noexcept |
static const std::string & | __get_pds_str () noexcept |
static const std::string & | __get_geo_id_str () noexcept |
static const std::string & | __get_sockets_str () noexcept |
static const std::string & | __get_beam_str () noexcept |
static const std::string & | __get_CRT_str () noexcept |
static const std::string & | __get_pds_str () noexcept |
static const std::string & | __get_geo_id_str () noexcept |
![]() | |
static const std::string & | __get_contains_str () noexcept |
static const std::string & | __get_contains_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_sockets = "sockets" |
static const std::string | s_beam = "beam" |
static const std::string | s_CRT = "CRT" |
static const std::string | s_pds = "pds" |
static const std::string | s_geo_id = "geo_id" |
![]() | |
static const std::string & | s_class_name |
![]() | |
static const std::string & | s_class_name |
static const std::string | s_contains = "contains" |
![]() | |
static const std::string & | s_class_name |
![]() | |
static const std::string & | s_class_name |
Protected Member Functions | |
CTBoardConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~CTBoardConf () 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 |
CTBoardConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~CTBoardConf () 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 |
![]() | |
ResourceSetAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSetAND () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
ResourceSetAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSetAND () 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 |
![]() | |
ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceBase () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceBase () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Component () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Component () 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 | |
const dunedaq::appmodel::CTBSockets * | m_sockets |
const dunedaq::appmodel::CTBSubsystem * | m_beam |
const dunedaq::appmodel::CTBCRTSubsystem * | m_CRT |
const dunedaq::appmodel::CTBPDSSubsystem * | m_pds |
const dunedaq::confmodel::GeoId * | m_geo_id |
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 48 of file CTBoardConf.hpp.
|
protectednoexcept |
Definition at line 35 of file CTBoardConf.cpp.
|
protectedvirtualnoexcept |
Definition at line 97 of file CTBoardConf.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 117 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 117 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 118 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 118 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 120 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 120 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 119 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 119 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 116 of file CTBoardConf.hpp.
|
inlinestaticnoexcept |
Definition at line 116 of file CTBoardConf.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 |
Reimplemented from dunedaq::confmodel::ResourceSetAND.
Definition at line 101 of file CTBoardConf.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::ResourceSetAND.
|
protected |
Definition at line 111 of file CTBoardConf.cpp.
|
protected |
|
inline |
Get "beam" relationship value.
Definition at line 161 of file CTBoardConf.hpp.
|
inline |
Get "beam" relationship value.
Definition at line 161 of file CTBoardConf.hpp.
std::vector< const CTBLLT * > CTBoardConf::get_beam_LLTs | ( | ) | const |
Definition at line 267 of file CTBApplication.cpp.
std::vector< const CTBLLT * > dunedaq::appmodel::CTBoardConf::get_beam_LLTs | ( | ) | const |
|
inline |
Get "CRT" relationship value.
Definition at line 192 of file CTBoardConf.hpp.
|
inline |
Get "CRT" relationship value.
Definition at line 192 of file CTBoardConf.hpp.
std::vector< const CTBCountLLT * > CTBoardConf::get_CRT_LLTs | ( | ) | const |
Definition at line 250 of file CTBApplication.cpp.
std::vector< const CTBCountLLT * > dunedaq::appmodel::CTBoardConf::get_CRT_LLTs | ( | ) | const |
nlohmann::json CTBoardConf::get_ctb_json | ( | const dunedaq::confmodel::Session & | session, |
std::optional< std::string > | socket_host = std::nullopt ) const |
create the json configuration for the board
Definition at line 285 of file CTBApplication.cpp.
nlohmann::json dunedaq::appmodel::CTBoardConf::get_ctb_json | ( | const dunedaq::confmodel::Session & | session, |
std::optional< std::string > | socket_host = std::nullopt ) const |
create the json configuration for the board
|
inline |
Get "geo_id" relationship value.
Definition at line 254 of file CTBoardConf.hpp.
|
inline |
Get "geo_id" relationship value.
Definition at line 254 of file CTBoardConf.hpp.
std::vector< const CTBHLT * > CTBoardConf::get_HLTs | ( | ) | const |
Definition at line 233 of file CTBApplication.cpp.
std::vector< const CTBHLT * > dunedaq::appmodel::CTBoardConf::get_HLTs | ( | ) | const |
const CTBMisc & CTBoardConf::get_misc | ( | ) | const |
Definition at line 218 of file CTBApplication.cpp.
const CTBMisc & dunedaq::appmodel::CTBoardConf::get_misc | ( | ) | const |
|
inline |
Get "pds" relationship value.
Definition at line 223 of file CTBoardConf.hpp.
|
inline |
Get "pds" relationship value.
Definition at line 223 of file CTBoardConf.hpp.
|
inline |
Get "sockets" relationship value.
Definition at line 130 of file CTBoardConf.hpp.
|
inline |
Get "sockets" relationship value.
Definition at line 130 of file CTBoardConf.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Reimplemented from dunedaq::confmodel::ResourceSetAND.
Definition at line 79 of file CTBoardConf.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Reimplemented from dunedaq::confmodel::ResourceSetAND.
|
virtual |
Print details of the CTBoardConf 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::ResourceSetAND.
Definition at line 49 of file CTBoardConf.cpp.
|
virtual |
Print details of the CTBoardConf 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::ResourceSetAND.
void dunedaq::appmodel::CTBoardConf::set_beam | ( | const dunedaq::appmodel::CTBSubsystem * | value | ) |
Set "beam" relationship value.
value | new relationship value |
Definition at line 137 of file CTBoardConf.cpp.
void dunedaq::appmodel::CTBoardConf::set_beam | ( | const dunedaq::appmodel::CTBSubsystem * | value | ) |
Set "beam" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBoardConf::set_CRT | ( | const dunedaq::appmodel::CTBCRTSubsystem * | value | ) |
Set "CRT" relationship value.
value | new relationship value |
Definition at line 142 of file CTBoardConf.cpp.
void dunedaq::appmodel::CTBoardConf::set_CRT | ( | const dunedaq::appmodel::CTBCRTSubsystem * | value | ) |
Set "CRT" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBoardConf::set_geo_id | ( | const dunedaq::confmodel::GeoId * | value | ) |
Set "geo_id" relationship value.
value | new relationship value |
Definition at line 152 of file CTBoardConf.cpp.
void dunedaq::appmodel::CTBoardConf::set_geo_id | ( | const dunedaq::confmodel::GeoId * | value | ) |
Set "geo_id" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBoardConf::set_pds | ( | const dunedaq::appmodel::CTBPDSSubsystem * | value | ) |
Set "pds" relationship value.
value | new relationship value |
Definition at line 147 of file CTBoardConf.cpp.
void dunedaq::appmodel::CTBoardConf::set_pds | ( | const dunedaq::appmodel::CTBPDSSubsystem * | value | ) |
Set "pds" relationship value.
value | new relationship value |
void dunedaq::appmodel::CTBoardConf::set_sockets | ( | const dunedaq::appmodel::CTBSockets * | value | ) |
Set "sockets" relationship value.
value | new relationship value |
Definition at line 132 of file CTBoardConf.cpp.
void dunedaq::appmodel::CTBoardConf::set_sockets | ( | const dunedaq::appmodel::CTBSockets * | value | ) |
Set "sockets" relationship value.
value | new relationship value |
|
friend |
Definition at line 50 of file CTBoardConf.hpp.
|
friend |
Definition at line 52 of file CTBoardConf.hpp.
|
friend |
Definition at line 51 of file CTBoardConf.hpp.
|
friend |
Definition at line 53 of file CTBoardConf.hpp.
|
private |
Definition at line 100 of file CTBoardConf.hpp.
|
private |
Definition at line 101 of file CTBoardConf.hpp.
|
private |
Definition at line 103 of file CTBoardConf.hpp.
|
private |
Definition at line 102 of file CTBoardConf.hpp.
|
private |
Definition at line 99 of file CTBoardConf.hpp.
|
inlinestatic |
Definition at line 111 of file CTBoardConf.hpp.
|
static |
The name of the configuration class.
Definition at line 65 of file CTBoardConf.hpp.
|
inlinestatic |
Definition at line 112 of file CTBoardConf.hpp.
|
inlinestatic |
Definition at line 114 of file CTBoardConf.hpp.
|
inlinestatic |
Definition at line 113 of file CTBoardConf.hpp.
|
inlinestatic |
Definition at line 110 of file CTBoardConf.hpp.