16 #ifndef QUALITYCONTROL_RUNNERUTILS_H 17 #define QUALITYCONTROL_RUNNERUTILS_H 20 #include <Configuration/ConfigurationFactory.h> 21 #include <Common/Exceptions.h> 35 auto config = o2::configuration::ConfigurationFactory::getConfiguration(configurationSource);
37 for (
const auto& task : config->getRecursive(
"qc.tasks")) {
44 std::string getFirstCheckName(std::string configurationSource)
46 auto config = o2::configuration::ConfigurationFactory::getConfiguration(configurationSource);
48 if (config->getRecursive(
"qc").count(
"checks")) {
49 for (
const auto& check : config->getRecursive(
"qc.checks")) {
54 BOOST_THROW_EXCEPTION(AliceO2::Common::ObjectNotFoundError() << AliceO2::Common::errinfo_details(
"No checks defined"));
57 bool hasChecks(std::string configSource)
59 auto config = o2::configuration::ConfigurationFactory::getConfiguration(configSource);
60 return config->getRecursive(
"qc").count(
"checks") > 0;
65 #endif //QUALITYCONTROL_RUNNERUTILS_H std::string getFirstTaskName(std::string configurationSource)
Definition: runnerUtils.h:33
These methods can be used to build a complex processing topology. It spawns 3 separate dummy processi...
Definition: Activity.h:19