16 #ifndef QC_CORE_MONITOROBJECT_H 17 #define QC_CORE_MONITOROBJECT_H 26 #include <Common/Exceptions.h> 32 const char* what()
const noexcept
override 34 return "Duplicate object error";
46 MonitorObject(
TObject*
object,
const std::string& taskName,
const std::string& detectorName =
"DET");
61 const std::string getName()
const;
65 const char* GetName()
const override;
69 const std::string
getFullName()
const {
return getTaskName() +
"/" + getName(); }
71 TObject* getObject()
const {
return mObject; }
73 void setObject(
TObject*
object) { mObject = object; }
75 bool isIsOwner()
const {
return mIsOwner; }
77 void setIsOwner(
bool isOwner) { mIsOwner = isOwner; }
79 const std::string& getTaskName()
const {
return mTaskName; }
80 void setTaskName(
const std::string& taskName) { mTaskName = taskName; }
82 const std::string& getDetectorName()
const {
return mDetectorName; }
83 void setDetectorName(
const std::string& detectorName) { mDetectorName = detectorName; }
88 void addMetadata(std::string key, std::string value);
92 void addMetadata(std::map<std::string, std::string> pairs);
95 void updateMetadata(std::string key, std::string value);
97 const std::map<std::string, std::string>& getMetadataMap()
const;
99 void addOrUpdateMetadata(std::string key, std::string value);
101 void Draw(Option_t* option)
override;
102 TObject* DrawClone(Option_t* option)
const override;
107 std::string getPath()
const;
109 const std::string& getDescription()
const;
110 void setDescription(
const std::string& description);
114 std::string mTaskName;
115 std::string mDetectorName;
116 std::map<std::string, std::string> mUserMetadata;
117 std::string mDescription;
129 #endif // QC_CORE_MONITOROBJECT_H Definition: MonitorObject.h:31
const std::string getFullName() const
Return joined task name and name of the encapsulated object (if any).
Definition: MonitorObject.h:69
These methods can be used to build a complex processing topology. It spawns 3 separate dummy processi...
Definition: Activity.h:19
This class keeps the meta data about one published object.
Definition: MonitorObject.h:41