[quote]However, it is quite difficult to find “f” in the global variables, isn’t it? [/quote]Yes indeed. Finding a ‘forgotten’ global variable is a rare operation so we have not invested much effort in making it ‘easy’. However you can also simply do:root [0] .g > globals.atstart
root [] ....
root [] .g > globals.now
root [] .! diff globals.atstart globals.now
I thought this was very good, too.
However, there were many changed pointers and/or addresses,
after TFile command.
So, diff of log1 and log2 is quite same as .g .
Thank you very much for your suggestions.
Is there other one?
You can trim the result quite a bitroot [] .! grep -v -e $ROOTSYS -e compiled log2Also if you are interested in the ‘last’ TFile object created, you don’t have to ‘remember’ the name of the variable, you can simply use the global variable gFile.