Create a folder in a root file

root [0] auto f = new TFile("bla.root","Recreate");
root [1] f->ls()
TFile**		bla.root	
 TFile*		bla.root	
root [2] f->mkdir("foo")
(TDirectory *) 0x7f8925f5ad20
root [3] f->ls()
TFile**		bla.root	
 TFile*		bla.root	
  TDirectoryFile*		foo	foo
  KEY: TDirectoryFile	foo;1	foo
root [4] 

1 Like