Hello,
I don’t understand why the following code has a bug. In the cout I see correctly Event001,Event002, Event003 etc etc but I get “Unknown directory Event001”, “Unknown directory Event002” “Unknown directory Event003” etc etc
sprintf(c, "%03d", j);
TString stringa = "Event"+ string(c);
TDirectoryFile *hpx = new TDirectoryFile(stringa,"");
cout << stringa << " ." << endl;
hfile->cd(stringa);