Skip to content

Refine plot plugin interface naming#303

Merged
njlane314 merged 1 commit intomainfrom
codex/refactor-iplotplugin-for-clarity
Sep 6, 2025
Merged

Refine plot plugin interface naming#303
njlane314 merged 1 commit intomainfrom
codex/refactor-iplotplugin-for-clarity

Conversation

@njlane314
Copy link
Copy Markdown
Owner

Summary

  • Rename IPlotPlugin hook run to onPlot for clearer behavior
  • Adjust PlotPluginManager and call sites to use notifyPlot
  • Update plot plugins and class diagram to reflect new naming

Testing

  • bash .build.sh (fails: Could not find a package configuration file provided by "ROOT")

https://chatgpt.com/codex/tasks/task_e_68bcc5771280832e85b4842cf6ca6613

@njlane314 njlane314 merged commit 13e36b7 into main Sep 6, 2025
1 check passed
@njlane314 njlane314 deleted the codex/refactor-iplotplugin-for-clarity branch September 6, 2025 23:39
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines 30 to 33
explicit CutFlowPlotPlugin(const nlohmann::json &cfg) {
if (!cfg.contains("plots") || !cfg.at("plots").is_array())
throw std::runtime_error("CutFlowPlotPlugin missing plots");
throw std::onPlottime_error("CutFlowPlotPlugin missing plots");
for (auto const &p : cfg.at("plots")) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P0] Replace accidental std::onPlottime_error rename

The global rename from run to onPlot also rewrote every std::runtime_error into std::onPlottime_error, which is not a standard exception type. Any translation unit that includes these constructors now fails to compile because std::onPlottime_error is undefined. Please revert these to std::runtime_error (or an application-specific type) in all affected plot plugin constructors.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant