Skip to content

Conversation

@sawenzel
Copy link
Contributor

@sawenzel sawenzel commented Jan 9, 2025

This commit provides the possibility to inject external choices for configurable params into the MC workflow construction.

This is done by setting up a JSON file, e.g. local_config.json, an by passing this file to the workflow construction with the new --overwrite-config local_config.json command line option.

This new option allows to conveniently set configurable params from the outside (without having to specify the global list of configurations).

The motivation for this development came from the wish to set the busy time for EMC digitization. This is now possible with the following local_config.json:

{
  "EMCSimParam": {
    "mBusyTime": 0
  }
}

Overall, this development scales to all such external settings and avoids adding specific detector-specific command line options in o2dpg_sim_workflow.py.

This commit provides the possibility to inject external choices
for configurable params into the MC workflow construction.

This is done by setting up a JSON file, e.g. local_config.json,
an by passing this file to the workflow construction with the new
`--overwrite-config local_config.json` command line option.

This new option allows to conveniently set configurable params
from the outside (without having to specify the global list of configurations).

The motivation for this development came from the wish to set the busy
time for EMC digitization. This is now possible with the following local_config.json:

```
{
  "EMCSimParam": {
    "mBusyTime": 0
  }
}
```

Overall, this development scales to all such external settings and avoids adding
specific detector-specific command line options in o2dpg_sim_workflow.py.
@github-actions
Copy link

github-actions bot commented Jan 9, 2025

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1

@sawenzel sawenzel merged commit dd1ded7 into AliceO2Group:master Jan 9, 2025
6 checks passed
@alcaliva alcaliva added async-2022-pp-apass7 Request porting to async-2022-pp-apass7 and removed async-2022-pp-apass7 Request porting to async-2022-pp-apass7 labels Jan 13, 2025
@alcaliva alcaliva added async-2023-pbpb-apass4 Request porting to async-2023-pbpb-apass4 and removed async-2023-pbpb-apass4 Request porting to async-2023-pbpb-apass4 async-2024-PbPb-apass1 labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants