I have an open TFile and a large map of histogram pointers that were declared using new while cd-ing into different TDirectories of this TFile. I would like to create a new histogram for each member of the map next to the original histogram. (same TDirectory)
Is there a simple way I could get a pinter to the TDirectory a given histogram is in?
root [0] auto h = new THnD()
(THnT<double> *) @0x7ffd43c765f0
root [1] h->GetDirectory()
ROOT_prompt_1:1:4: error: no member named 'GetDirectory' in 'THnT<double>'
h->GetDirectory()