34std::vector<const confmodel::DaqModule*>
40 std::vector<const confmodel::DaqModule*> modules;
42 std::string hstcUid(
"module-" +
UID());
43 TLOG_DEBUG(7) <<
"creating OKS configuration object for the DataSubscriberModule class ";
47 hstcObj.
set_obj(
"configuration", &hstcConf->config_object());
50 throw(BadConf(
ERS_HERE,
"No HSI2TCTranslatorConf configuration given"));
57 auto endpoint_class = rule->get_endpoint_class();
58 auto descriptor = rule->get_descriptor();
60 if (descriptor->get_data_type() ==
"HSIEvent") {
63 else if (descriptor->get_data_type() ==
"TriggerCandidate") {
68 if (inObj ==
nullptr) {
69 throw(BadConf(
ERS_HERE,
"No HSIEvent input connection descriptor given"));
71 if (outObj ==
nullptr) {
72 throw(BadConf(
ERS_HERE,
"No TriggerCandidate output connection descriptor given"));
75 hstcObj.
set_objs(
"inputs", {&inObj});
76 hstcObj.
set_objs(
"outputs", {&outObj});
conffwk::ConfigObject create_net_obj(const NetworkConnectionDescriptor *ndesc, std::string uid) const
Helper function that gets a network connection config.
const T * get_dal(std::string uid) const
conffwk::ConfigObject create(const std::string &class_name, const std::string &id) const
std::vector< const dunedaq::confmodel::DaqModule * > generate_modules(const confmodel::Session *) const override
const dunedaq::appmodel::HSI2TCTranslatorConf * get_hsevent_to_tc_conf() const
Get "hsevent_to_tc_conf" relationship value.
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & get_network_rules() const
Get "network_rules" relationship value.
void set_objs(const std::string &name, const std::vector< const ConfigObject * > &o, bool skip_non_null_check=false)
Set relationship multi-value.
void set_obj(const std::string &name, const ConfigObject *o, bool skip_non_null_check=false)
Set relationship single-value.
const std::string & UID() const noexcept
#define TLOG_DEBUG(lvl,...)