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

#include <TriggerApplication.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TriggerApplication 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_application_name () const
 Get "application_name" attribute value.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value.
 
bool get_tx_generation_disabled () const
 Get "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.
 
void set_tx_generation_disabled (bool value)
 Set "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.
 
const dunedaq::appmodel::DataReaderConfget_data_subscriber () const
 Get "data_subscriber" relationship value.
 
void set_data_subscriber (const dunedaq::appmodel::DataReaderConf *value)
 Set "data_subscriber" relationship value.
 
const dunedaq::appmodel::DataHandlerConfget_trigger_inputs_handler () const
 Get "trigger_inputs_handler" relationship value.
 
void set_trigger_inputs_handler (const dunedaq::appmodel::DataHandlerConf *value)
 Set "trigger_inputs_handler" relationship value.
 
void generate_modules (std::shared_ptr< appmodel::ConfigurationHelper >) const override
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TriggerApplication 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_application_name () const
 Get "application_name" attribute value.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value.
 
bool get_tx_generation_disabled () const
 Get "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.
 
void set_tx_generation_disabled (bool value)
 Set "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.
 
const dunedaq::appmodel::DataReaderConfget_data_subscriber () const
 Get "data_subscriber" relationship value.
 
void set_data_subscriber (const dunedaq::appmodel::DataReaderConf *value)
 Set "data_subscriber" relationship value.
 
const dunedaq::appmodel::DataHandlerConfget_trigger_inputs_handler () const
 Get "trigger_inputs_handler" relationship value.
 
void set_trigger_inputs_handler (const dunedaq::appmodel::DataHandlerConf *value)
 Set "trigger_inputs_handler" relationship value.
 
void generate_modules (std::shared_ptr< appmodel::ConfigurationHelper >) const override
 
- Public Member Functions inherited from dunedaq::appmodel::SmartDaqApplication
const dunedaq::appmodel::SourceIDConfget_source_id () const
 Get "source_id" relationship value.
 
void set_source_id (const dunedaq::appmodel::SourceIDConf *value)
 Set "source_id" relationship value.
 
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & get_queue_rules () const
 Get "queue_rules" relationship value.
 
void set_queue_rules (const std::vector< const dunedaq::appmodel::QueueConnectionRule * > &value)
 Set "queue_rules" relationship value.
 
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & get_network_rules () const
 Get "network_rules" relationship value.
 
void set_network_rules (const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > &value)
 Set "network_rules" relationship value.
 
const dunedaq::appmodel::SourceIDConfget_source_id () const
 Get "source_id" relationship value.
 
void set_source_id (const dunedaq::appmodel::SourceIDConf *value)
 Set "source_id" relationship value.
 
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & get_queue_rules () const
 Get "queue_rules" relationship value.
 
void set_queue_rules (const std::vector< const dunedaq::appmodel::QueueConnectionRule * > &value)
 Set "queue_rules" relationship value.
 
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & get_network_rules () const
 Get "network_rules" relationship value.
 
void set_network_rules (const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > &value)
 Set "network_rules" relationship value.
 
- Public Member Functions inherited from dunedaq::confmodel::DaqApplication
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< const dunedaq::confmodel::DaqModule * > & get_modules () const
 Get "modules" relationship value.
 
void set_modules (const std::vector< const dunedaq::confmodel::DaqModule * > &value)
 Set "modules" relationship value.
 
const std::vector< const dunedaq::confmodel::ActionPlan * > & get_action_plans () const
 Get "action_plans" relationship value.
 
void set_action_plans (const std::vector< const dunedaq::confmodel::ActionPlan * > &value)
 Set "action_plans" relationship value.
 
std::set< const dunedaq::confmodel::HostComponent * > get_used_hostresources () const
 
const std::vector< std::string > construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const
 
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< const dunedaq::confmodel::DaqModule * > & get_modules () const
 Get "modules" relationship value.
 
void set_modules (const std::vector< const dunedaq::confmodel::DaqModule * > &value)
 Set "modules" relationship value.
 
const std::vector< const dunedaq::confmodel::ActionPlan * > & get_action_plans () const
 Get "action_plans" relationship value.
 
void set_action_plans (const std::vector< const dunedaq::confmodel::ActionPlan * > &value)
 Set "action_plans" relationship value.
 
std::set< const dunedaq::confmodel::HostComponent * > get_used_hostresources () const
 
const std::vector< std::string > construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const
 
- Public Member Functions inherited from dunedaq::confmodel::Application
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< std::string > & get_commandline_parameters () const
 Get "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
void set_commandline_parameters (const std::vector< std::string > &value)
 Set "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
const std::string & get_log_path () const
 Get "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
void set_log_path (const std::string &value)
 Set "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
const std::vector< const dunedaq::confmodel::VariableBase * > & get_application_environment () const
 Get "application_environment" relationship value. Define process environment for this application.
 
void set_application_environment (const std::vector< const dunedaq::confmodel::VariableBase * > &value)
 Set "application_environment" relationship value. Define process environment for this application.
 
const dunedaq::confmodel::VirtualHostget_runs_on () const
 Get "runs_on" relationship value. VirtualHost to run this application on.
 
void set_runs_on (const dunedaq::confmodel::VirtualHost *value)
 Set "runs_on" relationship value. VirtualHost to run this application on.
 
const std::vector< const dunedaq::confmodel::Service * > & get_exposes_service () const
 Get "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
void set_exposes_service (const std::vector< const dunedaq::confmodel::Service * > &value)
 Set "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
const dunedaq::confmodel::OpMonConfget_opmon_conf () const
 Get "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
void set_opmon_conf (const dunedaq::confmodel::OpMonConf *value)
 Set "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
const std::vector< std::string > parse_commandline_parameters () const
 
const std::string & get_application_name () const
 Get "application_name" attribute value. Name of the application binary to run.
 
void set_application_name (const std::string &value)
 Set "application_name" attribute value. Name of the application binary to run.
 
const std::vector< std::string > & get_commandline_parameters () const
 Get "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
void set_commandline_parameters (const std::vector< std::string > &value)
 Set "commandline_parameters" attribute value. command line parameters to add when starting the application.
 
const std::string & get_log_path () const
 Get "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
void set_log_path (const std::string &value)
 Set "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used.
 
const std::vector< const dunedaq::confmodel::VariableBase * > & get_application_environment () const
 Get "application_environment" relationship value. Define process environment for this application.
 
void set_application_environment (const std::vector< const dunedaq::confmodel::VariableBase * > &value)
 Set "application_environment" relationship value. Define process environment for this application.
 
const dunedaq::confmodel::VirtualHostget_runs_on () const
 Get "runs_on" relationship value. VirtualHost to run this application on.
 
void set_runs_on (const dunedaq::confmodel::VirtualHost *value)
 Set "runs_on" relationship value. VirtualHost to run this application on.
 
const std::vector< const dunedaq::confmodel::Service * > & get_exposes_service () const
 Get "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
void set_exposes_service (const std::vector< const dunedaq::confmodel::Service * > &value)
 Set "exposes_service" relationship value. Services exposed i.e. provided by this application.
 
const dunedaq::confmodel::OpMonConfget_opmon_conf () const
 Get "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
void set_opmon_conf (const dunedaq::confmodel::OpMonConf *value)
 Set "opmon_conf" relationship value. description of the monitoring behaviour in the application.
 
const std::vector< std::string > parse_commandline_parameters () const
 
- 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.
 
- Public Member Functions inherited from dunedaq::confmodel::Resource
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
 
virtual bool compute_disabled_state (const std::set< std::string > &) 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
 
virtual bool compute_disabled_state (const std::set< std::string > &) const
 

Static Public Member Functions

static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_tx_generation_disabled_str () noexcept
 
static const std::string & __get_data_subscriber_str () noexcept
 
static const std::string & __get_trigger_inputs_handler_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_tx_generation_disabled_str () noexcept
 
static const std::string & __get_data_subscriber_str () noexcept
 
static const std::string & __get_trigger_inputs_handler_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::SmartDaqApplication
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_queue_rules_str () noexcept
 
static const std::string & __get_network_rules_str () noexcept
 
static const std::string & __get_source_id_str () noexcept
 
static const std::string & __get_queue_rules_str () noexcept
 
static const std::string & __get_network_rules_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::DaqApplication
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_modules_str () noexcept
 
static const std::string & __get_action_plans_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_modules_str () noexcept
 
static const std::string & __get_action_plans_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::Application
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_commandline_parameters_str () noexcept
 
static const std::string & __get_log_path_str () noexcept
 
static const std::string & __get_application_environment_str () noexcept
 
static const std::string & __get_runs_on_str () noexcept
 
static const std::string & __get_exposes_service_str () noexcept
 
static const std::string & __get_opmon_conf_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_commandline_parameters_str () noexcept
 
static const std::string & __get_log_path_str () noexcept
 
static const std::string & __get_application_environment_str () noexcept
 
static const std::string & __get_runs_on_str () noexcept
 
static const std::string & __get_exposes_service_str () noexcept
 
static const std::string & __get_opmon_conf_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_application_name = "application_name"
 
static const std::string s_tx_generation_disabled = "tx_generation_disabled"
 
static const std::string s_data_subscriber = "data_subscriber"
 
static const std::string s_trigger_inputs_handler = "trigger_inputs_handler"
 
- Static Public Attributes inherited from dunedaq::appmodel::SmartDaqApplication
static const std::string & s_class_name
 
static const std::string s_source_id = "source_id"
 
static const std::string s_queue_rules = "queue_rules"
 
static const std::string s_network_rules = "network_rules"
 
- Static Public Attributes inherited from dunedaq::confmodel::DaqApplication
static const std::string & s_class_name
 
static const std::string s_application_name = "application_name"
 
static const std::string s_modules = "modules"
 
static const std::string s_action_plans = "action_plans"
 
- Static Public Attributes inherited from dunedaq::confmodel::Application
static const std::string & s_class_name
 
static const std::string s_application_name = "application_name"
 
static const std::string s_commandline_parameters = "commandline_parameters"
 
static const std::string s_log_path = "log_path"
 
static const std::string s_application_environment = "application_environment"
 
static const std::string s_runs_on = "runs_on"
 
static const std::string s_exposes_service = "exposes_service"
 
static const std::string s_opmon_conf = "opmon_conf"
 
- Static Public Attributes inherited from dunedaq::confmodel::Resource
static const std::string & s_class_name
 

Protected Member Functions

 TriggerApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TriggerApplication () 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
 
 TriggerApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TriggerApplication () 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::SmartDaqApplication
 SmartDaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~SmartDaqApplication () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 SmartDaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~SmartDaqApplication () 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::DaqApplication
 DaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaqApplication () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaqApplication () 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::Application
 Application (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Application () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Application (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Application () 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.
 
- Protected Member Functions inherited from dunedaq::confmodel::Resource
 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
 

Private Attributes

std::string m_application_name
 
bool m_tx_generation_disabled
 
const dunedaq::appmodel::DataReaderConfm_data_subscriber
 
const dunedaq::appmodel::DataHandlerConfm_trigger_inputs_handler
 

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 34 of file TriggerApplication.hpp.

Constructor & Destructor Documentation

◆ TriggerApplication() [1/2]

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

Definition at line 32 of file TriggerApplication.cpp.

32 :
36 m_data_subscriber (nullptr),
38
39 {
40 ;
41 }
SmartDaqApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const dunedaq::appmodel::DataReaderConf * m_data_subscriber
const dunedaq::appmodel::DataHandlerConf * m_trigger_inputs_handler
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~TriggerApplication() [1/2]

dunedaq::appmodel::TriggerApplication::~TriggerApplication ( )
protectedvirtualnoexcept

Definition at line 96 of file TriggerApplication.cpp.

97 {
98 }

◆ TriggerApplication() [2/2]

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

◆ ~TriggerApplication() [2/2]

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

Member Function Documentation

◆ __get_application_name_str() [1/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_application_name_str ( )
inlinestaticnoexcept

Definition at line 98 of file TriggerApplication.hpp.

98{ return s_application_name; }

◆ __get_application_name_str() [2/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_application_name_str ( )
inlinestaticnoexcept

Definition at line 98 of file TriggerApplication.hpp.

98{ return s_application_name; }

◆ __get_data_subscriber_str() [1/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_data_subscriber_str ( )
inlinestaticnoexcept

Definition at line 171 of file TriggerApplication.hpp.

171{ return s_data_subscriber; }

◆ __get_data_subscriber_str() [2/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_data_subscriber_str ( )
inlinestaticnoexcept

Definition at line 171 of file TriggerApplication.hpp.

171{ return s_data_subscriber; }

◆ __get_trigger_inputs_handler_str() [1/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_trigger_inputs_handler_str ( )
inlinestaticnoexcept

Definition at line 172 of file TriggerApplication.hpp.

172{ return s_trigger_inputs_handler; }
static const std::string s_trigger_inputs_handler

◆ __get_trigger_inputs_handler_str() [2/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_trigger_inputs_handler_str ( )
inlinestaticnoexcept

Definition at line 172 of file TriggerApplication.hpp.

172{ return s_trigger_inputs_handler; }

◆ __get_tx_generation_disabled_str() [1/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_tx_generation_disabled_str ( )
inlinestaticnoexcept

Definition at line 99 of file TriggerApplication.hpp.

static const std::string s_tx_generation_disabled

◆ __get_tx_generation_disabled_str() [2/2]

static const std::string & dunedaq::appmodel::TriggerApplication::__get_tx_generation_disabled_str ( )
inlinestaticnoexcept

Definition at line 99 of file TriggerApplication.hpp.

◆ generate_modules() [1/2]

void dunedaq::appmodel::TriggerApplication::generate_modules ( std::shared_ptr< appmodel::ConfigurationHelper > helper) const
overridevirtual

Generate daq module dal objects for streams of thie TriggerApplication on the fly

Implements dunedaq::appmodel::SmartDaqApplication.

Definition at line 75 of file TriggerApplication.cpp.

76{
77
78 std::vector<const confmodel::DaqModule*> modules;
79
80 ConfigObjectFactory obj_fac(this);
81
82 auto ti_conf = get_trigger_inputs_handler();
83 auto ti_class = ti_conf->get_template_for();
84 std::string handler_name("");
85 // Process the queue rules looking for inputs to our trigger handler modules
86 const QueueDescriptor* ti_inputq_desc = nullptr;
87
88 for (auto rule : get_queue_rules()) {
89 auto destination_class = rule->get_destination_class();
90 auto data_type = rule->get_descriptor()->get_data_type();
91 if (destination_class == "DataHandlerModule" || destination_class == ti_class) {
92 ti_inputq_desc = rule->get_descriptor();
93 }
94 }
95 // Process the network rules looking for the TP handler data reuest inputs
96 const NetworkConnectionDescriptor* req_net_desc = nullptr;
97 const NetworkConnectionDescriptor* tin_net_desc = nullptr;
98 const NetworkConnectionDescriptor* tout_net_desc = nullptr;
99 const NetworkConnectionDescriptor* tset_out_net_desc = nullptr;
100 for (auto rule : get_network_rules()) {
101 auto endpoint_class = rule->get_endpoint_class();
102 auto data_type = rule->get_descriptor()->get_data_type();
103
104 if (data_type == "DataRequest") {
105 req_net_desc = rule->get_descriptor();
106 }
107 else if (data_type == "TASet" || data_type == "TCSet"){
108 tset_out_net_desc = rule->get_descriptor();
109 }
110 else if (endpoint_class == "DataSubscriberModule") {
111 if (!tin_net_desc) {
112 tin_net_desc = rule->get_descriptor();
113 }
114 else if (rule->get_descriptor()->get_data_type() == tin_net_desc->get_data_type()) {
115 // For now endpoint_class of DataSubscriberModule for both input and output
116 // with the same data type is not possible.
117 throw (BadConf(ERS_HERE, "Have two network connections of the same data_type and the same endpoint_class"));
118 }
119 else if (tin_net_desc->get_data_type() == "TriggerActivity" &&
120 rule->get_descriptor()->get_data_type() == "TriggerCandidate") {
121 // For TA->TC
122 tout_net_desc = rule->get_descriptor();
123 handler_name = "tahandler";
124 }
125 else if (tin_net_desc->get_data_type() == "TriggerCandidate" &&
126 rule->get_descriptor()->get_data_type() == "TriggerActivity") {
127 // For TA->TC if we saved TC network connection as input first...
128 tout_net_desc = tin_net_desc;
129 tin_net_desc = rule->get_descriptor();
130 handler_name = "tahandler";
131 }
132 else {
133 throw (BadConf(ERS_HERE, "Unexpected input & output network connection descriptors provided"));
134 }
135 }
136 else if (data_type == "TriggerActivity" || data_type == "TriggerCandidate"){
137 tout_net_desc = rule->get_descriptor();
138 if (data_type == "TriggerActivity")
139 handler_name = "tphandler";
140 else
141 handler_name = "tahandler";
142 }
143 }
144
145 // Process special Network rules!
146 std::vector<conffwk::ConfigObject> fragOutObjs;
147 for (auto [uid, descriptor]:
148 helper->get_netdescriptors("Fragment", "DFApplication")) {
149 fragOutObjs.push_back(obj_fac.create_net_obj(descriptor, uid));
150 }
151 if ( req_net_desc== nullptr) {
152 throw (BadConf(ERS_HERE, "No network descriptor given to receive request and send data was set"));
153 }
154 if ( tin_net_desc== nullptr) {
155 throw (BadConf(ERS_HERE, "No network descriptor given to receive trigger objects"));
156 }
157 if ( tout_net_desc== nullptr) {
158 throw (BadConf(ERS_HERE, "No network descriptor given to publish trigger objects"));
159 }
160 if (ti_inputq_desc == nullptr) {
161 throw (BadConf(ERS_HERE, "No data input queue descriptor given"));
162 }
163
164 auto input_queue_obj = obj_fac.create_queue_obj(ti_inputq_desc);
165
166 auto req_net_obj = obj_fac.create_net_obj(req_net_desc, UID());
167
168 auto tin_net_obj = obj_fac.create_net_obj(tin_net_desc, ".*");
169
170 auto tout_net_obj = obj_fac.create_net_obj(tout_net_desc, UID());
171 conffwk::ConfigObject tset_out_net_obj;
172 if (tset_out_net_desc) {
173 tset_out_net_obj = obj_fac.create_net_obj(tset_out_net_desc, UID());
174 }
175
176
177 // build up the full list of outputs
178 std::vector<const conffwk::ConfigObject*> ti_output_objs;
179 for (auto& fNet : fragOutObjs) {
180 ti_output_objs.push_back(&fNet);
181 }
182 ti_output_objs.push_back(&tout_net_obj);
183 if (tset_out_net_desc!= nullptr) {
184 ti_output_objs.push_back(&tset_out_net_obj);
185 }
186
187 if (get_source_id() == nullptr) {
188 throw(BadConf(ERS_HERE, "No source_id associated with this TriggerApplication!"));
189 }
190 uint32_t source_id = get_source_id()->get_sid();
191 std::string ti_uid(handler_name + "-" + std::to_string(source_id));
192 auto ti_obj = obj_fac.create(ti_class, ti_uid);
193
194 ti_obj.set_by_val<uint32_t>("source_id", source_id);
195 ti_obj.set_by_val<uint32_t>("detector_id", 1); // 1 == kDAQ
196 ti_obj.set_by_val<bool>("post_processing_enabled", !get_tx_generation_disabled());
197
198 auto ti_conf_obj = ti_conf->config_object();
199 ti_obj.set_obj("module_configuration", &ti_conf_obj);
200 ti_obj.set_objs("inputs", {&input_queue_obj, &req_net_obj});
201 ti_obj.set_objs("outputs", ti_output_objs);
202 // Add to our list of modules to return
203 modules.push_back(obj_fac.get_dal<DataHandlerModule>(ti_uid));
204
205
206 // Now create the DataSubscriberModule object
207 auto rdr_conf = get_data_subscriber();
208 if (rdr_conf == nullptr) {
209 throw (BadConf(ERS_HERE, "No DataReaderModule configuration given"));
210 }
211
212 // Create a DataReaderModule
213
214 std::string reader_uid("data-reader-"+UID());
215 std::string reader_class = rdr_conf->get_template_for();
216 TLOG_DEBUG(7) << "creating OKS configuration object for Data subscriber class " << reader_class;
217 auto reader_obj = obj_fac.create(reader_class, reader_uid);
218 reader_obj.set_objs("inputs", {&tin_net_obj} );
219 reader_obj.set_objs("outputs", {&input_queue_obj} );
220 reader_obj.set_obj("configuration", &rdr_conf->config_object());
221
222 modules.push_back(obj_fac.get_dal<DataSubscriberModule>(reader_uid));
223
224
225 obj_fac.update_modules(modules);
226}
#define ERS_HERE
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & get_network_rules() const
Get "network_rules" relationship value.
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & get_queue_rules() const
Get "queue_rules" relationship value.
const dunedaq::appmodel::SourceIDConf * get_source_id() const
Get "source_id" relationship value.
uint32_t get_sid() const
Get "sid" attribute value.
const dunedaq::appmodel::DataHandlerConf * get_trigger_inputs_handler() const
Get "trigger_inputs_handler" relationship value.
const dunedaq::appmodel::DataReaderConf * get_data_subscriber() const
Get "data_subscriber" relationship value.
bool get_tx_generation_disabled() const
Get "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – on...
const std::string & UID() const noexcept
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ generate_modules() [2/2]

void dunedaq::appmodel::TriggerApplication::generate_modules ( std::shared_ptr< appmodel::ConfigurationHelper > ) const
overridevirtual

Generate daq module dal objects for streams of thie TriggerApplication on the fly

Implements dunedaq::appmodel::SmartDaqApplication.

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::TriggerApplication::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::SmartDaqApplication.

Reimplemented in dunedaq::appmodel::MLTApplication, and dunedaq::appmodel::MLTApplication.

Definition at line 100 of file TriggerApplication.cpp.

101 {
102 std::vector<const dunedaq::conffwk::DalObject *> vec;
103
104 if (!get(name, vec, upcast_unregistered, true))
105 throw_get_ex(name, s_class_name, this);
106
107 return vec;
108 }
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::TriggerApplication::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::SmartDaqApplication.

Reimplemented in dunedaq::appmodel::MLTApplication, and dunedaq::appmodel::MLTApplication.

◆ get() [3/4]

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

Definition at line 110 of file TriggerApplication.cpp.

111 {
112 if (first_call)
113 {
114 std::lock_guard scoped_lock(m_mutex);
115
116 check();
117 check_init();
118
119 if (get_rel_objects(name, upcast_unregistered, vec))
120 return true;
121 }
122
123 if (SmartDaqApplication::get(name, vec, upcast_unregistered, false)) return true;
124 if (Resource::get(name, vec, upcast_unregistered, false)) return true;
125
126 if (first_call)
127 return get_algo_objects(name, vec);
128
129 return false;
130 }
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::TriggerApplication::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_application_name() [1/2]

const std::string & dunedaq::appmodel::TriggerApplication::get_application_name ( ) const
inline

Get "application_name" attribute value.

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

Definition at line 109 of file TriggerApplication.hpp.

110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
114 return m_application_name;
115 }

◆ get_application_name() [2/2]

const std::string & dunedaq::appmodel::TriggerApplication::get_application_name ( ) const
inline

Get "application_name" attribute value.

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

Definition at line 109 of file TriggerApplication.hpp.

110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
114 return m_application_name;
115 }

◆ get_data_subscriber() [1/2]

const dunedaq::appmodel::DataReaderConf * dunedaq::appmodel::TriggerApplication::get_data_subscriber ( ) const
inline

Get "data_subscriber" relationship value.

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

Definition at line 182 of file TriggerApplication.hpp.

183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 check_init();
188 {
189 std::ostringstream text;
190 text << "relationship \"" << s_data_subscriber << "\" of object " << this << " is not set";
191 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
192 }
193 return m_data_subscriber;
194 }
Generic configuration exception.

◆ get_data_subscriber() [2/2]

const dunedaq::appmodel::DataReaderConf * dunedaq::appmodel::TriggerApplication::get_data_subscriber ( ) const
inline

Get "data_subscriber" relationship value.

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

Definition at line 182 of file TriggerApplication.hpp.

183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 check_init();
188 {
189 std::ostringstream text;
190 text << "relationship \"" << s_data_subscriber << "\" of object " << this << " is not set";
191 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
192 }
193 return m_data_subscriber;
194 }

◆ get_trigger_inputs_handler() [1/2]

const dunedaq::appmodel::DataHandlerConf * dunedaq::appmodel::TriggerApplication::get_trigger_inputs_handler ( ) const
inline

Get "trigger_inputs_handler" relationship value.

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

Definition at line 213 of file TriggerApplication.hpp.

214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 check_init();
219 {
220 std::ostringstream text;
221 text << "relationship \"" << s_trigger_inputs_handler << "\" of object " << this << " is not set";
222 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
223 }
225 }

◆ get_trigger_inputs_handler() [2/2]

const dunedaq::appmodel::DataHandlerConf * dunedaq::appmodel::TriggerApplication::get_trigger_inputs_handler ( ) const
inline

Get "trigger_inputs_handler" relationship value.

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

Definition at line 213 of file TriggerApplication.hpp.

214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 check_init();
219 {
220 std::ostringstream text;
221 text << "relationship \"" << s_trigger_inputs_handler << "\" of object " << this << " is not set";
222 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
223 }
225 }

◆ get_tx_generation_disabled() [1/2]

bool dunedaq::appmodel::TriggerApplication::get_tx_generation_disabled ( ) const
inline

Get "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.

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

Definition at line 141 of file TriggerApplication.hpp.

142 {
143 std::lock_guard scoped_lock(m_mutex);
144 check();
145 check_init();
147 }

◆ get_tx_generation_disabled() [2/2]

bool dunedaq::appmodel::TriggerApplication::get_tx_generation_disabled ( ) const
inline

Get "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.

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

Definition at line 141 of file TriggerApplication.hpp.

142 {
143 std::lock_guard scoped_lock(m_mutex);
144 check();
145 check_init();
147 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::SmartDaqApplication.

Reimplemented in dunedaq::appmodel::MLTApplication, and dunedaq::appmodel::MLTApplication.

Definition at line 78 of file TriggerApplication.cpp.

79 {
80 SmartDaqApplication::init(init_children);
81 Resource::init(init_children);
82
83 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
84
85 try {
90 }
91 catch (dunedaq::conffwk::Exception & ex) {
92 throw_init_ex(ex);
93 }
94 }
virtual void init(bool init_children)
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
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).

◆ init() [2/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::SmartDaqApplication.

Reimplemented in dunedaq::appmodel::MLTApplication, and dunedaq::appmodel::MLTApplication.

◆ print() [1/2]

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

Print details of the TriggerApplication 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::SmartDaqApplication.

Reimplemented in dunedaq::appmodel::MLTApplication, and dunedaq::appmodel::MLTApplication.

Definition at line 44 of file TriggerApplication.cpp.

45 {
46 check_init();
47
48 try {
49 const std::string str(indent+2, ' ');
50
51 if (print_header)
52 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
53
54
55 // print direct super-classes
56
59
60
61 // print direct attributes
62
65
66
67 // print direct relationships
68
71 }
72 catch (dunedaq::conffwk::Exception & ex) {
74 }
75 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the SmartDaqApplication 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
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the Resource object.
Definition Resource.cpp:22
void p_sv_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-value relationship
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute

◆ print() [2/2]

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

Print details of the TriggerApplication 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::SmartDaqApplication.

Reimplemented in dunedaq::appmodel::MLTApplication, and dunedaq::appmodel::MLTApplication.

◆ set_application_name() [1/2]

void dunedaq::appmodel::TriggerApplication::set_application_name ( const std::string & value)
inline

Set "application_name" attribute value.

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

Definition at line 124 of file TriggerApplication.hpp.

125 {
126 std::lock_guard scoped_lock(m_mutex);
127 check();
128 clear();
130 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_application_name() [2/2]

void dunedaq::appmodel::TriggerApplication::set_application_name ( const std::string & value)
inline

Set "application_name" attribute value.

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

Definition at line 124 of file TriggerApplication.hpp.

125 {
126 std::lock_guard scoped_lock(m_mutex);
127 check();
128 clear();
130 }

◆ set_data_subscriber() [1/2]

void dunedaq::appmodel::TriggerApplication::set_data_subscriber ( const dunedaq::appmodel::DataReaderConf * value)

Set "data_subscriber" relationship value.

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

Definition at line 132 of file TriggerApplication.cpp.

133 {
135 }
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.

◆ set_data_subscriber() [2/2]

void dunedaq::appmodel::TriggerApplication::set_data_subscriber ( const dunedaq::appmodel::DataReaderConf * value)

Set "data_subscriber" relationship value.

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

◆ set_trigger_inputs_handler() [1/2]

void dunedaq::appmodel::TriggerApplication::set_trigger_inputs_handler ( const dunedaq::appmodel::DataHandlerConf * value)

Set "trigger_inputs_handler" relationship value.

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

Definition at line 137 of file TriggerApplication.cpp.

138 {
140 }

◆ set_trigger_inputs_handler() [2/2]

void dunedaq::appmodel::TriggerApplication::set_trigger_inputs_handler ( const dunedaq::appmodel::DataHandlerConf * value)

Set "trigger_inputs_handler" relationship value.

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

◆ set_tx_generation_disabled() [1/2]

void dunedaq::appmodel::TriggerApplication::set_tx_generation_disabled ( bool value)
inline

Set "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.

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

Definition at line 157 of file TriggerApplication.hpp.

158 {
159 std::lock_guard scoped_lock(m_mutex);
160 check();
161 clear();
163 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_tx_generation_disabled() [2/2]

void dunedaq::appmodel::TriggerApplication::set_tx_generation_disabled ( bool value)
inline

Set "tx_generation_disabled" attribute value. Disable TA/TC generation as a post-processing task – only to be done by the experts for e.g. TP performance studies.

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

Definition at line 157 of file TriggerApplication.hpp.

158 {
159 std::lock_guard scoped_lock(m_mutex);
160 check();
161 clear();
163 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 36 of file TriggerApplication.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 38 of file TriggerApplication.hpp.

◆ conffwk::DalObject

Definition at line 37 of file TriggerApplication.hpp.

◆ conffwk::DalRegistry

Definition at line 39 of file TriggerApplication.hpp.

Member Data Documentation

◆ m_application_name

std::string dunedaq::appmodel::TriggerApplication::m_application_name
private

Definition at line 85 of file TriggerApplication.hpp.

◆ m_data_subscriber

const dunedaq::appmodel::DataReaderConf * dunedaq::appmodel::TriggerApplication::m_data_subscriber
private

Definition at line 87 of file TriggerApplication.hpp.

◆ m_trigger_inputs_handler

const dunedaq::appmodel::DataHandlerConf * dunedaq::appmodel::TriggerApplication::m_trigger_inputs_handler
private

Definition at line 88 of file TriggerApplication.hpp.

◆ m_tx_generation_disabled

bool dunedaq::appmodel::TriggerApplication::m_tx_generation_disabled
private

Definition at line 86 of file TriggerApplication.hpp.

◆ s_application_name

static const std::string dunedaq::appmodel::TriggerApplication::s_application_name = "application_name"
inlinestatic

Definition at line 95 of file TriggerApplication.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 51 of file TriggerApplication.hpp.

◆ s_data_subscriber

static const std::string dunedaq::appmodel::TriggerApplication::s_data_subscriber = "data_subscriber"
inlinestatic

Definition at line 168 of file TriggerApplication.hpp.

◆ s_trigger_inputs_handler

static const std::string dunedaq::appmodel::TriggerApplication::s_trigger_inputs_handler = "trigger_inputs_handler"
inlinestatic

Definition at line 169 of file TriggerApplication.hpp.

◆ s_tx_generation_disabled

static const std::string dunedaq::appmodel::TriggerApplication::s_tx_generation_disabled = "tx_generation_disabled"
inlinestatic

Definition at line 96 of file TriggerApplication.hpp.


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