Skip to content

Commit

Permalink
Fixing configuring TA/TCMaker algos with json via TA/TPProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSztuc committed Mar 6, 2024
1 parent d602517 commit 0ab6b1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TAProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TAProcessor::conf(const appdal::ReadoutModule* conf)
TLOG() << "Selected TC algorithm: " << algo->UID();
std::shared_ptr<triggeralgs::TriggerCandidateMaker> maker = make_tc_maker(algo->class_name());
nlohmann::json algo_json = algo->to_json(true);
maker->configure(algo_json);
maker->configure(algo_json[algo->UID()]);
inherited::add_postprocess_task(std::bind(&TAProcessor::find_tc, this, std::placeholders::_1, maker));
m_tcms.push_back(maker);
}
Expand Down
2 changes: 1 addition & 1 deletion src/TPProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TPProcessor::conf(const appdal::ReadoutModule* conf)

TLOG() << "Algo config:\n" << algo_json.dump();

maker->configure(algo_json);
maker->configure(algo_json[algo->UID()]);
inherited::add_postprocess_task(std::bind(&TPProcessor::find_ta, this, std::placeholders::_1, maker));
m_tams.push_back(maker);
}
Expand Down

0 comments on commit 0ab6b1e

Please sign in to comment.