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

#include <TPReplayApplication.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TPReplayApplication 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.
 
const std::vector< const dunedaq::appmodel::SourceIDConf * > & get_tp_source_ids () const
 Get "tp_source_ids" relationship value.
 
void set_tp_source_ids (const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
 Set "tp_source_ids" relationship value.
 
const dunedaq::appmodel::TPReplayModuleConfget_tprm_conf () const
 Get "tprm_conf" relationship value.
 
void set_tprm_conf (const dunedaq::appmodel::TPReplayModuleConf *value)
 Set "tprm_conf" relationship value.
 
const dunedaq::appmodel::DataHandlerConfget_tp_handler () const
 Get "tp_handler" relationship value.
 
void set_tp_handler (const dunedaq::appmodel::DataHandlerConf *value)
 Set "tp_handler" relationship value.
 
std::vector< const dunedaq::confmodel::DaqModule * > generate_modules (const confmodel::Session *) const override
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TPReplayApplication 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.
 
const std::vector< const dunedaq::appmodel::SourceIDConf * > & get_tp_source_ids () const
 Get "tp_source_ids" relationship value.
 
void set_tp_source_ids (const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
 Set "tp_source_ids" relationship value.
 
const dunedaq::appmodel::TPReplayModuleConfget_tprm_conf () const
 Get "tprm_conf" relationship value.
 
void set_tprm_conf (const dunedaq::appmodel::TPReplayModuleConf *value)
 Set "tprm_conf" relationship value.
 
const dunedaq::appmodel::DataHandlerConfget_tp_handler () const
 Get "tp_handler" relationship value.
 
void set_tp_handler (const dunedaq::appmodel::DataHandlerConf *value)
 Set "tp_handler" relationship value.
 
std::vector< const dunedaq::confmodel::DaqModule * > generate_modules (const confmodel::Session *) const override
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceSetAND
- Public Member Functions inherited from dunedaq::confmodel::ResourceSet
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).
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceBase
- Public Member Functions inherited from dunedaq::confmodel::Component
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
 
- 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::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 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.
 
const std::vector< std::string > construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const
 
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 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.
 
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
 

Static Public Member Functions

static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_tp_source_ids_str () noexcept
 
static const std::string & __get_tprm_conf_str () noexcept
 
static const std::string & __get_tp_handler_str () noexcept
 
static const std::string & __get_application_name_str () noexcept
 
static const std::string & __get_tp_source_ids_str () noexcept
 
static const std::string & __get_tprm_conf_str () noexcept
 
static const std::string & __get_tp_handler_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::ResourceSet
static const std::string & __get_contains_str () noexcept
 
static const std::string & __get_contains_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 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_action_plans_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 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 Attributes

static const std::string & s_class_name
 
static const std::string s_application_name = "application_name"
 
static const std::string s_tp_source_ids = "tp_source_ids"
 
static const std::string s_tprm_conf = "tprm_conf"
 
static const std::string s_tp_handler = "tp_handler"
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSetAND
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSet
static const std::string & s_class_name
 
static const std::string s_contains = "contains"
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceBase
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Component
static const std::string & s_class_name
 
- 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 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"
 

Protected Member Functions

 TPReplayApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TPReplayApplication () 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
 
 TPReplayApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TPReplayApplication () 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::confmodel::ResourceSetAND
 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
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceSet
 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
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceBase
 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
 
- Protected Member Functions inherited from dunedaq::confmodel::Component
 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
 
- 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::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::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
 

Private Attributes

std::string m_application_name
 
std::vector< const dunedaq::appmodel::SourceIDConf * > m_tp_source_ids
 
const dunedaq::appmodel::TPReplayModuleConfm_tprm_conf
 
const dunedaq::appmodel::DataHandlerConfm_tp_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 39 of file TPReplayApplication.hpp.

Constructor & Destructor Documentation

◆ TPReplayApplication() [1/2]

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

Definition at line 33 of file TPReplayApplication.cpp.

33 :
37 m_tprm_conf (nullptr),
38 m_tp_handler (nullptr)
39
40 {
41 ;
42 }
SmartDaqApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const dunedaq::appmodel::DataHandlerConf * m_tp_handler
const dunedaq::appmodel::TPReplayModuleConf * m_tprm_conf
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~TPReplayApplication() [1/2]

dunedaq::appmodel::TPReplayApplication::~TPReplayApplication ( )
protectedvirtualnoexcept

Definition at line 97 of file TPReplayApplication.cpp.

98 {
99 }

◆ TPReplayApplication() [2/2]

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

◆ ~TPReplayApplication() [2/2]

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

Member Function Documentation

◆ __get_application_name_str() [1/2]

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

Definition at line 102 of file TPReplayApplication.hpp.

102{ return s_application_name; }

◆ __get_application_name_str() [2/2]

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

Definition at line 102 of file TPReplayApplication.hpp.

102{ return s_application_name; }

◆ __get_tp_handler_str() [1/2]

static const std::string & dunedaq::appmodel::TPReplayApplication::__get_tp_handler_str ( )
inlinestaticnoexcept

Definition at line 144 of file TPReplayApplication.hpp.

144{ return s_tp_handler; }

◆ __get_tp_handler_str() [2/2]

static const std::string & dunedaq::appmodel::TPReplayApplication::__get_tp_handler_str ( )
inlinestaticnoexcept

Definition at line 144 of file TPReplayApplication.hpp.

144{ return s_tp_handler; }

◆ __get_tp_source_ids_str() [1/2]

static const std::string & dunedaq::appmodel::TPReplayApplication::__get_tp_source_ids_str ( )
inlinestaticnoexcept

Definition at line 142 of file TPReplayApplication.hpp.

142{ return s_tp_source_ids; }

◆ __get_tp_source_ids_str() [2/2]

static const std::string & dunedaq::appmodel::TPReplayApplication::__get_tp_source_ids_str ( )
inlinestaticnoexcept

Definition at line 142 of file TPReplayApplication.hpp.

142{ return s_tp_source_ids; }

◆ __get_tprm_conf_str() [1/2]

static const std::string & dunedaq::appmodel::TPReplayApplication::__get_tprm_conf_str ( )
inlinestaticnoexcept

Definition at line 143 of file TPReplayApplication.hpp.

143{ return s_tprm_conf; }

◆ __get_tprm_conf_str() [2/2]

static const std::string & dunedaq::appmodel::TPReplayApplication::__get_tprm_conf_str ( )
inlinestaticnoexcept

Definition at line 143 of file TPReplayApplication.hpp.

143{ return s_tprm_conf; }

◆ generate_modules() [1/2]

std::vector< const confmodel::DaqModule * > dunedaq::appmodel::TPReplayApplication::generate_modules ( const confmodel::Session * ) const
overridevirtual

Generate daq module dal objects for TPReplayApplication on the fly

Reimplemented from dunedaq::appmodel::SmartDaqApplication.

Definition at line 48 of file TPReplayApplication.cpp.

49{
50
51 std::vector<const confmodel::DaqModule*> modules;
52
53 ConfigObjectFactory obj_fac(this);
54
55 /**************************************************************
56 * Instantiate the Trigger Primitive Maker Module module
57 **************************************************************/
58
59 auto tprm_conf = get_tprm_conf();
60
61 if (!tprm_conf) {
62 throw(BadConf(ERS_HERE, "No TPPM configuration in TPReplayApplication given"));
63 }
64
65 const std::string tprm_uid(tprm_conf->UID());
66 const std::string tprm_class = tprm_conf->get_template_for();
67 auto tpm_obj = obj_fac.create(tprm_class, tprm_uid);
68 tpm_obj.set_obj("configuration", &(tprm_conf->config_object()));
69
70 /**************************************************************
71 * Get total planes from config
72 **************************************************************/
73 const int total_planes = tprm_conf->get_total_planes();
74
75 /**************************************************************
76 * Extract # of filtered planes
77 **************************************************************/
78 const auto plane_filtering = tprm_conf->get_filter_out_plane();
79 if (plane_filtering.size() >= 3) {
80 throw(BadConf(ERS_HERE,
81 "TPReplayApplication: too many planes configured for filtering! At most 2 planes can be filtered!"));
82 }
83
84 /**************************************************************
85 * Instantiate the TP Handler (TA Maker) module(s)
86 **************************************************************/
87 auto tph_conf = get_tp_handler();
88 if (!tph_conf) {
89 throw(BadConf(ERS_HERE, "TP handler configuration object is missing"));
90 }
91 std::string tph_class = "";
92 if (tph_conf != nullptr) {
93 tph_class = tph_conf->get_template_for();
94 }
95
96 // For now, have X (X=total_planes) identical config TP Handlers
97 std::vector<conffwk::ConfigObject> TPHs;
98 std::vector<std::string> TPHs_uids;
99
100 // Source IDs
101 auto tpsrc_ids = get_tp_source_ids();
102 if (tpsrc_ids.size() < static_cast<size_t>(total_planes)) {
103 throw(BadConf(ERS_HERE, "Not enough TP source IDs provided"));
104 }
105
106 const auto tph_conf_obj = tph_conf->config_object();
107 for (int i = 0; i < total_planes; i++) {
108 std::string tp_uid = "tphandler-tpreplay-" + std::to_string(i + 1);
109 TPHs_uids.push_back(tp_uid);
110 auto tph_obj = obj_fac.create(tph_class, tp_uid);
111 tph_obj.set_by_val<uint32_t>("source_id", tpsrc_ids[i]->get_sid());
112 tph_obj.set_by_val<uint32_t>("detector_id", 1); // 1 == kDAQ
113 tph_obj.set_by_val<bool>("post_processing_enabled", true);
114 tph_obj.set_obj("module_configuration", &tph_conf_obj);
115 TPHs.push_back(tph_obj);
116 }
117
118 /**************************************************************
119 * Deal with queues
120 **************************************************************/
121 // Load queue configurations
122 const QueueDescriptor* tp_inputq_desc = nullptr;
123
124 for (const auto& rule : get_queue_rules()) {
125 auto destination_class = rule->get_destination_class();
126 auto data_type = rule->get_descriptor()->get_data_type();
127 if (destination_class == "TriggerDataHandlerModule" && data_type == "TriggerPrimitiveVector") {
128 tp_inputq_desc = rule->get_descriptor();
129 }
130 }
131 if (!tp_inputq_desc) {
132 throw(BadConf(ERS_HERE, "No matching queue descriptor found for TP input"));
133 }
134
135 // Same as above (ROUs * planes queues), later dynamically
136 std::vector<conffwk::ConfigObject> TP_queues;
137 for (int i = 0; i < total_planes; i++) {
138 std::string tp_q_uid = "tpinput-" + std::to_string(i + 1);
139 auto tp_q_obj = obj_fac.create_queue_obj(tp_inputq_desc, tp_q_uid);
140 TP_queues.push_back(tp_q_obj);
141 }
142
143 /**************************************************************
144 * Deal with network connections
145 **************************************************************/
146 const NetworkConnectionDescriptor* ta_net_desc = nullptr;
147 const NetworkConnectionDescriptor* dr_net_desc = nullptr;
148
149 for (const auto& rule : get_network_rules()) {
150 auto endpoint_class = rule->get_endpoint_class();
151 auto data_type = rule->get_descriptor()->get_data_type();
152 if (data_type == "TriggerActivity") {
153 ta_net_desc = rule->get_descriptor();
154 } else if (data_type == "DataRequest") {
155 dr_net_desc = rule->get_descriptor();
156 }
157 }
158 if (!ta_net_desc || !dr_net_desc) {
159 throw(BadConf(ERS_HERE, "Missing network descriptors for TA or DR"));
160 }
161
162 // Create vectors for network connections
163 std::vector<conffwk::ConfigObject> ta_net_objects;
164 std::vector<conffwk::ConfigObject> dr_net_objects;
165
166 // Outputs for each handler
167 for (int i = 0; i < total_planes; i++) {
168 const auto ta_service_obj = ta_net_desc->get_associated_service()->config_object();
169 const std::string ta_stream_uid = ta_net_desc->get_uid_base() + UID() + "-" + std::to_string(i + 1);
170 auto ta_net_obj = obj_fac.create_net_obj(ta_net_desc, ta_stream_uid);
171 ta_net_obj.set_obj("associated_service", &ta_service_obj);
172 ta_net_objects.push_back(ta_net_obj);
173 }
174
175 // Data requests
176 for (int i = 0; i < total_planes; i++) {
177 const auto dr_service_obj = dr_net_desc->get_associated_service()->config_object();
178 // Format the integer with leading zeros to maintain consistent length
179 std::ostringstream oss;
180 oss << UID() << "-1000" << std::setfill('0') << std::setw(2) // Ensures at least 2 digits (e.g., 01, 10)
181 << (i + 1);
182 const std::string dr_stream_uid = oss.str();
183 auto dr_net_obj = obj_fac.create_net_obj(dr_net_desc, dr_stream_uid);
184 dr_net_obj.set_obj("associated_service", &dr_service_obj);
185 dr_net_objects.push_back(dr_net_obj);
186 }
187
188 /**************************************************************
189 * Finally set inputs & outputs
190 **************************************************************/
191 // Convert TP_queues to a vector of raw pointers
192 std::vector<const conffwk::ConfigObject*> raw_tp_queues;
193 for (const auto& tp_queue : TP_queues) {
194 raw_tp_queues.push_back(&tp_queue);
195 }
196 tpm_obj.set_objs("outputs", raw_tp_queues);
197
198 for (int i = 0; i < total_planes; i++) {
199 // Convert network objects to raw pointers
200 const std::vector<const conffwk::ConfigObject*> temp_inputs = { &TP_queues[i], &dr_net_objects[i] };
201 const std::vector<const conffwk::ConfigObject*> temp_outputs = { &ta_net_objects[i] };
202 TPHs[i].set_objs("inputs", temp_inputs);
203 TPHs[i].set_objs("outputs", temp_outputs);
204 }
205
206 // Store modules
207 modules.push_back(obj_fac.get_dal<confmodel::DaqModule>(tprm_conf->UID()));
208 for (int i = 0; i < total_planes; i++) {
209 modules.push_back(obj_fac.get_dal<confmodel::DaqModule>(TPHs_uids[i]));
210 }
211
212 return modules;
213}
#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 std::vector< const dunedaq::appmodel::SourceIDConf * > & get_tp_source_ids() const
Get "tp_source_ids" relationship value.
const dunedaq::appmodel::DataHandlerConf * get_tp_handler() const
Get "tp_handler" relationship value.
const dunedaq::appmodel::TPReplayModuleConf * get_tprm_conf() const
Get "tprm_conf" relationship value.
const std::string & UID() const noexcept

◆ generate_modules() [2/2]

std::vector< const dunedaq::confmodel::DaqModule * > dunedaq::appmodel::TPReplayApplication::generate_modules ( const confmodel::Session * ) const
overridevirtual

Generate daq module dal objects for TPReplayApplication on the fly

Reimplemented from dunedaq::appmodel::SmartDaqApplication.

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::TPReplayApplication::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::confmodel::ResourceSetAND.

Definition at line 101 of file TPReplayApplication.cpp.

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

◆ get() [3/4]

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

Definition at line 111 of file TPReplayApplication.cpp.

112 {
113 if (first_call)
114 {
115 std::lock_guard scoped_lock(m_mutex);
116
117 check();
118 check_init();
119
120 if (get_rel_objects(name, upcast_unregistered, vec))
121 return true;
122 }
123
124 if (ResourceSetAND::get(name, vec, upcast_unregistered, false)) return true;
125 if (SmartDaqApplication::get(name, vec, upcast_unregistered, false)) return true;
126
127 if (first_call)
128 return get_algo_objects(name, vec);
129
130 return false;
131 }
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::TPReplayApplication::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::TPReplayApplication::get_application_name ( ) const
inline

Get "application_name" attribute value.

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

Definition at line 112 of file TPReplayApplication.hpp.

113 {
114 std::lock_guard scoped_lock(m_mutex);
115 check();
116 check_init();
117 return m_application_name;
118 }

◆ get_application_name() [2/2]

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

Get "application_name" attribute value.

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

Definition at line 112 of file TPReplayApplication.hpp.

113 {
114 std::lock_guard scoped_lock(m_mutex);
115 check();
116 check_init();
117 return m_application_name;
118 }

◆ get_tp_handler() [1/2]

const dunedaq::appmodel::DataHandlerConf * dunedaq::appmodel::TPReplayApplication::get_tp_handler ( ) const
inline

Get "tp_handler" relationship value.

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

Definition at line 210 of file TPReplayApplication.hpp.

211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 check_init();
215 if (!m_tp_handler)
216 {
217 std::ostringstream text;
218 text << "relationship \"" << s_tp_handler << "\" of object " << this << " is not set";
219 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
220 }
221 return m_tp_handler;
222 }
Generic configuration exception.

◆ get_tp_handler() [2/2]

const dunedaq::appmodel::DataHandlerConf * dunedaq::appmodel::TPReplayApplication::get_tp_handler ( ) const
inline

Get "tp_handler" relationship value.

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

Definition at line 210 of file TPReplayApplication.hpp.

211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 check_init();
215 if (!m_tp_handler)
216 {
217 std::ostringstream text;
218 text << "relationship \"" << s_tp_handler << "\" of object " << this << " is not set";
219 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
220 }
221 return m_tp_handler;
222 }

◆ get_tp_source_ids() [1/2]

const std::vector< const dunedaq::appmodel::SourceIDConf * > & dunedaq::appmodel::TPReplayApplication::get_tp_source_ids ( ) const
inline

Get "tp_source_ids" relationship value.

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

Definition at line 154 of file TPReplayApplication.hpp.

155 {
156 std::lock_guard scoped_lock(m_mutex);
157 check();
158 check_init();
159 return m_tp_source_ids;
160 }
std::vector< const dunedaq::appmodel::SourceIDConf * > m_tp_source_ids

◆ get_tp_source_ids() [2/2]

const std::vector< const dunedaq::appmodel::SourceIDConf * > & dunedaq::appmodel::TPReplayApplication::get_tp_source_ids ( ) const
inline

Get "tp_source_ids" relationship value.

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

Definition at line 154 of file TPReplayApplication.hpp.

155 {
156 std::lock_guard scoped_lock(m_mutex);
157 check();
158 check_init();
159 return m_tp_source_ids;
160 }

◆ get_tprm_conf() [1/2]

const dunedaq::appmodel::TPReplayModuleConf * dunedaq::appmodel::TPReplayApplication::get_tprm_conf ( ) const
inline

Get "tprm_conf" relationship value.

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

Definition at line 179 of file TPReplayApplication.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
184 if (!m_tprm_conf)
185 {
186 std::ostringstream text;
187 text << "relationship \"" << s_tprm_conf << "\" of object " << this << " is not set";
188 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
189 }
190 return m_tprm_conf;
191 }

◆ get_tprm_conf() [2/2]

const dunedaq::appmodel::TPReplayModuleConf * dunedaq::appmodel::TPReplayApplication::get_tprm_conf ( ) const
inline

Get "tprm_conf" relationship value.

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

Definition at line 179 of file TPReplayApplication.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
184 if (!m_tprm_conf)
185 {
186 std::ostringstream text;
187 text << "relationship \"" << s_tprm_conf << "\" of object " << this << " is not set";
188 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
189 }
190 return m_tprm_conf;
191 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::ResourceSetAND.

Definition at line 79 of file TPReplayApplication.cpp.

80 {
81 ResourceSetAND::init(init_children);
82 SmartDaqApplication::init(init_children);
83
84 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
85
86 try {
91 }
92 catch (dunedaq::conffwk::Exception & ex) {
93 throw_init_ex(ex);
94 }
95 }
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).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::ResourceSetAND.

◆ print() [1/2]

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

Print details of the TPReplayApplication 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::confmodel::ResourceSetAND.

Definition at line 45 of file TPReplayApplication.cpp.

46 {
47 check_init();
48
49 try {
50 const std::string str(indent+2, ' ');
51
52 if (print_header)
53 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
54
55
56 // print direct super-classes
57
60
61
62 // print direct attributes
63
65
66
67 // print direct relationships
68
72 }
73 catch (dunedaq::conffwk::Exception & ex) {
75 }
76 }
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 ResourceSetAND object.
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_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-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::TPReplayApplication::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the TPReplayApplication 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::confmodel::ResourceSetAND.

◆ set_application_name() [1/2]

void dunedaq::appmodel::TPReplayApplication::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 127 of file TPReplayApplication.hpp.

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

◆ set_application_name() [2/2]

void dunedaq::appmodel::TPReplayApplication::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 127 of file TPReplayApplication.hpp.

128 {
129 std::lock_guard scoped_lock(m_mutex);
130 check();
131 clear();
133 }

◆ set_tp_handler() [1/2]

void dunedaq::appmodel::TPReplayApplication::set_tp_handler ( const dunedaq::appmodel::DataHandlerConf * value)

Set "tp_handler" relationship value.

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

Definition at line 143 of file TPReplayApplication.cpp.

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

◆ set_tp_handler() [2/2]

void dunedaq::appmodel::TPReplayApplication::set_tp_handler ( const dunedaq::appmodel::DataHandlerConf * value)

Set "tp_handler" relationship value.

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

◆ set_tp_source_ids() [1/2]

void dunedaq::appmodel::TPReplayApplication::set_tp_source_ids ( const std::vector< const dunedaq::appmodel::SourceIDConf * > & value)

Set "tp_source_ids" relationship value.

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

Definition at line 133 of file TPReplayApplication.cpp.

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

◆ set_tp_source_ids() [2/2]

void dunedaq::appmodel::TPReplayApplication::set_tp_source_ids ( const std::vector< const dunedaq::appmodel::SourceIDConf * > & value)

Set "tp_source_ids" relationship value.

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

◆ set_tprm_conf() [1/2]

void dunedaq::appmodel::TPReplayApplication::set_tprm_conf ( const dunedaq::appmodel::TPReplayModuleConf * value)

Set "tprm_conf" relationship value.

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

Definition at line 138 of file TPReplayApplication.cpp.

139 {
140 _set_object(s_tprm_conf, value);
141 }

◆ set_tprm_conf() [2/2]

void dunedaq::appmodel::TPReplayApplication::set_tprm_conf ( const dunedaq::appmodel::TPReplayModuleConf * value)

Set "tprm_conf" relationship value.

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

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 41 of file TPReplayApplication.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 43 of file TPReplayApplication.hpp.

◆ conffwk::DalObject

Definition at line 42 of file TPReplayApplication.hpp.

◆ conffwk::DalRegistry

Definition at line 44 of file TPReplayApplication.hpp.

Member Data Documentation

◆ m_application_name

std::string dunedaq::appmodel::TPReplayApplication::m_application_name
private

Definition at line 90 of file TPReplayApplication.hpp.

◆ m_tp_handler

const dunedaq::appmodel::DataHandlerConf * dunedaq::appmodel::TPReplayApplication::m_tp_handler
private

Definition at line 93 of file TPReplayApplication.hpp.

◆ m_tp_source_ids

std::vector< const dunedaq::appmodel::SourceIDConf * > dunedaq::appmodel::TPReplayApplication::m_tp_source_ids
private

Definition at line 91 of file TPReplayApplication.hpp.

◆ m_tprm_conf

const dunedaq::appmodel::TPReplayModuleConf * dunedaq::appmodel::TPReplayApplication::m_tprm_conf
private

Definition at line 92 of file TPReplayApplication.hpp.

◆ s_application_name

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

Definition at line 100 of file TPReplayApplication.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 56 of file TPReplayApplication.hpp.

◆ s_tp_handler

static const std::string dunedaq::appmodel::TPReplayApplication::s_tp_handler = "tp_handler"
inlinestatic

Definition at line 140 of file TPReplayApplication.hpp.

◆ s_tp_source_ids

static const std::string dunedaq::appmodel::TPReplayApplication::s_tp_source_ids = "tp_source_ids"
inlinestatic

Definition at line 138 of file TPReplayApplication.hpp.

◆ s_tprm_conf

static const std::string dunedaq::appmodel::TPReplayApplication::s_tprm_conf = "tprm_conf"
inlinestatic

Definition at line 139 of file TPReplayApplication.hpp.


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