File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Framework/include/QualityControl Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,11 @@ std::optional<std::reference_wrapper<const StoredType>> getMonitorObject(const Q
8080// / \brief Iterate over all QualityObject entries in QCInputs.
8181inline auto iterateQualityObjects (const QCInputs& data);
8282
83+ // / \brief Iterate over QualityObject entries filtered by check name.
84+ // / \param data QCInputs containing QualityObjects.
85+ // / \param checkName Check name to filter entries.
86+ inline auto iterateQualityObjects (const QCInputs& data, std::string_view checkName);
87+
8388// / \brief Retrieve the first QualityObject matching a given check name.
8489// / \param data QCInputs to search.
8590// / \param checkName Name of the quality check.
Original file line number Diff line number Diff line change @@ -88,6 +88,14 @@ inline auto iterateQualityObjects(const QCInputs& data)
8888 return data.iterateByType <o2::quality_control::core::QualityObject>();
8989}
9090
91+ inline auto iterateQualityObjects (const QCInputs& data, std::string_view checkName)
92+ {
93+ const auto filterQOByName = [checkName](const auto & pair) {
94+ return std::string_view (pair.second ->getName ()) == checkName;
95+ };
96+ return data.iterateByTypeAndFilter <QualityObject>(filterQOByName);
97+ }
98+
9199} // namespace o2::quality_control::core
92100
93101#endif
You can’t perform that action at this time.
0 commit comments