DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appmodel::TriggerDataHandlerModule Class Reference

#include <TriggerDataHandlerModule.hpp>

Inheritance diagram for dunedaq::appmodel::TriggerDataHandlerModule:
[legend]
Collaboration diagram for dunedaq::appmodel::TriggerDataHandlerModule:
[legend]

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TriggerDataHandlerModule 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::vector< const dunedaq::appmodel::SourceIDConf * > & get_enabled_source_ids () const
 Get "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.
 
void set_enabled_source_ids (const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
 Set "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.
 
const std::vector< const dunedaq::appmodel::SourceIDConf * > & get_mandatory_source_ids () const
 Get "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.
 
void set_mandatory_source_ids (const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
 Set "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TriggerDataHandlerModule 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::vector< const dunedaq::appmodel::SourceIDConf * > & get_enabled_source_ids () const
 Get "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.
 
void set_enabled_source_ids (const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
 Set "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.
 
const std::vector< const dunedaq::appmodel::SourceIDConf * > & get_mandatory_source_ids () const
 Get "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.
 
void set_mandatory_source_ids (const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
 Set "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.
 
- Public Member Functions inherited from dunedaq::appmodel::DataHandlerModule
uint32_t get_source_id () const
 Get "source_id" attribute value.
 
void set_source_id (uint32_t value)
 Set "source_id" attribute value.
 
uint32_t get_detector_id () const
 Get "detector_id" attribute value.
 
void set_detector_id (uint32_t value)
 Set "detector_id" attribute value.
 
bool get_emulation_mode () const
 Get "emulation_mode" attribute value.
 
void set_emulation_mode (bool value)
 Set "emulation_mode" attribute value.
 
bool get_post_processing_enabled () const
 Get "post_processing_enabled" attribute value.
 
void set_post_processing_enabled (bool value)
 Set "post_processing_enabled" attribute value.
 
const dunedaq::confmodel::GeoIdget_geo_id () const
 Get "geo_id" relationship value.
 
void set_geo_id (const dunedaq::confmodel::GeoId *value)
 Set "geo_id" relationship value.
 
const dunedaq::appmodel::DataHandlerConfget_module_configuration () const
 Get "module_configuration" relationship value.
 
void set_module_configuration (const dunedaq::appmodel::DataHandlerConf *value)
 Set "module_configuration" relationship value.
 
uint32_t get_source_id () const
 Get "source_id" attribute value.
 
void set_source_id (uint32_t value)
 Set "source_id" attribute value.
 
uint32_t get_detector_id () const
 Get "detector_id" attribute value.
 
void set_detector_id (uint32_t value)
 Set "detector_id" attribute value.
 
bool get_emulation_mode () const
 Get "emulation_mode" attribute value.
 
void set_emulation_mode (bool value)
 Set "emulation_mode" attribute value.
 
bool get_post_processing_enabled () const
 Get "post_processing_enabled" attribute value.
 
void set_post_processing_enabled (bool value)
 Set "post_processing_enabled" attribute value.
 
const dunedaq::confmodel::GeoIdget_geo_id () const
 Get "geo_id" relationship value.
 
void set_geo_id (const dunedaq::confmodel::GeoId *value)
 Set "geo_id" relationship value.
 
const dunedaq::appmodel::DataHandlerConfget_module_configuration () const
 Get "module_configuration" relationship value.
 
void set_module_configuration (const dunedaq::appmodel::DataHandlerConf *value)
 Set "module_configuration" relationship value.
 
- Public Member Functions inherited from dunedaq::confmodel::DaqModule
const std::vector< const dunedaq::confmodel::Connection * > & get_inputs () const
 Get "inputs" relationship value. List of connections to/from this module.
 
void set_inputs (const std::vector< const dunedaq::confmodel::Connection * > &value)
 Set "inputs" relationship value. List of connections to/from this module.
 
const std::vector< const dunedaq::confmodel::Connection * > & get_outputs () const
 Get "outputs" relationship value. Output connections from this module.
 
void set_outputs (const std::vector< const dunedaq::confmodel::Connection * > &value)
 Set "outputs" relationship value. Output connections from this module.
 
const std::vector< const dunedaq::confmodel::HostComponent * > & get_used_resources () const
 Get "used_resources" relationship value.
 
void set_used_resources (const std::vector< const dunedaq::confmodel::HostComponent * > &value)
 Set "used_resources" relationship value.
 
const std::vector< const dunedaq::confmodel::Connection * > & get_inputs () const
 Get "inputs" relationship value. List of connections to/from this module.
 
void set_inputs (const std::vector< const dunedaq::confmodel::Connection * > &value)
 Set "inputs" relationship value. List of connections to/from this module.
 
const std::vector< const dunedaq::confmodel::Connection * > & get_outputs () const
 Get "outputs" relationship value. Output connections from this module.
 
void set_outputs (const std::vector< const dunedaq::confmodel::Connection * > &value)
 Set "outputs" relationship value. Output connections from this module.
 
const std::vector< const dunedaq::confmodel::HostComponent * > & get_used_resources () const
 Get "used_resources" relationship value.
 
void set_used_resources (const std::vector< const dunedaq::confmodel::HostComponent * > &value)
 Set "used_resources" relationship value.
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
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 ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () 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_enabled_source_ids_str () noexcept
 
static const std::string & __get_mandatory_source_ids_str () noexcept
 
static const std::string & __get_enabled_source_ids_str () noexcept
 
static const std::string & __get_mandatory_source_ids_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::DataHandlerModule
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_detector_id_str () noexcept
 
static const std::string & __get_emulation_mode_str () noexcept
 
static const std::string & __get_post_processing_enabled_str () noexcept
 
static const std::string & __get_geo_id_str () noexcept
 
static const std::string & __get_module_configuration_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_detector_id_str () noexcept
 
static const std::string & __get_emulation_mode_str () noexcept
 
static const std::string & __get_post_processing_enabled_str () noexcept
 
static const std::string & __get_geo_id_str () noexcept
 
static const std::string & __get_module_configuration_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::DaqModule
static const std::string & __get_inputs_str () noexcept
 
static const std::string & __get_outputs_str () noexcept
 
static const std::string & __get_used_resources_str () noexcept
 
static const std::string & __get_inputs_str () noexcept
 
static const std::string & __get_outputs_str () noexcept
 
static const std::string & __get_used_resources_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::conffwk::DalObject
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_enabled_source_ids = "enabled_source_ids"
 
static const std::string s_mandatory_source_ids = "mandatory_source_ids"
 
- Static Public Attributes inherited from dunedaq::appmodel::DataHandlerModule
static const std::string & s_class_name
 
static const std::string s_source_id = "source_id"
 
static const std::string s_detector_id = "detector_id"
 
static const std::string s_emulation_mode = "emulation_mode"
 
static const std::string s_post_processing_enabled = "post_processing_enabled"
 
static const std::string s_geo_id = "geo_id"
 
static const std::string s_module_configuration = "module_configuration"
 
- Static Public Attributes inherited from dunedaq::confmodel::DaqModule
static const std::string & s_class_name
 
static const std::string s_inputs = "inputs"
 
static const std::string s_outputs = "outputs"
 
static const std::string s_used_resources = "used_resources"
 

Protected Member Functions

 TriggerDataHandlerModule (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TriggerDataHandlerModule () 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
 
 TriggerDataHandlerModule (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TriggerDataHandlerModule () 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
 
- Protected Member Functions inherited from dunedaq::appmodel::DataHandlerModule
 DataHandlerModule (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DataHandlerModule () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DataHandlerModule (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DataHandlerModule () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::DaqModule
 DaqModule (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaqModule () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DaqModule (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaqModule () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 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::vector< const dunedaq::appmodel::SourceIDConf * > m_enabled_source_ids
 
std::vector< const dunedaq::appmodel::SourceIDConf * > m_mandatory_source_ids
 

Friends

class conffwk::Configuration
 
class conffwk::DalObject
 
class conffwk::DalFactory
 
class conffwk::DalRegistry
 

Additional Inherited Members

- Protected Attributes inherited from dunedaq::conffwk::DalObject
std::mutex m_mutex
 Used to protect changes of DAL object.
 
bool p_was_read
 is true, if the object was read
 
DalRegistryp_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)
 

Detailed Description

Definition at line 32 of file TriggerDataHandlerModule.hpp.

Constructor & Destructor Documentation

◆ TriggerDataHandlerModule() [1/2]

dunedaq::appmodel::TriggerDataHandlerModule::TriggerDataHandlerModule ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

Definition at line 31 of file TriggerDataHandlerModule.cpp.

31 :
34
35 {
36 ;
37 }
DataHandlerModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~TriggerDataHandlerModule() [1/2]

dunedaq::appmodel::TriggerDataHandlerModule::~TriggerDataHandlerModule ( )
protectedvirtualnoexcept

Definition at line 82 of file TriggerDataHandlerModule.cpp.

83 {
84 }

◆ TriggerDataHandlerModule() [2/2]

dunedaq::appmodel::TriggerDataHandlerModule::TriggerDataHandlerModule ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

◆ ~TriggerDataHandlerModule() [2/2]

virtual dunedaq::appmodel::TriggerDataHandlerModule::~TriggerDataHandlerModule ( )
protectedvirtualnoexcept

Member Function Documentation

◆ __get_enabled_source_ids_str() [1/2]

static const std::string & dunedaq::appmodel::TriggerDataHandlerModule::__get_enabled_source_ids_str ( )
inlinestaticnoexcept

Definition at line 94 of file TriggerDataHandlerModule.hpp.

◆ __get_enabled_source_ids_str() [2/2]

static const std::string & dunedaq::appmodel::TriggerDataHandlerModule::__get_enabled_source_ids_str ( )
inlinestaticnoexcept

Definition at line 94 of file TriggerDataHandlerModule.hpp.

94{ return s_enabled_source_ids; }

◆ __get_mandatory_source_ids_str() [1/2]

static const std::string & dunedaq::appmodel::TriggerDataHandlerModule::__get_mandatory_source_ids_str ( )
inlinestaticnoexcept

Definition at line 95 of file TriggerDataHandlerModule.hpp.

◆ __get_mandatory_source_ids_str() [2/2]

static const std::string & dunedaq::appmodel::TriggerDataHandlerModule::__get_mandatory_source_ids_str ( )
inlinestaticnoexcept

Definition at line 95 of file TriggerDataHandlerModule.hpp.

95{ return s_mandatory_source_ids; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::TriggerDataHandlerModule::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::appmodel::DataHandlerModule.

Definition at line 86 of file TriggerDataHandlerModule.cpp.

87 {
88 std::vector<const dunedaq::conffwk::DalObject *> vec;
89
90 if (!get(name, vec, upcast_unregistered, true))
91 throw_get_ex(name, s_class_name, this);
92
93 return vec;
94 }
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...
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.
Definition DalObject.cpp:82

◆ get() [2/4]

virtual std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::TriggerDataHandlerModule::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::appmodel::DataHandlerModule.

◆ get() [3/4]

bool dunedaq::appmodel::TriggerDataHandlerModule::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 96 of file TriggerDataHandlerModule.cpp.

97 {
98 if (first_call)
99 {
100 std::lock_guard scoped_lock(m_mutex);
101
102 check();
103 check_init();
104
105 if (get_rel_objects(name, upcast_unregistered, vec))
106 return true;
107 }
108
109 if (DataHandlerModule::get(name, vec, upcast_unregistered, false)) return true;
110
111 if (first_call)
112 return get_algo_objects(name, vec);
113
114 return false;
115 }
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...
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.
Definition DalObject.cpp:8
std::mutex m_mutex
Used to protect changes of DAL object.
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.
Definition DalObject.cpp:25
void check_init() const
Check and initialize object if necessary.

◆ get() [4/4]

bool dunedaq::appmodel::TriggerDataHandlerModule::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_enabled_source_ids() [1/2]

const std::vector< const dunedaq::appmodel::SourceIDConf * > & dunedaq::appmodel::TriggerDataHandlerModule::get_enabled_source_ids ( ) const
inline

Get "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 106 of file TriggerDataHandlerModule.hpp.

107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 check_init();
112 }
std::vector< const dunedaq::appmodel::SourceIDConf * > m_enabled_source_ids

◆ get_enabled_source_ids() [2/2]

const std::vector< const dunedaq::appmodel::SourceIDConf * > & dunedaq::appmodel::TriggerDataHandlerModule::get_enabled_source_ids ( ) const
inline

Get "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 106 of file TriggerDataHandlerModule.hpp.

107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 check_init();
112 }

◆ get_mandatory_source_ids() [1/2]

const std::vector< const dunedaq::appmodel::SourceIDConf * > & dunedaq::appmodel::TriggerDataHandlerModule::get_mandatory_source_ids ( ) const
inline

Get "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 133 of file TriggerDataHandlerModule.hpp.

134 {
135 std::lock_guard scoped_lock(m_mutex);
136 check();
137 check_init();
139 }
std::vector< const dunedaq::appmodel::SourceIDConf * > m_mandatory_source_ids

◆ get_mandatory_source_ids() [2/2]

const std::vector< const dunedaq::appmodel::SourceIDConf * > & dunedaq::appmodel::TriggerDataHandlerModule::get_mandatory_source_ids ( ) const
inline

Get "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 133 of file TriggerDataHandlerModule.hpp.

134 {
135 std::lock_guard scoped_lock(m_mutex);
136 check();
137 check_init();
139 }

◆ init() [1/2]

void dunedaq::appmodel::TriggerDataHandlerModule::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::DataHandlerModule.

Definition at line 67 of file TriggerDataHandlerModule.cpp.

68 {
69 DataHandlerModule::init(init_children);
70
71 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
72
73 try {
76 }
77 catch (dunedaq::conffwk::Exception & ex) {
78 throw_init_ex(ex);
79 }
80 }
virtual void init(bool init_children)
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
DalRegistry & p_registry
Configuration object.
ConfigObject p_obj
Config object used by given template object.
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::TriggerDataHandlerModule::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::DataHandlerModule.

◆ print() [1/2]

void dunedaq::appmodel::TriggerDataHandlerModule::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the TriggerDataHandlerModule object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::appmodel::DataHandlerModule.

Definition at line 40 of file TriggerDataHandlerModule.cpp.

41 {
42 check_init();
43
44 try {
45 const std::string str(indent+2, ' ');
46
47 if (print_header)
48 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
49
50
51 // print direct super-classes
52
54
55
56 // print direct relationships
57
60 }
61 catch (dunedaq::conffwk::Exception & ex) {
63 }
64 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the DataHandlerModule object.
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
void p_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-value relationship

◆ print() [2/2]

virtual void dunedaq::appmodel::TriggerDataHandlerModule::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the TriggerDataHandlerModule object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::appmodel::DataHandlerModule.

◆ set_enabled_source_ids() [1/2]

void dunedaq::appmodel::TriggerDataHandlerModule::set_enabled_source_ids ( const std::vector< const dunedaq::appmodel::SourceIDConf * > & value)

Set "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 117 of file TriggerDataHandlerModule.cpp.

118 {
120 }
void _set_objects(const std::string &name, const std::vector< const T * > &value)
Helper method for generated set multi-value relationship methods.

◆ set_enabled_source_ids() [2/2]

void dunedaq::appmodel::TriggerDataHandlerModule::set_enabled_source_ids ( const std::vector< const dunedaq::appmodel::SourceIDConf * > & value)

Set "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_mandatory_source_ids() [1/2]

void dunedaq::appmodel::TriggerDataHandlerModule::set_mandatory_source_ids ( const std::vector< const dunedaq::appmodel::SourceIDConf * > & value)

Set "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 122 of file TriggerDataHandlerModule.cpp.

123 {
125 }

◆ set_mandatory_source_ids() [2/2]

void dunedaq::appmodel::TriggerDataHandlerModule::set_mandatory_source_ids ( const std::vector< const dunedaq::appmodel::SourceIDConf * > & value)

Set "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger decision.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 34 of file TriggerDataHandlerModule.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 36 of file TriggerDataHandlerModule.hpp.

◆ conffwk::DalObject

Definition at line 35 of file TriggerDataHandlerModule.hpp.

◆ conffwk::DalRegistry

Definition at line 37 of file TriggerDataHandlerModule.hpp.

Member Data Documentation

◆ m_enabled_source_ids

std::vector< const dunedaq::appmodel::SourceIDConf * > dunedaq::appmodel::TriggerDataHandlerModule::m_enabled_source_ids
private

Definition at line 83 of file TriggerDataHandlerModule.hpp.

◆ m_mandatory_source_ids

std::vector< const dunedaq::appmodel::SourceIDConf * > dunedaq::appmodel::TriggerDataHandlerModule::m_mandatory_source_ids
private

Definition at line 84 of file TriggerDataHandlerModule.hpp.

◆ s_class_name

static const std::string & dunedaq::appmodel::TriggerDataHandlerModule::s_class_name
static

The name of the configuration class.

Definition at line 49 of file TriggerDataHandlerModule.hpp.

◆ s_enabled_source_ids

static const std::string dunedaq::appmodel::TriggerDataHandlerModule::s_enabled_source_ids = "enabled_source_ids"
inlinestatic

Definition at line 91 of file TriggerDataHandlerModule.hpp.

◆ s_mandatory_source_ids

static const std::string dunedaq::appmodel::TriggerDataHandlerModule::s_mandatory_source_ids = "mandatory_source_ids"
inlinestatic

Definition at line 92 of file TriggerDataHandlerModule.hpp.


The documentation for this class was generated from the following files: