Skip to content

Commit

Permalink
Renaming attribute disabling post-processing in trigger app
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSztuc committed Dec 3, 2024
1 parent 8d65a62 commit cb53d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions schema/appmodel/trigger.schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@
<superclass name="ResourceSetAND"/>
<superclass name="SmartDaqApplication"/>
<attribute name="application_name" type="string" init-value="daq_application" is-not-null="yes"/>
<attribute name="ta_generation_enabled" description="Disable TA generation as a post-processing task -- only to be done by the experts for e.g. TP performance studies" type="bool" init-value="true"/>
<attribute name="tc_generation_enabled" description="Disable TC generation as a post-processing task -- only to be done by the experts for e.g. TA performance studies" type="bool" init-value="true"/>
<attribute name="tx_generation_disabled" description="Disable TA/TC generation as a post-processing task -- only to be done by the experts for e.g. TP performance studies" type="bool" init-value="false"/>
<relationship name="data_subscriber" class-type="DataReaderConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
<relationship name="trigger_inputs_handler" class-type="DataHandlerConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
<method name="generate_modules" description="Generate daq module dal objects for streams of thie TriggerApplication on the fly">
Expand Down
7 changes: 1 addition & 6 deletions src/TriggerApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,7 @@ TriggerApplication::generate_modules(conffwk::Configuration* confdb,
confdb->create(dbfile, ti_class, ti_uid, ti_obj);
ti_obj.set_by_val<uint32_t>("source_id", source_id);
ti_obj.set_by_val<uint32_t>("detector_id", 1); // 1 == kDAQ
if (handler_name == "tphandler") {
ti_obj.set_by_val<bool>("post_processing_enabled", get_ta_generation_enabled());
}
if (handler_name == "tahandler") {
ti_obj.set_by_val<bool>("post_processing_enabled", get_tc_generation_enabled());
}
ti_obj.set_by_val<bool>("post_processing_enabled", !get_tx_generation_disabled());

ti_obj.set_obj("module_configuration", &ti_conf_obj);
ti_obj.set_objs("inputs", {&input_queue_obj, &req_net_obj});
Expand Down

0 comments on commit cb53d27

Please sign in to comment.