mergeSelective not working

Hi
I am trying to use mergeSelective.C as an example for merging of selective histograms and trees from a bunch of root files.
It does not seem to work properly, only merging tree and not the histograms. Also including all the directories which I do not want in the newly create files.
In fact the mergeSelective.C from tutorial is not working properly as well.
Using root v6.28.04 on ubuntu 20.04.6 LTS.

Thanks
Pawan


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hello @pawankn,

I can confirm that it also doesn’t work with ROOT master. I can call in @pcanal, our I/O expert.

Some more context:
The exclusive merge should have created “hprof” and “folder” with its contents if the text in the tutorial is to be believed. Instead, hprof is absent and the folder shows as empty.

In “skipped”, we would expect to see histograms, but we don’t.

image

Hi Stephan
Thanks for looking into it, is there any solution to this or we leave it that way.

With best regards
Pawan

I know that @pcanal is travelling, so it will take a bit of time to have a look at this, but I will notify him!

Hi,

This looks like a genuine issue, feel free to open an ticket at [Sign in to GitHub · GitHub](https://ROOT github issues)

In the meantime the tools rootcp might (or might not) work better for your use case.