Loop over histogram?

hello all ,
is there any functions makes a loop over histograms ?
from this definition :
TH2F *h2=new TH2F (“name”,“title”,nbr of x bins,x min ,x max,nbr of y bins,y min, y max);
maybe something like a loop over canvases :
(TString(“mc8_”) + ((Long_t)i)).Data() =new TCanvas("mc8 ",“2D”,1,55,964,491);

??

I do not really understand what you would like to achieve…
What do you have in minde with:

(TString(“mc8_”) + ((Long_t)i)).Data() =new TCanvas("mc8 ",“2D”,1,55,964,491);

??