Displaying the .root filename

Hello

I am trying to loop inside root files by using the keys and doing like

[code]
TFile *nextsource = (TFile *) sourcelist->After (first_source);
while (nextsource) {

}[/code]

However, how would it possible to get the “nextsource” actual filename and not looping in case a certain string is found in it ? I see that not TFile->GetName() or something similar exists…

Thanks

Alex

Please ignore- found that TFile->GetName() works