Manipulating hadd to skip some folders

Dear ROOT Experts,

I have been using hadd to merge my root files that has has different TDirectory’ies under. But, there is just one directory that is named same with all the ROOT files, and I do not want to hadd histograms under that one. Is there any shortcut to skip that one directory while hadd’ing all the rest of the directories? Please let me know if my question is unclear.

Kind regards,
morbik


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.28/06
Platform: mac os 12.3
Compiler: clang


Dear Morbik,

Unfortunately I don’t think you can do that with the hadd command line tool and some custom code might have to be written for your special use case.

Best,
Danilo