-
Notifications
You must be signed in to change notification settings - Fork 151
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
Conversation
Framework/src/Check.cxx
Outdated
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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" }; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This reverts commit cd342d8.
This reverts commit cd342d8.
…2170)" (AliceO2Group#2181)" This reverts commit fcbef09.
* 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
No description provided.