DPL Analysis: provide support for metadata#11874
DPL Analysis: provide support for metadata#11874ktf wants to merge 1 commit intoAliceO2Group:devfrom
Conversation
Metadata is read from the AOD files metaData tree and provided
in the form of a string to any task which subscribes to it via
the "Metadata" specification in the task description itself.
E.g. to know if a given task was created for run2 or run 3 you can use:
```c++
struct MyTask : AnalysisTask {
Metadata creationRun{"Run"};
void process(...) {
LOGP("Run was {}", *creationRun);
}
};
```
|
@ddobrigk @jgrosseo @pzhristov this provides some runtime metadata support. We should discuss the exact mechanics that we want (e.g. what if parent files provide metadata as well? which one wins?) and if string based metadata is good enough or we want something more. |
|
Great news!
|
|
Ok, I am now working on getting the same information available at topology building time. I actually wonder if that's not all we need. Is there any case in which re-reading per file is a good idea? |
|
https://github.com/AliceO2Group/AliceO2/pull/11875/files provides support at workflow construction. Maybe it's all we need... |
|
So about availability at |
|
How does this work with a combined workflow? Would it read the AOD file each time a new workflow is added? |
|
@ddobrigk I do not believe we have a case of analyzing Run2 and Run3 data in one go. And different periods also would be analyzed separately, at least at the first filtering stage. The derived data can combine several periods probably, and thus metadata of the derived AODs should account for that. |
Hi David, The concept of meta data was always that it is user responsability to not mix files with different meta data content. We want to configure the topology with meta data and once done, this cannot be changed. So I would advocate to not support the use case of following the meta data file by file. Cheers, |
|
Error while checking build/O2/fullCI for 5c34858 at 2024-01-19 04:28: Full log here. |
|
This PR did not have any update in the last 30 days. Is it still needed? Unless further action in will be closed in 5 days. |
Metadata is read from the AOD files metaData tree and provided in the form of a string to any task which subscribes to it via the "Metadata" specification in the task description itself.
E.g. to know if a given task was created for run2 or run 3 you can use: