Hello,
I have a root file which contains 5 subdirectories. Each subdirectory also consist of few directories and many histograms are in each directory.
I want to make each directory into a separate root file, of course subdirectories should belong to the top directory.
Does this kind of class exist already somewhere?
Regards,
DongJo
Hi @dongjokim,
and welcome to the ROOT forum!
I don’t think we have helper functions or helper structs for something like that. The command-line tool rootcp
might be what you need: rootcp 'source.root:subdir/*' dest.root
should work.
Cheers,
Enrico
thanks for your answer and suggestion. I might try to make a script to do the job with rootcp since I have 2 or 3 subdirectories.
Cheers,
DongJo
1 Like