From 7a6ea1254ea83df1a084baee6c9848f37d9888ac Mon Sep 17 00:00:00 2001 From: Gordon Crone Date: Tue, 17 Mar 2026 16:18:18 +0000 Subject: [PATCH 1/2] Prototype splitting PDS detailed config from topology --- schema/appmodel/PDS.schema.xml | 33 +++++++++++++++++++-------------- src/DaphneApplication.cpp | 13 +------------ 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/schema/appmodel/PDS.schema.xml b/schema/appmodel/PDS.schema.xml index 6ef07b9..e760d1f 100644 --- a/schema/appmodel/PDS.schema.xml +++ b/schema/appmodel/PDS.schema.xml @@ -80,7 +80,7 @@ - + @@ -104,17 +104,28 @@ + + + + + + - - - + + + + + + + + @@ -176,20 +187,10 @@ - - - - - - - - - - @@ -208,6 +209,10 @@ + + + + diff --git a/src/DaphneApplication.cpp b/src/DaphneApplication.cpp index 4ae92db..24e311f 100644 --- a/src/DaphneApplication.cpp +++ b/src/DaphneApplication.cpp @@ -63,12 +63,6 @@ DaphneApplication::generate_modules(std::shared_ptr conf_map; - auto confs = daphne_conf->get_boards(); - for ( const auto & c : confs ) { - conf_map[c->get_key()] = c->get_conf(); - } - // these maps are all indexed on the board id {detector].{crate}.{slot} std::map v3_map; std::map interfaces; @@ -181,15 +175,10 @@ DaphneApplication::generate_modules(std::shared_ptrsecond; conffwk::ConfigObject module_obj = obj_fac.create( (v3 ? "DaphneV3ControllerModule" : "DaphneV2ControllerModule"), fmt::format("controller-{}", id) ); module_obj.set_obj("daphne_conf", & daphne_conf -> config_object() ); - module_obj.set_obj("board_conf", & conf -> config_object() ); + module_obj.set_by_val("daphne_id", id); auto module = obj_fac.get_dal(module_obj); modules.push_back(module); From 3d855fcefbc6b0b76d05d355b6bd0e345dba8512 Mon Sep 17 00:00:00 2001 From: Gordon Crone Date: Thu, 19 Mar 2026 16:53:08 +0000 Subject: [PATCH 2/2] Define DeferredConfig and use instead of DaphneConf --- schema/appmodel/PDS.schema.xml | 21 ++++++++------------ schema/appmodel/application.schema.xml | 27 +++++++++++++++----------- src/DaphneApplication.cpp | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/schema/appmodel/PDS.schema.xml b/schema/appmodel/PDS.schema.xml index e760d1f..fff5799 100644 --- a/schema/appmodel/PDS.schema.xml +++ b/schema/appmodel/PDS.schema.xml @@ -80,7 +80,7 @@ - + @@ -93,7 +93,7 @@ - + @@ -110,20 +110,10 @@ - - - - - - - - - - - + @@ -161,6 +151,8 @@ + + @@ -177,6 +169,9 @@ + + + diff --git a/schema/appmodel/application.schema.xml b/schema/appmodel/application.schema.xml index b989837..7632cf5 100644 --- a/schema/appmodel/application.schema.xml +++ b/schema/appmodel/application.schema.xml @@ -80,7 +80,7 @@ - + @@ -172,6 +172,16 @@ + + + + + + + + + + @@ -230,6 +240,11 @@ + + + + + @@ -406,16 +421,6 @@ - - - - - - - - - - diff --git a/src/DaphneApplication.cpp b/src/DaphneApplication.cpp index 24e311f..628eede 100644 --- a/src/DaphneApplication.cpp +++ b/src/DaphneApplication.cpp @@ -19,7 +19,6 @@ #include "ConfigObjectFactory.hpp" #include "appmodel/appmodelIssues.hpp" #include "appmodel/FelixDataSender.hpp" -#include "appmodel/DaphneConf.hpp" #include "appmodel/DaphneMapEntry.hpp" #include "appmodel/DaphneV2BoardConf.hpp" #include "appmodel/DaphneV2Channel.hpp" @@ -30,6 +29,7 @@ #include "appmodel/DaphneV2ControllerModule.hpp" #include "appmodel/DaphneV3ControllerModule.hpp" #include "appmodel/DaphneApplication.hpp" +#include "appmodel/DeferredConfig.hpp" #include "appmodel/FelixDetectorToDaqConnection.hpp" #include "appmodel/NetworkDetectorToDaqConnection.hpp" #include "appmodel/NWDetDataSender.hpp"