I want to copy the histograms from one file into a new one, with one additional branch included. There are no TDirectories and no trees, only histograms in the file. I copied and pasted into my macro the syntax from the tutorial CopyFiles.C (https://root.cern.ch/doc/v608/copyFiles_8C_source.html)
CopyFile calls CopyDir, and when the macro reaches line 29 it outputs the error:
Error in TFile::GetObjectChecked: The provided key name is invalid.
Followed quickly by *** Break *** segmentation violation.
What is the name it is trying to get from the source file? There are so many histograms in there, what would make one of those names invalid?
Thanks for any help!
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided