I have a code written with pyroot and the products are graphs gr1, gr2 with set names name1, name2.
How can I automatically save them to some file with .root extension (for an example ‘file.root’)?
Also, graphs need to be in separate subdirectories inside file.root file