Skip to content

Commit

Permalink
fixes for random and custom TC maker plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
MRiganSUSX committed Sep 5, 2023
1 parent 922fb72 commit 06a5582
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/CustomTriggerCandidateMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CustomTriggerCandidateMaker::CustomTriggerCandidateMaker(const std::string& name
void
CustomTriggerCandidateMaker::init(const nlohmann::json& obj)
{
m_time_sync_source = get_iom_receiver<dfmessages::TimeSync>(appfwk::connection_uid(obj, "time_sync_source"));
m_time_sync_source = get_iom_receiver<dfmessages::TimeSync>(".*");
m_trigger_candidate_sink =
get_iom_sender<triggeralgs::TriggerCandidate>(appfwk::connection_uid(obj, "trigger_candidate_sink"));
}
Expand Down
6 changes: 3 additions & 3 deletions plugins/RandomTriggerCandidateMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ RandomTriggerCandidateMaker::RandomTriggerCandidateMaker(const std::string& name
void
RandomTriggerCandidateMaker::init(const nlohmann::json& obj)
{
m_time_sync_source = get_iom_receiver<dfmessages::TimeSync>(appfwk::connection_uid(obj, "time_sync_source"));
m_time_sync_source = get_iom_receiver<dfmessages::TimeSync>(".*");
m_trigger_candidate_sink =
get_iom_sender<triggeralgs::TriggerCandidate>(appfwk::connection_uid(obj, "trigger_candiate_sink"));
get_iom_sender<triggeralgs::TriggerCandidate>(appfwk::connection_uid(obj, "trigger_candidate_sink"));
}

void
Expand All @@ -68,7 +68,7 @@ RandomTriggerCandidateMaker::get_info(opmonlib::InfoCollector& ci, int /*level*/
void
RandomTriggerCandidateMaker::do_configure(const nlohmann::json& obj)
{
m_conf = obj.get<randomtriggercandidatemaker::ConfParams>();
m_conf = obj.get<randomtriggercandidatemaker::Conf>();
}

void
Expand Down
2 changes: 1 addition & 1 deletion plugins/RandomTriggerCandidateMaker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class RandomTriggerCandidateMaker : public dunedaq::appfwk::DAQModule
std::shared_ptr<iomanager::ReceiverConcept<dfmessages::TimeSync>> m_time_sync_source;
std::shared_ptr<iomanager::SenderConcept<triggeralgs::TriggerCandidate>> m_trigger_candidate_sink;

randomtriggercandidatemaker::ConfParams m_conf;
randomtriggercandidatemaker::Conf m_conf;

int get_interval(std::mt19937& gen);

Expand Down
2 changes: 1 addition & 1 deletion schema/trigger/randomtriggercandidatemaker.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local types = {
timestamp_estimation: s.enum("timestamp_estimation", ["kTimeSync", "kSystemClock"]),
distribution_type: s.enum("distribution_type", ["kUniform", "kPoisson"]),

conf : s.record("ConfParams", [
conf : s.record("Conf", [
s.field("trigger_interval_ticks", self.ticks, 64000000,
doc="Interval between triggers in 16 ns time ticks (default 1.024 s) "),

Expand Down

0 comments on commit 06a5582

Please sign in to comment.