Creating an array with the name of the histograms inside a .root file

ok, got it! I will write a c++ script then.