void foobar(int i, string str){
std::cout << "number : " << i << " / string : "<< str << std::endl;
}
TH1D* h_adc[10];
for (Int_t i=0; i<10; i++){
h_adc[i] = new TH1D("h_adc","h_adc", 100, 0.0, 100.0);
}
TH1D* h_adc[10];
Char_t hname[100];
for (Int_t i=0; i<10; i++){
sprintf(hname,"h_adc_%d", i);
h_adc[i] = new TH1D(hname, hname, 100, 0.0, 100.0);
}