Looping over folders and opening each folder to access the root file

inside the loop you can do f = TFile(*iter)

RK