You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run optical photon problems with Gears, but can’t get them to work because the UI command /physics_lists/factory/addOptical is not found, no matter which physics list I select (code below). Everything else works fine, just no optical photon generation. Same goes for all examples in the tutorial/optical folder.
I am new to Geant4 and first trained with a tutorial where I was able to generate optical photons in a scintillator by coding in C++ and using G4EmStandardPhysics and G4OpticalPhysics but I would really like to use Gears. I have been having the same issue with the pre-compiled version and by compiling from source code.
Can someone help? Thanks.
Geant4 Version: 11.3.0
Operating System: Win10
Compiler/Version: Microsoft Visual Studio Community 2022 (64 bits) Version 17.12.3
CMake Version: 3.29.0-rc1
The text was updated successfully, but these errors were encountered:
The macro command has been removed from new Geant4 versions. I think you can simply remove that command and everything should be fine. As for scintillation simulation, please refer to https://github.com/jintonic/gears/tree/master/tutorials/detector/optical. I am in vacation and cannot reply in time. But I'll try scintillation simulation by myself with the newest Geant4 to check if there is anything in the gears documentation that needs to be updated after Christmas.
I could not find any way to activate scintillation with UI commands only, so as a workaround I forced the physics list selection in the main function of gears.cc and activated optical physics there. Otherwise, the /process/optical/ commands are simply not present.
Then in macros I removed the physics list selection and activated the optical processes as follows. It did the job.
I am trying to run optical photon problems with Gears, but can’t get them to work because the UI command /physics_lists/factory/addOptical is not found, no matter which physics list I select (code below). Everything else works fine, just no optical photon generation. Same goes for all examples in the tutorial/optical folder.
I am new to Geant4 and first trained with a tutorial where I was able to generate optical photons in a scintillator by coding in C++ and using G4EmStandardPhysics and G4OpticalPhysics but I would really like to use Gears. I have been having the same issue with the pre-compiled version and by compiling from source code.
Can someone help? Thanks.
Geant4 Version: 11.3.0
Operating System: Win10
Compiler/Version: Microsoft Visual Studio Community 2022 (64 bits) Version 17.12.3
CMake Version: 3.29.0-rc1
The text was updated successfully, but these errors were encountered: