# Set object name in QCG

**URL:** <https://alice-talk.web.cern.ch/t/set-object-name-in-qcg/1120>\
**Category:** O²\
**Tags:** qcg, quality-control\
**Created:** [November 18, 2021, 6:23pm UTC](https://alice-talk.web.cern.ch/t/set-object-name-in-qcg/1120 "2021-11-18T18:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tklemenz](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/tklemenz/32/115_2.png) [@tklemenz](https://alice-talk.web.cern.ch/u/tklemenz)\
**Post date:** [November 18, 2021, 6:23pm UTC](https://alice-talk.web.cern.ch/t/set-object-name-in-qcg/1120/1 "2021-11-18T18:23:55Z")

</div>

Hi experts,

in the course of making the output of one of our tasks mergeable we made a class from which a mergeable object containing the data is published to the qcdb and then visualized via post processing.

You can see the object (and my problem) on the qcg-test page in the path `qc/TPC/MO/Clusters/o2::quality_control_modules::tpc::ClustersData`. Unfortunately the name under which the object is published is the class name itself (including the namespace) and not the name of the object that is stored as a std::string private member.

So my question is: What is the property that the class needs to have so that the `objectsManager` or whoever is responsible for taking the name recognizes the proper name of the object?

I summon @pkonopka, because I am pretty sure this is an easy one for you. 🙂

Thanks a lot!

Cheers,  
Thomas

---

<div class="post-metadata">

**Author:** ![pkonopka](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/p/e47774/32.png) [@pkonopka](https://alice-talk.web.cern.ch/u/pkonopka)\
**Post date:** [November 19, 2021, 8:27am UTC](https://alice-talk.web.cern.ch/t/set-object-name-in-qcg/1120/2 "2021-11-19T08:27:44Z")

</div>

Hi,  
In principle that should be the TObject’s name. Thus, if you derive from a ROOT class, you should use something valid once you construct that base class object. For example: [QualityControl/MergeableTH1MPVPerDECycle.h at ad71eb901b682808b8a3ff6fd06d4602764a4550 · AliceO2Group/QualityControl · GitHub](https://github.com/AliceO2Group/QualityControl/blob/ad71eb901b682808b8a3ff6fd06d4602764a4550/Modules/MUON/MCH/include/MCH/MergeableTH1MPVPerDECycle.h#L46)

Otherwise, you could try overriding `const char* GetName() const` to return what you need.

---

<div class="post-metadata">

**Author:** ![tklemenz](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/tklemenz/32/115_2.png) [@tklemenz](https://alice-talk.web.cern.ch/u/tklemenz)\
**Post date:** [November 19, 2021, 2:24pm UTC](https://alice-talk.web.cern.ch/t/set-object-name-in-qcg/1120/3 "2021-11-19T14:24:58Z")

</div>

Thanks, Piotr! Overriding `GetName()` works for now.
