I have three .root files that I need to merge together. Normally I would use hadd to merge the files, but the files contain duplicate entries which I need to remove. I can’t just delete the duplicated entries because TTrees are read-only. Is there a simple way to merge the files while ensuring that only unique entries are saved?
I have three .root files that I need to merge together. Normally I would
Share
I did manage to find a way to produce histograms that contain only unique entries using
TEntryList. This allows you to specify which tree entries you wish to use. In my case, each entry has an event number which identifies it. So, I generated an entry list with the entry numbers corresponding to only unique event numbers.