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

[QC-1031]: changed origin for QC Check #2170

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

justonedev1
Copy link
Collaborator

No description provided.

return { "QC", createCheckDataDescription(checkName), 0, framework::Lifetime::Sporadic };
using Origin = o2::header::DataOrigin;
Origin header;
header.runtimeInit(std::string{ "C" }.append(detector.substr(0, Origin::size)).c_str());
Copy link
Collaborator

@knopers8 knopers8 Mar 11, 2024

Choose a reason for hiding this comment

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

Suggested change
header.runtimeInit(std::string{ "C" }.append(detector.substr(0, Origin::size)).c_str());
header.runtimeInit(std::string{ "C" }.append(detector.substr(0, Origin::size - 1)).c_str());

If you get a 4-letter detector code, won't you pass a 5-letter string to runtimeInit?

FYI, we allow for some detector names which are longer than 3, but it's OK to trim them:

std::vector<std::string> permitted = { "MISC", "DAQ", "GENERAL", "TST", "BMK", "CTP", "TRG", "DCS", "GLO", "FIT" };

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, I would propose to extract the logic into a separate createCheckDataOrigin method.

@justonedev1 justonedev1 requested a review from knopers8 March 13, 2024 13:56
@knopers8 knopers8 enabled auto-merge (squash) March 13, 2024 14:01
Copy link
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

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

Thank you!

@knopers8 knopers8 merged commit cd342d8 into AliceO2Group:master Mar 13, 2024
7 checks passed
knopers8 added a commit to knopers8/QualityControl that referenced this pull request Mar 15, 2024
knopers8 added a commit to knopers8/QualityControl that referenced this pull request Mar 15, 2024
knopers8 added a commit that referenced this pull request Mar 15, 2024
knopers8 added a commit that referenced this pull request Mar 15, 2024
knopers8 added a commit to knopers8/QualityControl that referenced this pull request Mar 15, 2024
knopers8 added a commit that referenced this pull request Mar 18, 2024
* Revert "Revert "[QC-1031]: changed origin for QC Check (#2170)" (#2181)"

This reverts commit fcbef09.

* Use correct check data origin as inputs of aggregators

Also:
- respect the ID/name distinction for check/aggregator data source specs
- fix the relevant tests, which had aggregators referring to non-existent checks, which is now required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants