11 #ifndef QC_CHECKER_CHECK_H 12 #define QC_CHECKER_CHECK_H 19 #include <unordered_map> 21 #include <Framework/DataProcessorSpec.h> 24 #include "QualityControl/QualityObject.h" 51 Check(std::string checkName, std::string configurationSource);
59 QualityObjectsType check(std::map<std::string, std::shared_ptr<o2::quality_control::core::MonitorObject>>& moMap);
69 const std::string& getName()
const {
return mCheckConfig.name; };
70 o2::framework::OutputSpec getOutputSpec()
const {
return mOutputSpec; };
71 o2::framework::Inputs getInputs()
const {
return mInputs; };
77 void setCheckInterface(
CheckInterface* checkInterface) { mCheckInterface = checkInterface; };
79 std::string getPolicyName()
const;
80 std::vector<std::string> getObjectsNames()
const;
81 bool getAllObjectsOption()
const;
84 void initConfig(std::string checkName);
86 void beautify(std::map<std::string, std::shared_ptr<MonitorObject>>& moMap,
Quality quality);
88 std::string mConfigurationSource;
92 size_t mNumberOfTaskSources;
95 o2::framework::Inputs mInputs;
96 std::vector<std::string> mInputsStringified;
97 o2::framework::OutputSpec mOutputSpec;
99 bool mBeautify =
true;
Definition: Aggregator.h:32
Class representing the quality of a MonitorObject.
Definition: Quality.h:29
void init()
Initialize the check state Expected to run in the init phase of the FairDevice.
Definition: Check.cxx:139
Skeleton of a check.
Definition: CheckInterface.h:32
void updateRevision(unsigned int revision)
Change the revision.
static o2::header::DataDescription createCheckerDataDescription(const std::string taskName)
Static functions.
Definition: Check.cxx:42
Check(std::string checkName, std::string configurationSource)
Constructor.
Definition: Check.cxx:54
Container for the configuration of a Check or an Aggregator.
Definition: CheckConfig.h:26
Singleton class that any class in the QC can use to log.
Definition: QcInfoLogger.h:41
The class in charge of providing single check for a given map of MonitorObjects.
Definition: Check.h:39