ROOT Version: 6.20/08
Platform: Ubuntu 18.04.06
I was trying to extract some variables from one ROOT file to another. I am defining only one
TTree to be created, but the new file is having two
TTree. I cannot understand what is happening. More peculiarly, when I was creating the macro it was working fine. But just when I ran it via a shell script it started this behavior. After that even for manual single runs, it’s not working. This happened twice.
Could you people give some idea what’s wrong in the macro?
I guess I have to delete the memory pointer to the new
TTree. But how to do it? I tried with
delete outtree; delete outfile;, but it didn’t work.
I have attached an example input file and the macro.
Thanks in advance.