11 #ifndef QC_CORE_QUALITYOBJECT_H 12 #define QC_CORE_QUALITYOBJECT_H 19 #include <Common/Exceptions.h> 37 std::string checkName,
38 std::string detectorName =
"DET",
39 std::string policyName =
"",
40 std::vector<std::string> inputs = {},
41 std::vector<std::string> monitorObjectsNames = {},
42 std::map<std::string, std::string> metadata = {});
56 friend std::ostream& operator<<(std::ostream& out,
const QualityObject& q);
66 const char*
GetName()
const override;
82 void setInputs(std::vector<std::string> inputs) { mInputs = inputs; }
83 std::vector<std::string> getInputs()
const {
return mInputs; }
88 void addMetadata(std::string key, std::string value);
92 void addMetadata(std::map<std::string, std::string> pairs);
109 const std::string& getDetectorName()
const;
110 void setDetectorName(
const std::string& detectorName);
112 void setQuality(
const Quality& quality);
113 const std::string& getCheckName()
const;
115 const std::string& getPolicyName()
const;
117 const std::vector<std::string> getMonitorObjectsNames()
const;
121 std::string mCheckName;
122 std::string mDetectorName;
123 std::string mPolicyName;
124 std::vector<std::string> mInputs;
125 std::vector<std::string> mMonitorObjectsNames;
130 using QualityObjectsType = std::vector<std::shared_ptr<QualityObject>>;
131 using QualityObjectsMapType = std::map<std::string, std::shared_ptr<const QualityObject>>;
std::string getName() const
Return the name of the check.
Definition: QualityObject.cxx:54
QualityObject()
Default constructor.
Definition: QualityObject.cxx:43
const std::map< std::string, std::string > & getMetadataMap() const
Get the full map of user's metadata.
Definition: QualityObject.cxx:86
QualityObject & operator=(const QualityObject &other)=default
Copy assignment operator.
const std::string getMetadata(std::string key)
Get a metadata.
Definition: QualityObject.cxx:96
Class representing the quality of a MonitorObject.
Definition: Quality.h:29
void setInputs(std::vector< std::string > inputs)
Definition: QualityObject.h:82
~QualityObject() override
Destructor.
Encapsulation of a Quality into a TObject that can be streamed and stored.
Definition: QualityObject.h:29
void updateMetadata(std::string key, std::string value)
Update the value of metadata. If the key does not exist it will ignore it.
Definition: QualityObject.cxx:91
const char * GetName() const override
Return the name of the check.
Definition: QualityObject.cxx:48
std::string getPath() const
Build the path to this object. Build the path to this object as it will appear in the GUI...
Definition: QualityObject.cxx:101
These methods can be used to build a complex processing topology. It spawns 3 separate dummy processi...
Definition: Activity.h:19
void updateQuality(Quality quality)
Get the quality of this object.
Definition: QualityObject.cxx:66
void addMetadata(std::string key, std::string value)
Add key value pair that will end up in the database Add a metadata (key value pair) to the QualityObj...
Definition: QualityObject.cxx:76