TChain and Returning name of current input(file)

Hi Everybody,

I have an urgent question which I could not find any answer so far,
I made a chain and added many files like following ;
chain->Add("/data/105200.root");
chain->Add("/data/105300.root");

than I run an event loop to read the event entries from tree on the chain(files) .
while I am in the loop, I need to know what is the current file .
is there any way to return name of current (file)input.
I appreciate if any body give me a clue .

Thanks,
reza ahmadi

chain->GetCurrentFile()->GetName();
Rene

Oh, that was easy. :smiley: , how I did not find it :frowning:

Dear Rene,
Thank you very much for fast reply ,

Bob