I am presently making some macros for doing some check plots, and I have an increasing amount of files that I would like to sort in directories.
Given a basename:
TString basename = “mydata”;
I open the file
I make my check histos, and I would then like to save the ps-files in “./”+basename"/". I cannot however figure out how to actually create this directory. I have tried constructs like
TUnixSystem* a = new TUnixSystem() ;
but then it complains that only one instance of TUnixSystem is allowed. However TUnixSystem does not have a getInstance method… I am running out of ideas. Does anyone know how to do this?
If variables could be passed to the command line it would also help. Something like:
TString basename = “mydata”
.! mkdir -p $basename