Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to create configurable param from a given external struct #13733

Merged
merged 1 commit into from
Nov 26, 2024

Commits on Nov 25, 2024

  1. Ability to create configurable param from a given external struct

    This commit provides the new feature of being able to create
    configurable param instances from a given external C++ struct.
    
    For example, a C++ struct `struct A { double x; }` can be used to define
    a correspondig configurable parameter via
    
    ```
    class MyConfigParamA : o2::conf::ConfigurableParamPromoter<MyConfigParamA, A> {}
    ```
    
    This allows to:
    - have "template" structs to create multiple params of the same structure
    - separate data from configkey functionality
    - extract data copies from underlying configurable parameters
    
    The application thereof is demonstrated for GeneratorPythia8Param.
    
    A unit test is added to check the new functionality.
    sawenzel committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    0620fcf View commit details
    Browse the repository at this point in the history