I have been exploring the STCyclotron advanced example, and I am having problems when running the Plot.C root macro. After running a simulation with /run/beamOn 1
, I run root Plot.C
and I get the following errors:
$ root Plot.C
------------------------------------------------------------------
| Welcome to ROOT 6.28/04 https://root.cern |
| (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on May 08 2023, 02:44:07 |
| From tags/v6-28-04@v6-28-04 |
| With MSVC 19.32.31332.0 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
Processing Plot.C...
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
ERROR in TPDF::Open: Cannot open file:./Results/BeamData/BeamEnergyInTarget.pdf
Error in <TASImage::WriteImage>: error writing file ./Results/BeamData/BeamIntensityTarget.jpg
ERROR in TPDF::Open: Cannot open file:./Results/BeamData/BeamEnergyOutTarget.pdf
ERROR in TPDF::Open: Cannot open file:./Results/BeamData/BeamEnergyInFoil.pdf
...
Followed by many more errors. There’s something going wrong that’s causing the error, “The syntax of the command is incorrect” but I’m not sure what is going on.
I suspected it might be an issue with my system. I know that this example was designed for Linux. I am running this example on Windows, simulating Linux commands using Git Bash. This workaround method has worked for me in the past, but there may be something I don’t know. Any ideas of how to get this working on windows? Thank you.
Geant4 Version: 11.1.2
Operating System: Windows 11
Compiler/Version:
CMake Version: