How to chech the instance name on CINT?

Dear CINT experts,

This may be a trivial question.
After I typed the following line, can I check the name “f”?

root[i] TFile f(“hoge.root”);

Of course, PgUp is OK, but directy I want to check it.
For example,

root[i] ShowInstance();

I am searching kind of this command.

Best regards,

Hi,

You can doroot [] .g f 1 0x2b52f60 TFile f , size=640 ....
Cheers,
Philippe.

Hi, Philippe

Thank you for your answer.
But if I forget “f”, I can not find it. Do you know other methods?

Hi,

You can doroot [] .g ... very long list of global variable (including enums) ...
orroot [] .g > listofglobals root [] .! less listofglobals

Cheers,
Philippe.

Hi Philippe,

Thanks quick reply.
However, it is quite difficult to find “f” in the global variables, isn’t it?

K

[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

Cheers,
Philippe.

Dear Philippe,

I tried your suggestion.
But, it did not work for my circumstance.

root[] .g > log1
root[] TFile f(“xxx.root”);
root[] .g > log2

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?

K,

Hi,

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.

Cheers,
Philippe.