Root file to directory

Hello,

I would like to output my root files into a specific directory in Linux, how would I go about it?
More specifically, if I want my output TestCAL.root to be in the folder “rootFiles”, how could I do that?

Can I edit this line?

man->OpenFile("TestCAL.root");

Thanks!

Geant4 Version: 11.1
Operating System: Linux (Ubuntu 20-04)


What have you tried until now?

Hello,

man->OpenFile("rootFiles/TestCAL.root");

should work, if the rootFiles directory exists.

Best regards,

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.