[RF] Correctly override SetName in RooDataHist and RooDataSet#11417
[RF] Correctly override SetName in RooDataHist and RooDataSet#11417guitargeek merged 1 commit intoroot-project:masterfrom
SetName in RooDataHist and RooDataSet#11417Conversation
When overriding `SetName` in RooDataHist and RooDataSet, we need to use the function from the direct base class RooAbsData, because this one is already overriding the TNamed function to deal with the RooNameReg correctly. Closes root-project#11414.
|
Starting build on |
|
Build failed on windows10/cxx14. |
|
Build failed on mac1015/cxx17. Failing tests: |
lmoneta
left a comment
There was a problem hiding this comment.
Is it needed to have another name stored in RooAbsData ? Why we cannot use the name in TNamed ?
There is no other name stored in RooAbsData. RooAbsData only overrides |
lmoneta
left a comment
There was a problem hiding this comment.
Thank you Jonas for the answer!
It then good to merge this !
When overriding
SetNamein RooDataHist and RooDataSet, we need to use the function from the direct base class RooAbsData, because this one is already overriding the TNamed function to deal with the RooNameReg correctly.Closes #11414.